Template:GetLevelRange/Preprocess

From Horizon Wiki Mirror

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