Difference between revisions of "Template:Frac"
Jump to navigation
Jump to search
(A simple template for creating fractions.) |
m (Added documentation page link.) |
||
Line 1: | Line 1: | ||
− | <span style="display:inline-block;vertical-align:-52%;text-align:center><span style="display:none">(</span><span style="display:block;border-bottom:solid thin">{{{1}}}</span><span style="display:none">) / (</span><span style="display:inline-block">{{{2}}}</span><span style="display:none">)</span></span><noinclude><!--A simple-minded workaround for the absence of a good way to create mathematical fractions. Do not edit spacing, it is critical here.--</noinclude> | + | <span style="display:inline-block;vertical-align:-52%;text-align:center><span style="display:none">(</span><span style="display:block;border-bottom:solid thin">{{{1}}}</span><span style="display:none">) / (</span><span style="display:inline-block">{{{2}}}</span><span style="display:none">)</span></span><noinclude><!--A simple-minded workaround for the absence of a good way to create mathematical fractions. Do not edit spacing, it is critical here.--> |
+ | {{Documentation}}</noinclude> |
Revision as of 19:10, 17 August 2021
{{{1}}}{{{2}}}
Creates simple inline fractions like this one: {{{1}}}{{{2}}}. There is no awareness of where the line is, so if the top or the bottom of the fraction is too tall, vertical centering will be wrong: − numeratornumeratordenominator denominator − , − numeratordenominator numerator + {{{2}}}
The above documentation is transcluded from Template:Frac/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |