Template:Frac: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Crissov
(documentation)
m (53 revisions imported)
 
(48 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{{1}}}<small><span style="display:none">+</span><sup>{{{2}}}</sup><big>⁄</big><sub>{{{3}}}</sub></small><noinclude>
{{zwsp}}<!-- zero-width space; might be removable after introduction of RemexHTML --><span class="frac nowrap">{{#if:{{{3|}}}
 
|{{{1}}}<span class="visualhide">&nbsp;</span><sup>{{{2}}}</sup>&frasl;<sub>{{{3}}}</sub>
This template builds nicer looking common fractions, sample: 1<small><span style="display:none">+</span><sup>2</sup><big></big><sub>3</sub></small>. It takes three parameters: The integer (optionally with leading <code>&amp;minus;</code>), the numerator and the denominator. If your fraction is between zero and one you probably want to use <code>{{[[Template:Frac0|frac0]]}}</code> instead.
|{{#if:{{{2|}}}
  |<sup>{{{1}}}</sup>&frasl;<sub>{{{2}}}</sub>
  |{{#if:{{{1|}}}
  |<sup>1</sup>&frasl;<sub>{{{1}}}</sub>
  |&frasl;
  }}
}}
}}</span><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 13:19, 3 September 2020