Template:XP to Level/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{documentation}} :'''''Not to be confused with Template:XP to Level.''''' '''XP to level''' works out the difference between the experience needed at a certain level and a current experience. ==Usage== <pre>{{XP to level|Current experience|goal level}}</pre> ==Example== A goal level of 80 with current experience 1,500,000. Code: <pre>{{XP to level|1500000|80}}</pre> Result:<br /> {{XP to level|1500000|80}} <includeonly>Category:Mathematical templates|{{PAGEN...")
 
No edit summary
 
Line 1: Line 1:
{{documentation}}
{{documentation}}
:'''''Not to be confused with [[Template:XP to Level]].'''''
:'''''Not to be confused with [[Template:XP to level]].'''''


'''XP to level''' works out the difference between the experience needed at a certain level and a current experience.
The '''XP to Level''' template returns the level for a given number of experience points given in the input parameter.


==Usage==
== Usage ==
<pre>{{XP to level|Current experience|goal level}}</pre>
<pre>{{XP to Level|experience points}}</pre>


==Example==
== Example ==
<pre>{{XP to Level|1500000}}</pre>
A goal level of 80 with current experience 1,500,000.
Note that spaces in using the template might cause unexpected results when used in other constructs (tables, templates). The example produces the following result: {{XP to Level|1500000}}

<includeonly>[[Category:Calculator templates|{{PAGENAME}}]][[Category:Mathematical templates|{{PAGENAME}}]][[Category:XP templates|{{PAGENAME}}]]</includeonly>
Code:
<pre>{{XP to level|1500000|80}}</pre>

Result:<br />
{{XP to level|1500000|80}}

<includeonly>[[Category:Mathematical templates|{{PAGENAME}}]][[Category:XP templates|{{PAGENAME}}]]</includeonly>

Latest revision as of 23:05, 17 October 2024

This is a documentation subpage for Template:XP to Level.
It contains usage information, categories, and other content that is not part of the original template page.
Not to be confused with Template:XP to level.

The XP to Level template returns the level for a given number of experience points given in the input parameter.

Usage

{{XP to Level|experience points}}

Example

{{XP to Level|1500000}}

Note that spaces in using the template might cause unexpected results when used in other constructs (tables, templates). The example produces the following result: 77