Template:Fraction: Difference between revisions

From Vigyanwiki
Template>DannyS712
m (remove discussion notice, was moved)
(use TemplateStyles for all fraction, not just sr implementation)
Line 1: Line 1:
{{Zero width space}}<!-- zero-width space; might be removable after introduction of RemexHTML --><span class="frac nowrap">{{#if:{{{3|}}}
<templatestyles src="Fraction/styles.css" /><span class="frac" role="math">{{#if:{{{3|}}}<!-- if 3
|{{{1}}}<templatestyles src="Screen reader-only/styles.css"/><span class="sr-only">&nbsp;</span><sup>{{{2}}}</sup>&frasl;<sub>{{{3}}}</sub>
  -->|{{{1}}}<span class="sr-only">+</span><span class="num">{{{2}}}</span>&frasl;<span class="den">{{{3}}}</span><!-- then 1 2/3
|{{#if:{{{2|}}}
  -->|{{#if:{{{2|}}}<!-- elseif 2
  |<sup>{{{1}}}</sup>&frasl;<sub>{{{2}}}</sub>
    -->|<span class="num">{{{1}}}</span>&frasl;<span class="den">{{{2}}}</span><!-- then 1/2
  |{{#if:{{{1|}}}
    -->|{{#if:{{{1|}}}<!-- elseif 1
  |<sup>1</sup>&frasl;<sub>{{{1}}}</sub>
      -->|<span class="num">1</span>&frasl;<span class="den">{{{1}}}</span><!-- then 1/1
  |&frasl;
      -->|&frasl;<!-- else 0, a slash
  }}
    -->}}<!-- endif 1
}}
  -->}}<!-- endif 2
}}</span><noinclude>
-->}}<!-- endif 3
--></span><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 00:50, 28 April 2021

Template documentation