Template:Sandbox/Aurelain/HeroClassSkills/value

From Heroes of Might and Magic: Olden Era Official Wiki


Renders a number either as raw value or as percentage.

1. Normal:

Input: {{Sandbox/Aurelain/HeroClassSkills/value|150|1000}}

Output: 15

2. Value A:

Input: {{Sandbox/Aurelain/HeroClassSkills/value|123|1000}}

Output: 12.3

3. Value B:

Input: {{Sandbox/Aurelain/HeroClassSkills/value|3|10}}

Output: 12.3

4. Invalid numerator:

Input: {{Sandbox/Aurelain/HeroClassSkills/value||1000}}

Output: Expression error: Unexpected / operator.