Template:GetLevelRange/Preprocess

From Horizon Wiki Mirror
Revision as of 11:44, 16 September 2024 by imported>Aramachus
(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}}

{{#explode:40-42|-|1}}

{{GetLevelRange/Preprocess|55+}}

{{#explode:55+|-|1}}

{{GetLevelRange/Preprocess|55}}

{{#explode:55|-|1}}