Template:GetLevelRange

From HorizonXI Wiki
Revision as of 21:39, 20 September 2023 by Aramachus (talk | contribs) (Created page with "<includeonly><onlyinclude>{{#ifexpr:{{{1|}}}<=10|1-10|<!-- -->{{#expr:trunc(({{{1|}}}-1)/10)}}1-{{#expr:1+(trunc(({{{1|}}}-1)/10))}}0<!-- -->}} </onlyinclude></includeonly> ==Usage== Takes a number as argument and returns the 10s level range it belongs to. <pre>{{GetLevelRange|15}}</pre> {{GetLevelRange|15}} <pre>{{GetLevelRange|4}}</pre> {{GetLevelRange|4}} <pre>{{GetLevelRange|50}}</pre> {{GetLevelRange|50}} <pre>{{GetLevelRange|88}}</pre> {{GetLevelRange|88}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


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