Template:Fraction: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) mNo edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><templatestyles src="Fraction/styles.css" /><!-- | ||
--><span | --><span class="frac"><!-- | ||
-->{{#if:{{{3|}}}<!-- if 3 | -->{{#if: {{{3|}}}<!-- if 3 | ||
-->|{{{1}}}<span | -->| {{{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 | -->| <span class="num">{{{1}}}</span>⁄<span class="den">{{{2}}}</span><!-- then 1/2 | ||
-->|{{#if:{{{1|}}}<!-- elseif 1 | -->| {{#if: {{{1|}}}<!-- elseif 1 | ||
-->|<span | -->| <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></includeonly><noinclude> | --></span></includeonly><noinclude> | ||
{{documentation}} | |||
[[Category:Formatting templates]] | [[Category:Formatting templates]] | ||
</noinclude> | </noinclude> |