Template:PossibleValueHelper

From Elwiki

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  
}}

Examples

You Type You Get
{{PossibleValueHelper
  |max_value=5
  |every=2
  |separator= / 
}}
1 / 1 / 2 / 2 / 3 / 3 / 4 / 4 / 5 / 5
{{PossibleValueHelper
  |postfix=%
  |max_value=20
  |separator= / 
}}
2% / 4% / 6% / 8% / 10% / 12% / 14% / 16% / 18% / 20%
{{PossibleValueHelper
  |appender=1
  |max_value=0.05
  |separator= / 
}}
1.005 / 1.01 / 1.015 / 1.02 / 1.025 / 1.03 / 1.035 / 1.04 / 1.045 / 1.05