Template:GetLevelRange/Preprocess

From HorizonXI Wiki
< Template:GetLevelRange
Revision as of 11:42, 16 September 2024 by Aramachus (talk | contribs) (Created page with "<includeonly><onlyinclude>{{#if:{{{1|}}}|<!-- if there is a minus in the input, take the part after the minus -->{{#if:{{#explode:{{{1}}}|-|1}}|{{#explode:{{{1}}}|-|1}}|<!-- if there is a plus at the end of the input, take everything but the plus -->{{#ifeq:{{#sub:{{{1}}}|-1}}|+|{{#sub:{{{1}}}|0|-1}}<!-- -->}}}}}}</onlyinclude></includeonly> ==Usage== Preprocessing Template for Template:GetLevelRange that is supposed to catch all exceptions that are not pure numbers...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Preprocessing Template for Template:GetLevelRange that is supposed to catch all exceptions that are not pure numbers but, e.g. "41-43" or "55+".

Examples

{{GetLevelRange/Preprocess|40-42}}

42

{{GetLevelRange/Preprocess|55+}}

55