Difference between revisions of "Template:Scaled number"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | <onlyinclude>{{#ifexpr:{{{1}}}<2.5|{{{1}}}|{{#ifexpr:{{{1}}}<10|{{#expr:{{{1}}}/5+2}}|{{#expr:{{{1}}}/10+3}}}}}}</onlyinclude> | + | <onlyinclude>{{#expr:{{#ifexpr:{{{1}}}<2.5|{{{1}}}|{{#ifexpr:{{{1}}}<10|{{#expr:{{{1}}}/5+2}}|{{#expr:{{{1}}}/10+3}}}}}}/0.13}}</onlyinclude> |
<noinclude> | <noinclude> | ||
This template can be used to convert a number a sort of logarithmic form, enhancing the difference between small values. The main use of this template is for scaling bars for stats like Level and STR inside of infoboxes, as these often contain small values, and rarely big ones. (basically our characters are underpowered) | This template can be used to convert a number a sort of logarithmic form, enhancing the difference between small values. The main use of this template is for scaling bars for stats like Level and STR inside of infoboxes, as these often contain small values, and rarely big ones. (basically our characters are underpowered) |
Revision as of 22:35, 12 May 2019
Expression error: Unexpected < operator.
This template can be used to convert a number a sort of logarithmic form, enhancing the difference between small values. The main use of this template is for scaling bars for stats like Level and STR inside of infoboxes, as these often contain small values, and rarely big ones. (basically our characters are underpowered) Usage:
{{Scaled number|10}}
produces "30.769230769231"