Difference between revisions of "Template:Fraction"
Jump to navigation
Jump to search
imported>Crissov ({{fraction}} now differs from {{frac}}, it is used for precomposed fractions, whereas {{frac}} is more general) |
imported>Crissov |
||
| Line 1: | Line 1: | ||
| − | + | <includeonly>{{#if:{{{3|}}}|<span class="template-frac">{{{1}}} {{{2}}}⁄{{{3}}}</span>|<noinclude>#else: | |
| − | <includeonly>{{#if:{{{3|}}}|<span class="template-frac">{{{1}}} {{{2}}}⁄{{{3}}}</span>|<noinclude> | + | </noinclude>{{#if:{{{2|}}}|<noinclude>Complex: |
| − | #else: | ||
| − | </noinclude>{{#if:{{{2|}}}|<noinclude> | ||
| − | Complex: | ||
| − | |||
</noinclude>{{#switch:{{{2}}} | </noinclude>{{#switch:{{{2}}} | ||
| 0 = {{#ifeq:{{{1}}} | | 0 = {{#ifeq:{{{1}}} | ||
| Line 59: | Line 55: | ||
}} | }} | ||
| <span class="template-frac">{{{1}}}⁄{{{2}}}</span> | | <span class="template-frac">{{{1}}}⁄{{{2}}}</span> | ||
| − | }}|<noinclude> | + | }}|<noinclude>#else: |
| − | #else: | ||
</noinclude>{{#switch:{{{1}}}|2=½|3=⅓|4=¼|5=⅕|6=⅙|8=⅛|<span class="template-frac">⅟{{{1}}}</span>}}}}}}</includeonly><noinclude> | </noinclude>{{#switch:{{{1}}}|2=½|3=⅓|4=¼|5=⅕|6=⅙|8=⅛|<span class="template-frac">⅟{{{1}}}</span>}}}}}}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> | ||