Template:ParseHiscoreData/doc

= Template Documentation =

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= .

Usage
 

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.

The skill name is the name of the skill to extract the information for. The overall levels can be extracted by specifying "overall".

The value type is the type of value to extract. If "0", then the rank is extracted. If "1", then the level is extracted (this is the default). If "2", then the experience is extracted.

Example
The following template call returns the overall level of a user called Amaurice, using the user's hiscore data saved in the page User:Amaurice/Hiscore Data:

This gives the result:

The following example shows the number of experience points for the user Amaurice for the fletching skill:

This gives the result:

Updating user's Hiscore Data pages
User's can periodically update their Hiscore Data pages by doing the following:
 * 1) Go to the web page  http://hiscore.runescape.com/index_lite.ws?player=  (where the   is replaced with the real player name).
 * 2) Copy the contents of the page (e.g. using Cntl-C).
 * 3) Go to user's own Hiscore Data sub-page
 * 4) Edit the Hiscore Data page
 * 5) Select any existing text in the edit box (e.g. using Ctrl-A)
 * 6) Paste in the new data (e.g. using Cntl-V)
 * 7) Save the changes.

All pages making use of the user's hiscore data should then be automatically updated.