Template:GetLevelRange: Difference between revisions

From HorizonXI Wiki
(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}}...")
 
mNo edit summary
Line 1: Line 1:
<includeonly><onlyinclude>{{#ifexpr:{{{1|}}}<=10|1-10|<!--
<includeonly><onlyinclude>{{#ifexpr:{{{1|}}}<=10|1-10|<!--
-->{{#expr:trunc(({{{1|}}}-1)/10)}}1-{{#expr:1+(trunc(({{{1|}}}-1)/10))}}0<!--
-->{{#expr:trunc(({{{1|}}}-1)/10)}}1-{{#expr:1+(trunc(({{{1|}}}-1)/10))}}0<!--
-->}}
-->}}</onlyinclude></includeonly>
</onlyinclude></includeonly>


==Usage==
==Usage==

Revision as of 21:50, 20 September 2023


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