Template:ParseHiscoreData/doc
The ParseHiscoreData template can be used to extract chosen skill levels, rank or experience from raw highscore data in the same format as returned from http://hiscore.runescape.com/index_lite.ws?player=<playername>.
Usage
{{ParseHiscoreData|hiscore data|skill name|value type}}
The hiscore data should be a string of number separated with commas and spaces in the format returned by the index_lite.ws. For example, for Zezima, this can be seen here.
Rather than copying the data into each use of ParseHiscoreData, this returned text from the index_lite.ws can be saved in a user's subpage that then can be included. See examples below. |
The skill name is the name of the skill to extract the information for. The skill name can be one of the following:
- A standard skill name, such as attack, ranged, etc.
- overall - for overall skill rank, level and xp.
- duel - for Duel Tournament rank and score.
- bh - for Bounty Hunter rank and score.
- bhr - for Bounty Hunter Rogue rank and score.
- fog - for Fist of Guthix rank and score.
- ma - for Mobilising Armies rank and score.
- baa - for B.A. Attacker rank and score.
- bad - for B.A. Defender rank and score.
- bac - for B.A. Collector rank and score.
- bah - for B.A. Healer rank and score.
- cw - for Castle Wars rank and score.
- conq - for Conquest rank and score.
- dom - for Dominion Tower rank and score.
- cru - for Crucible rank and score.
The value type is the type of value to extract.
- 0 - for the skill or minigame rank.
- 1 - for the skill level or minigame score (this is the default).
- 2 - for the skill experience (does not apply to minigames).
Examples
The following template call returns the overall level of a user called Example, using the user's hiscore data saved in the page [[User:Example/Hiscore Data]]:
{{ParseHiscoreData| {{User:Example/Hiscore Data}} | overall}}
The following example shows the number of experience points for the user Example for the Fletching skill:
{{ParseHiscoreData| {{User:Example/Hiscore Data}} | fletching | 2}}
The following example shows the Duel Tournament score for the user Example:
{{ParseHiscoreData| {{User:Example/Hiscore Data}} | duel | 1}}
The following example shows the Fist of Guthix rank for the user Example:
{{ParseHiscoreData| {{User:Example/Hiscore Data}} | fog | 0}}
Updating a user's Hiscore Data pages
Users can periodically update their Hiscore Data pages by doing the following:
- Go to the web page http://services.runescape.com/m=hiscore/index_lite.ws?player=<playername> (where the <playername> is replaced with the player's RuneScape username).
- Copy the contents of the page (e.g. using Ctrl-C).
- Go to user's own Hiscore Data sub-page.
- Edit the Hiscore Data page.
- Select any existing text in the edit box.
- Paste in the new data.
- Save the changes.
All pages making use of the user's hiscore data should then be automatically updated.