Template:GetLevelRange

From HorizonXI Wiki
Revision as of 11:19, 6 November 2023 by Aramachus (talk | contribs) (added check if input is an integer to return unkown if not)


Usage

Takes a number as argument and returns the 10s level range it belongs to.

{{GetLevelRange|15}}

11-20

{{GetLevelRange|4}}

1-10

{{GetLevelRange|50}}

41-50

{{GetLevelRange|88}}

81-90

{{GetLevelRange|106}}

101-110

Works for any integer number

{{GetLevelRange|142}}

141-150

Returns Unknown if the input is not an integer...

{{GetLevelRange|foo}}

Unknown

...or the parameter is left empty...

{{GetLevelRange|}}

Unknown

...or left out

{{GetLevelRange}}

Unknown