Template:Fraction: Difference between revisions
ArrowHead294 (talk | contribs) No edit summary |
ArrowHead294 (talk | contribs) Copy styles directly since TemplateStyles doesn't work |
||
Line 1: | Line 1: | ||
<!-- | |||
--><span | --><span style="white-space: nowrap;"><!-- | ||
-->{{#if:{{{3|}}}<!-- if 3 | -->{{#if:{{{3|}}}<!-- if 3 | ||
-->|{{{1}}}<span | -->|{{{1}}}<span style="border: 0; clip: rect(0, 0, 0, 0); clip-path: polygon(0px 0px, 0px 0px, 0px 0px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;">+</span><span style="font-size: 80%; line-height: 0; vertical-align: super;">{{{2}}}</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{3}}}</span><!-- then 1 2/3 | ||
-->|{{#if:{{{2|}}}<!-- elseif 2 | -->|{{#if:{{{2|}}}<!-- elseif 2 | ||
-->|<span | -->|<span style="font-size: 80%; line-height: 0; vertical-align: super;">{{{1}}}</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{2}}}</span><!-- then 1/2 | ||
-->|{{#if:{{{1|}}}<!-- elseif 1 | -->|{{#if:{{{1|}}}<!-- elseif 1 | ||
-->|<span | -->|<span style="font-size: 80%; line-height: 0; vertical-align: super;">1</span>⁄<span style="font-size: 80%; line-height: 0; vertical-align: sub;">{{{1}}}</span><!-- then 1/1 | ||
-->|⁄<!-- else 0, a slash | -->|⁄<!-- else 0, a slash | ||
-->}}<!-- endif 1 | -->}}<!-- endif 1 |