RuneScape Wiki
RuneScape Wiki
(added documentation template, added text that wasn't in the documentation page but on templatepage.)
Line 6: Line 6:
 
As an interim measure, users should use the section edit. -->
 
As an interim measure, users should use the section edit. -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
 
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
  +
{{documentation}}
  +
<big>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.</big>
 
==Template Documentation==
 
==Template Documentation==
   

Revision as of 12:46, 15 August 2010

Information icon-grey.svg
This is a documentation subpage for Template:User stats.
It contains usage information, categories, and other content that is not part of the original template page.

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. All skills can be assigned a particular level in the template. In addition, the template will display the number of quest points and the combat level if provided in the parameter list. The Name parameter will insert a link to the RuneScape Hiscore page for that name.

If the value for a skill is not specified, but the Name is, then an attempt to dynamically lookup the value is made. This will only work for skills that the player has values listed in the highscores, otherwise -1 will be shown.

Usage

{{User stats|skill levels}} The template uses the common Skillname=number format. The following parametres are recognised in the template.

{{User stats
|Name          = Player name
|Attack        = Attack level
|Constitution  = Constitution level
|Mining        = Mining level
|Strength      = Strength level
|Agility       = Agility level
|Smithing      = Smithing level
|Defence       = Defence level
|Herblore      = Herblore level
|Fishing       = Fishing level
|Ranged        = Ranged level
|Thieving      = Thieving level
|Cooking       = Cooking level
|Prayer        = Prayer level
|Crafting      = Crafting level
|Firemaking    = Firemaking level
|Magic         = Magic level
|Fletching     = Fletching level
|Woodcutting   = Woodcutting level
|Runecrafting  = Runecrafting level
|Slayer        = Slayer level
|Farming       = Farming level
|Construction  = Construction level
|Hunter        = Hunter level
|Summoning     = Summoning level
|Dungeoneering = Dungeoneering level
|Quest         = Quest Points
|Combat        = Combat level
|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
|extra-css     = Additional CSS style code. Optional.
|align         = Defines the template's placement. Defaults to right. Optional.
}}

Example

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

{{User stats
 |Attack       = 1  | Constitution = 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
 |Runecrafting = 1  | Slayer       = 1  | Farming     = 1
 |Construction = 1  | Hunter       = 1  | Summoning   = 1
 |Dungeoneering = 1
 |Quest        = 0  | Combat       = 3  | Music       = 21
 |Date         = {{LOCALDAY}} {{LOCALMONTHNAME}} {{LOCALYEAR}}
}}

The example produces the following result:

Total level: 34
Attack 1 Constitution 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
Runecrafting 1 Slayer 1 Farming 1
Construction 1 Hunter 1 Summoning 1
Dungeoneering 1 Divination ---- Invention ----
Attack style icon fixed.png 3 Quest.png 0 Music icon fixed.png 21
Task icon fixed.png ---- RuneScore.png -----
As of 24 September 2021

See also