Frac: Difference between revisions

From Vigyanwiki
Template>Crissov
No edit summary
Template>Crissov
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{3|}}}|<span class="template-frac">{{{1}}}&thinsp;{{{2}}}&frasl;{{{3}}}</span>|<noinclude>#else:
<includeonly><span class="template-frac">{{#if:{{{3|}}}|{{{1}}}&thinsp;{{{2}}}&frasl;{{{3}}}|<noinclude>#else:
 
</noinclude>{{#if:{{{2|}}}|<noinclude>Complex:
</noinclude>{{#if:{{{2|}}}|<noinclude>Complex:
</noinclude>{{#switch:{{{2}}}
</noinclude>{{#switch:{{{2}}}
| 0 = {{#ifeq:{{{1}}}
| 0 = {{#ifeq:{{{1}}}
   | 0 | %
   | 0 | %
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 00 = {{#ifeq:{{{1}}}
| 00 = {{#ifeq:{{{1}}}
   | 0 | ‰
   | 0 | ‰
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 000 = {{#ifeq:{{{1}}}
| 000 = {{#ifeq:{{{1}}}
   | 0 | ‱
   | 0 | ‱
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 2 = {{#ifeq:{{{1}}}
| 2 = {{#ifeq:{{{1}}}
   | 1 | ½
   | 1 | ½
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 3 = {{#switch:{{{1}}}
| 3 = {{#switch:{{{1}}}
   | 1 = ⅓
   | 1 = ⅓
   | 2 = ⅔
   | 2 = ⅔
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 4 = {{#switch:{{{1}}}
| 4 = {{#switch:{{{1}}}
Line 27: Line 28:
   | 2 = ½
   | 2 = ½
   | 3 = ¾
   | 3 = ¾
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 5 = {{#switch:{{{1}}}
| 5 = {{#switch:{{{1}}}
Line 34: Line 35:
   | 3 = ⅗
   | 3 = ⅗
   | 4 = ⅘
   | 4 = ⅘
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 6 = {{#switch:{{{1}}}
| 6 = {{#switch:{{{1}}}
Line 42: Line 43:
   | 4 = ⅔
   | 4 = ⅔
   | 5 = ⅚
   | 5 = ⅚
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| 8 = {{#switch:{{{1}}}
| 8 = {{#switch:{{{1}}}
Line 52: Line 53:
   | 6 = ¾
   | 6 = ¾
   | 7 = ⅞
   | 7 = ⅞
   | <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
   | {{{1}}}&frasl;{{{2}}}
   }}
   }}
| <span class="template-frac">{{{1}}}&frasl;{{{2}}}</span>
| {{{1}}}&frasl;{{{2}}}
}}|<noinclude>#else:
}}|<noinclude>#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=⅛|⅟{{{1}}} }}
}}
}}</span></includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 04:22, 22 June 2010

Documentation