Template:XP/Total/doc: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
(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...")
 
mNo edit summary
 
Line 3:
Total experience points needed to reach a level, from 0.
 
This value is suitable for calculations (i.e., it has no commas). Use <syntaxhighlight languagelang="wikitext" inline>{{formatnum:{{XP/Total|...}}}}</syntaxhighlight> to display the value.
 
==Examples==
 
<syntaxhighlight languagelang="wikitext" inline>{{XP/Total|0}}</syntaxhighlight> &rarr; {{XP/Total|0}}<br>
<syntaxhighlight languagelang="wikitext" inline>{{XP/Total|20}}</syntaxhighlight> &rarr; {{XP/Total|20}}<br>
<syntaxhighlight languagelang="wikitext" inline>{{XP/Total|500}}</syntaxhighlight> &rarr; {{XP/Total|500}}<br>
<syntaxhighlight languagelang="wikitext" inline>{{formatnum:{{XP/Total|500}}}}</syntaxhighlight> &rarr; {{formatnum:{{XP/Total|500}}}}
 
{{TemplateData|<templatedata>

Latest revision as of 10:27, 19 December 2024

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