Template:Fraction: Difference between revisions
ArrowHead294 (talk | contribs) Fraction template from Wikipedia |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(13 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<templatestyles src="Fraction/styles.css" /><!-- | <includeonly><templatestyles src="Fraction/styles.css" /><!-- | ||
--><span class="frac"><!-- | --><span class="frac"><!-- | ||
-->{{#if:{{{3|}}}<!-- if 3 | -->{{#if: {{{3|}}}<!-- if 3 | ||
-->|{{{1}}}<span class="sr-only">+</span><span class="num">{{{2}}}</span>⁄<span class="den">{{{3}}}</span><!-- then 1 2/3 | -->| {{{1}}}<span class="sr-only">+</span><span class="num">{{{2}}}</span>⁄<span class="den">{{{3}}}</span><!-- then 1 2/3 | ||
-->|{{#if:{{{2|}}}<!-- elseif 2 | -->| {{#if: {{{2|}}}<!-- elseif 2 | ||
-->|<span class="num">{{{1}}}</span>⁄<span class="den">{{{2}}}</span><!-- then 1/2 | -->| <span class="num">{{{1}}}</span>⁄<span class="den">{{{2}}}</span><!-- then 1/2 | ||
-->|{{#if:{{{1|}}}<!-- elseif 1 | -->| {{#if: {{{1|}}}<!-- elseif 1 | ||
-->|<span class="num">1</span>⁄<span class="den">{{{1}}}</span><!-- then 1/1 | -->| <span class="num">1</span>⁄<span class="den">{{{1}}}</span><!-- then 1/1 | ||
-->|⁄<!-- else 0, a slash | -->| ⁄<!-- else 0, a slash | ||
-->}}<!-- endif 1 | -->}}<!-- endif 1 | ||
-->}}<!-- endif 2 | -->}}<!-- endif 2 | ||
-->}}<!-- endif 3 | -->}}<!-- endif 3 | ||
--></span><noinclude> | --></span></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
[[Category:Formatting templates]] | |||
</noinclude> | </noinclude> |