Template:Sandbox/Aurelain/HeroClassSkills/value

From Heroes of Might and Magic: Olden Era Official Wiki
Revision as of 08:21, 8 August 2026 by Aurelain (talk | contribs) (Created page with "<includeonly><!-- -->{{#expr: (100 * {{{1|0}}} / {{{2}}}) round 2 }}<!-- --></includeonly><!-- ################################################################################ --><noinclude> Renders a number either as raw value or as percentage. <!--=========================================================================--> ==1. Normal:== {{Color|yellow|Input:}} <code><nowiki>{{Sandbox/Aurelain/HeroClassSkills/value|150|1000}}</code> {{Color|lime|Output:}} {{Sandbox...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Renders a number either as raw value or as percentage.

1. Normal:

Input: <nowiki>15

Output: 15

2. Value A:

Input: <nowiki>12.3

Output: 12.3

3. Value B:

Input: <nowiki>30

Output: 12.3

4. Invalid numerator:

Input: <nowiki>Expression error: Unexpected / operator.

Output: Expression error: Unexpected / operator.