Template:User stats

This is the current revision of this page, as edited by Alex (talk | contribs) at 00:54, 17 October 2024 (Created page with "<includeonly>{{#if:{{{Name|}}}|{{#vardefine:name|{{#iferror:{{#vardefineecho:nameresult|{{hiscore|{{{Name}}}|Overall}}}}||{{#ifeq:{{#var:nameresult|}}|C||{{#ifeq:{{#var:nameresult|}}|E||{{#ifeq:{{#var:nameresult|}}|B||{{{Name}}}}}}}}}}}}}|{{#if:{{{name|}}}|{{#vardefine:name|{{#iferror:{{#vardefineecho:nameresult|{{hiscore|{{{name}}}|Overall}}}}||{{#ifeq:{{#var:nameresult|}}|C||{{#ifeq:{{#var:nameresult|}}|E||{{#ifeq:{{#var:nameresult|}}|B||{{{name}}}}}}}}}}}}}}}}}{{#vard..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation
This documentation is transcluded from Template:User stats/doc. [edit] [history] [purge]

If you wish to change how the template displays, then copy the code to a userpage and use that instead. Do not edit this page for simple display changes without consensus.

Template documentation

The User stats template inserts a table with all skill levels into a page. In addition, the template will display the number of quest points if provided in the parameter list. The Name parameter will insert a link to the Old School RuneScape Hiscore page for that name and will also fill the skill levels as well as the combat level.

Usage

{{User stats
|Name          = Player (display) name
|Quest         = Quest Points
|Combat        = Optional - Combat level; If not entered, will calculate automatically from individual combat skills
|Music         = Number of music tracks unlocked as shown on Music Player
|Total         = Optional - The template automatically sets your total level, but this can set it manually.
|Date          = "As of" date
|Virtual       = Optional - Default is "no"; this will show the virtual levels
|Virtual total = Optional - Requires Virtual to be "yes"; sets the virtual total level, it will be set automatically if not defined, but this is based on the experience in a skill if that skill is known in the hiscore, e.g. having a skill with a level below 15 will cause the virtual total level to be inaccurate.
|margin        = Keep text around box clear of box edge (default "yes").
|extra-css     = Additional CSS style code. Optional.
|align         = Defines the template's float placement. Defaults to right. Optional.
|float         = (Optional) Set this to "no" to disable the float property.
|Altcaption    = Alternate caption if player name is not specified. Optional, and incompatible with name.
|Bottomtext    = Extra text to display below the date. Optional.
}}

Examples

Example (default)

Below is an example of a user stat template for a player by just entering your display name:

{{User stats
|Name = Player name
|Quest = 1
|Music = 21
|Date = {{subst:LOCALDAY}} {{subst:LOCALMONTHNAME}} {{subst:LOCALYEAR}}
}}

The example produces the following result:

Player name
Total level: {{#hs:osrs|Player name|0|1}}
Attack Expression error: Unexpected < operator. Hitpoints Expression error: Unexpected < operator. Mining Expression error: Unexpected < operator.
Strength Expression error: Unexpected < operator. Agility Expression error: Unexpected < operator. Smithing Expression error: Unexpected < operator.
Defence Expression error: Unexpected < operator. Herblore Expression error: Unexpected < operator. Fishing Expression error: Unexpected < operator.
Ranged Expression error: Unexpected < operator. Thieving Expression error: Unexpected < operator. Cooking Expression error: Unexpected < operator.
Prayer Expression error: Unexpected < operator. Crafting Expression error: Unexpected < operator. Firemaking Expression error: Unexpected < operator.
Magic Expression error: Unexpected < operator. Fletching Expression error: Unexpected < operator. Woodcutting Expression error: Unexpected < operator.
Runecraft Expression error: Unexpected < operator. Slayer Expression error: Unexpected < operator. Farming Expression error: Unexpected < operator.
Construction Expression error: Unexpected < operator. Hunter Expression error: Unexpected < operator.
Combat level 0 1 21
As of 2 October 2018

Example (new account)

Below is an example of a user stat template for a player just arriving from Tutorial Island:

{{User stats
|Attack        = 1  |Hitpoints    = 10 |Mining      = 1
|Strength      = 1  |Agility      = 1  |Smithing    = 1
|Defence       = 1  |Herblore     = 1  |Fishing     = 1
|Ranged        = 1  |Thieving     = 1  |Cooking     = 1
|Prayer        = 1  |Crafting     = 1  |Firemaking  = 1
|Magic         = 1  |Fletching    = 1  |Woodcutting = 1
|Runecraft     = 1  |Slayer       = 1  |Farming     = 1
|Construction  = 1  |Hunter       = 1
|Quest         = 1  |Combat       = 3  |Music       = 21
|Date          = {{subst:LOCALDAY}} {{subst:LOCALMONTHNAME}} {{subst:LOCALYEAR}}
}}

The example produces the following result:

Player name
Total level: {{#hs:osrs|Player name|0|1}}
Attack 1 Hitpoints 10 Mining 1
Strength 1 Agility 1 Smithing 1
Defence 1 Herblore 1 Fishing 1
Ranged 1 Thieving 1 Cooking 1
Prayer 1 Crafting 1 Firemaking 1
Magic 1 Fletching 1 Woodcutting 1
Runecraft 1 Slayer 1 Farming 1
Construction 1 Hunter 1
Combat level 3 1 21
As of 27 September 2017

Skill level overrides

Each skill level can be overridden with the skill name being assigned a value as displayed above, however filling in your Old School RuneScape displayname (not username) will automatically fetch the skill levels from the hiscores, unless they're below level 15 then it'll return -1.