Frac: Difference between revisions
From Vigyanwiki
Template>Thesevenseas (Optimised Code) |
Template>Crissov m (make it actually do what the docu says it does) |
||
Line 1: | Line 1: | ||
<span class="template-frac"><noinclude><!-- | <span class="template-frac"><noinclude><!-- | ||
--></noinclude>{{#if:{{{3|}}} | --></noinclude>{{#if:{{{3|}}} | ||
|{{{1}}} {{#switch:{{{3}}} | |||
|2 = {{#ifeq:{{{2}}}|1 | |||
|½ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|3 = {{#switch:{{{2}}} | |||
|1=⅓ | |||
|2=⅔ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|4 = {{#switch:{{{2}}} | |||
|1=¼ | |||
|2=½ | |||
|3=¾ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|5 = {{#switch:{{{2}}} | |||
|1=⅕ | |||
|2=⅖ | |||
|3=⅗ | |||
|4=⅘ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|6 = {{#switch:{{{2}}} | |||
|1=⅙ | |||
|2=⅓ | |||
|3=½ | |||
|4=⅔ | |||
|5=⅚ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|8 = {{#switch:{{{2}}} | |||
|1=⅛ | |||
|2=¼ | |||
|3=⅜ | |||
|4=½ | |||
|5=⅝ | |||
|6=¾ | |||
|7=⅞ | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|#default={{{2}}}⁄{{{3}}} | |||
}} | |||
|{{#if:{{{2|}}} | |||
|{{#switch:{{{2}}} | |||
|2 = {{#ifeq:{{{1}}}|1 | |||
|½ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|3 = {{#switch:{{{1}}} | |||
|1=⅓ | |||
|2=⅔ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|4 = {{#switch:{{{1}}} | |||
|1=¼ | |||
|2=½ | |||
|3=¾ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|5 = {{#switch:{{{1}}} | |||
|1=⅕ | |||
|2=⅖ | |||
|3=⅗ | |||
|4=⅘ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|6 = {{#switch:{{{1}}} | |||
|1=⅙ | |||
|2=⅓ | |||
|3=½ | |||
|4=⅔ | |||
|5=⅚ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|8 = {{#switch:{{{1}}} | |||
|1=⅛ | |||
|2=¼ | |||
|3=⅜ | |||
|4=½ | |||
|5=⅝ | |||
|6=¾ | |||
|7=⅞ | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|#default={{{1}}}⁄{{{2}}} | |||
}} | |||
|{{#switch:{{{1}}} | |||
|2=½ | |||
|3=⅓ | |||
|4=¼ | |||
|5=⅕ | |||
|6=⅙ | |||
|8=⅛ | |||
|#default=⅟{{{1|x}}} | |||
}} | |||
}} | |||
}}</span><noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 05:15, 4 October 2010
⅟x
Documentation
[create]