Difference between revisions of "Template:Scaled number"

From Dwaia Wiki
Jump to navigation Jump to search
 
Line 1: Line 1:
<onlyinclude>{{#ifexpr:{{{1|}}}|{{#expr:{{#ifexpr:{{{1}}}<2.5|{{{1}}}|{{#ifexpr:{{{1}}}<10|{{#expr:{{{1}}}/5+2}}|{{#expr:{{{1}}}/10+3}}}}}}/0.13}}|}}</onlyinclude>
+
<onlyinclude>{{#iferror: {{#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)

Latest revision as of 06:28, 13 June 2019


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", so a skill bar that is at 10% will display at roughly 30% using this scaling.