Frac: Difference between revisions
From Vigyanwiki
Template>Crissov ({{fraction}} now differs from {{frac}}, it is used for precomposed fractions, whereas {{frac}} is more general) |
Template>Crissov No edit summary |
||
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> |
Revision as of 04:14, 22 June 2010
Documentation
[create]