Template:XP/Total/doc

Revision as of 10:26, 19 December 2024 by Artoire (talk | contribs) (Created page with "{{Documentation}} Total experience points needed to reach a level, from 0. This value is suitable for calculations (i.e., it has no commas). Use <syntaxhighlight language="wikitext" inline>{{formatnum:{{XP/Total|...}}}}</syntaxhighlight> to display the value. ==Examples== <syntaxhighlight language="wikitext" inline>{{XP/Total|0}}</syntaxhighlight> → {{XP/Total|0}}<br> <syntaxhighlight language="wikitext" inline>{{XP/Total|20}}</syntaxhighlight> → {{XP/Total...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:XP/Total.
It contains usage information, categories, and other content that is not part of the original template page.
Template:XP/Total invokes function total_xp in Module:Experience using Lua.

Total experience points needed to reach a level, from 0.

This value is suitable for calculations (i.e., it has no commas). Use {{formatnum:{{XP/Total|...}}}} to display the value.

Examples

{{XP/Total|0}} → 0
{{XP/Total|20}} → 35997
{{XP/Total|500}} → 1861867989
{{formatnum:{{XP/Total|500}}}} → 1,861,867,989

Template data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Total experience points needed to reach a level, from 0

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Level1

The level to reach

Example
20
Numberrequired