Template:Fraction: Difference between revisions

From Vigyanwiki
Template>Plastikspork
(fix)
m (59 revisions imported from alpha:Template:Fraction)
 
(21 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<includeonly>{{#if:{{{3|}}}|<span style="white-space:nowrap">{{{1}}}<s style="display:none">+</s><span class="template-frac"><sup>{{{2}}}</sup><big>⁄</big><sub>{{{3}}}</sub></span></span>|<noinclude>#else:
<templatestyles src="Fraction/styles.css" /><span class="frac" role="math">{{#if:{{{3|}}}<!-- if 3
</noinclude>{{#if:{{{2|}}}|<span style="white-space:nowrap" class="template-frac"><sup>{{{1}}}</sup><big>⁄</big><sub>{{{2}}}</sub></span>|<noinclude>#else:
  -->|{{{1}}}<span class="sr-only">+</span><span class="num">{{{2}}}</span>&frasl;<span class="den">{{{3}}}</span><!-- then 1 2/3
</noinclude><span style="white-space:nowrap" class="template-frac"><sup>1</sup><big>⁄</big><sub>{{{1}}}</sub></span>}}}}</includeonly><noinclude>
  -->|{{#if:{{{2|}}}<!-- elseif 2
    -->|<span class="num">{{{1}}}</span>&frasl;<span class="den">{{{2}}}</span><!-- then 1/2
    -->|{{#if:{{{1|}}}<!-- elseif 1
      -->|<span class="num">1</span>&frasl;<span class="den">{{{1}}}</span><!-- then 1/1
      -->|&frasl;<!-- else 0, a slash
    -->}}<!-- endif 1
  -->}}<!-- endif 2
-->}}<!-- endif 3
--></span><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 09:20, 16 December 2022

Template documentation