Template:DARFraction: Difference between revisions
From Ephinea PSO Wiki
(Created page with "{{#switch:{{{1}}} | 90 = 9/10 | 88 = 22/25 | 85 = 17/20 | 80 = 4/5 | 60 = 3/5 | 55 = 9/20 | {{#ifexpr: {{#expr:1/{{{1}}}/100}} < 10 | 1/{{#expr:1/({{{1}}}/100) round 2}} | {{#ifexpr: {{#expr:1/({{{1}}}/100)}} < 100 | 1/{{#expr:1/({{{1}}}/100) round 1}} | 1/{{#expr:1/({{{1}}}/100)}}}}}} }}<noinclude> ==Usage and example== <pre>{{DARFraction|55}}</pre> {{DARFraction|55}} <pre>{{DARFraction|45}}</pre> {{DARFraction|45}} </noinclude>") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#ifexpr:{{{1|0}}} = 0 | 0 | | |||
{{#switch:{{{1}}} | {{#switch:{{{1}}} | ||
| 90 = 9/10 | | 90 = 9/10 | ||
Line 7: | Line 8: | ||
| 55 = 9/20 | | 55 = 9/20 | ||
| {{#ifexpr: {{#expr:1/{{{1}}}/100}} < 10 | 1/{{#expr:1/({{{1}}}/100) round 2}} | {{#ifexpr: {{#expr:1/({{{1}}}/100)}} < 100 | 1/{{#expr:1/({{{1}}}/100) round 1}} | 1/{{#expr:1/({{{1}}}/100)}}}}}} | | {{#ifexpr: {{#expr:1/{{{1}}}/100}} < 10 | 1/{{#expr:1/({{{1}}}/100) round 2}} | {{#ifexpr: {{#expr:1/({{{1}}}/100)}} < 100 | 1/{{#expr:1/({{{1}}}/100) round 1}} | 1/{{#expr:1/({{{1}}}/100)}}}}}} | ||
}}<noinclude> | }}}}<noinclude> | ||
==Usage and example== | ==Usage and example== |