Template:PossibleValueHelper: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 23: Line 23:
{{PossibleValueHelper
{{PossibleValueHelper
   |max_value=5
   |max_value=5
  |total_values=10
   |every=2
   |every=2
   |separator= / 
   |separator= / 
Line 29: Line 28:
</nowiki></pre> || align=center | {{PossibleValueHelper
</nowiki></pre> || align=center | {{PossibleValueHelper
   |max_value=5
   |max_value=5
  |total_values=10
   |every=2
   |every=2
   |separator=&nbsp;/&nbsp;
   |separator=&nbsp;/&nbsp;
Line 38: Line 36:
   |postfix=%
   |postfix=%
   |max_value=20
   |max_value=20
  |total_values=10
   |separator=&amp;nbsp;/&amp;nbsp;
   |separator=&amp;nbsp;/&amp;nbsp;
}}
}}
Line 44: Line 41:
   |postfix=%
   |postfix=%
   |max_value=20
   |max_value=20
  |total_values=10
   |separator=&nbsp;/&nbsp;
   |separator=&nbsp;/&nbsp;
}}
}}
Line 52: Line 48:
   |appender=1
   |appender=1
   |max_value=0.05
   |max_value=0.05
  |total_values=10
   |separator=&amp;nbsp;/&amp;nbsp;
   |separator=&amp;nbsp;/&amp;nbsp;
}}
}}
Line 58: Line 53:
   |appender=1
   |appender=1
   |max_value=0.05
   |max_value=0.05
  |total_values=10
   |separator=&nbsp;/&nbsp;
   |separator=&nbsp;/&nbsp;
}}
}}

Revision as of 23:42, 24 December 2021

Introduction

Helper template for possible values of equipment stats.

How to use

{{PossibleValueHelper
  |postfix=Adds a postfix to every value (Optional).
  |appender=Adds a fixed value to the result (Optional).
  |max_value=Maximum value
  |total_values=How many values there are (Optional, Default 10)
  |every=Split values every n (Optional, Default 1)
  |separator=How to separate values, if you want to add space use &nbsp;
}}

Examples

You Type You Get
{{PossibleValueHelper
  |max_value=5
  |every=2
  |separator=&nbsp;/&nbsp;
}}

1 / 1 / 2 / 2 / 3 / 3 / 4 / 4 / 5 / 5

{{PossibleValueHelper
  |postfix=%
  |max_value=20
  |separator=&nbsp;/&nbsp;
}}

2% / 4% / 6% / 8% / 10% / 12% / 14% / 16% / 18% / 20%

{{PossibleValueHelper
  |appender=1
  |max_value=0.05
  |separator=&nbsp;/&nbsp;
}}

1.005 / 1.01 / 1.015 / 1.02 / 1.025 / 1.03 / 1.035 / 1.04 / 1.045 / 1.05