Template:Frac: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Radiojon
m (reduce oversized denominator)
m (53 revisions imported)
 
(41 intermediate revisions by 19 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{3|}}}|{{{1}}}<s style="display:none">+</s><sup><font size=-2>{{{2}}}</font></sup><font size=-4>{{{3}}}</font>|{{#if:{{{2|}}}|<sup><font size=-2>{{{1}}}</font></sup><font size=-4>{{{2}}}</font>|<sup><font size=-2>1</font></sup><font size=-4>{{{1}}}</font>}}}}</includeonly><noinclude>
{{zwsp}}<!-- zero-width space; might be removable after introduction of RemexHTML --><span class="frac nowrap">{{#if:{{{3|}}}
This template builds nicer looking [[common fraction]]s. It takes one, two or three parameters: the optional integer (maybe signed), the optional numerator and the required denominator; in this order.
|{{{1}}}<span class="visualhide">&nbsp;</span><sup>{{{2}}}</sup>&frasl;<sub>{{{3}}}</sub>
; <code><nowiki>{{frac|a|b|c}}</nowiki></code>: {{frac|a|b|c}} (integer, numerator and denominator)
|{{#if:{{{2|}}}
; <code><nowiki>{{frac|a|b}}</nowiki></code>: {{frac|a|b}} (numerator and denominator)
  |<sup>{{{1}}}</sup>&frasl;<sub>{{{2}}}</sub>
; <code><nowiki>{{frac|a}}</nowiki></code>: {{frac|a}} (denominator only)
  |{{#if:{{{1|}}}
 
  |<sup>1</sup>&frasl;<sub>{{{1}}}</sub>
[[de:Vorlage:Bruch]]
  |&frasl;
  }}
}}
}}</span><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 13:19, 3 September 2020