Template:PossibleValueHelper: Difference between revisions
Template:PossibleValueHelper (view source)
Revision as of 14:06, 24 December 2021
, 24 December 2021no edit summary
(Created page with "<noinclude> == Introduction == Helper template for possible values of equipment stats. == How to use == <pre><nowiki> {{PossibleValueHelper |postfix=Postfix of every value,...") |
No edit summary |
||
Line 78: | Line 78: | ||
{{#vardefine:low|{{#expr: {{{max_value}}} / ({{{total_values}}} / {{{every|1}}}) }}}}{{#vardefine:i|0}}{{#while: | {{#vardefine:low|{{#expr: {{{max_value}}} / ({{{total_values}}} / {{{every|1}}}) }}}}{{#vardefine:i|0}}{{#while: | ||
| {{#ifexpr: {{#var:i}} < {{{total_values}}} | true }} | | {{#ifexpr: {{#var:i}} < {{{total_values}}} | true }} | ||
| <nowiki />{{#expr: {{{appender|0}}} + {{#var:low}} + {{#var:low}} * floor({{#var:i}} / {{{every|1}}}) }}{{{postfix}}}{{#ifexpr:{{#var:i}}!={{{total_values}}}-1|{{{separator}}}|}}{{#vardefine:i|{{#expr: {{#var:i}} + 1 }} }} | | <nowiki />{{#expr: {{{appender|0}}} + {{#var:low}} + {{#var:low}} * floor({{#var:i}} / {{{every|1}}}) }}{{{postfix|}}}{{#ifexpr:{{#var:i}}!={{{total_values}}}-1|{{{separator|}}}|}}{{#vardefine:i|{{#expr: {{#var:i}} + 1 }} }} | ||
}} | }} | ||
</includeonly> | </includeonly> |