Template:Hiscore/doc

The Hiscore template can be used to extract chosen skill levels, rank or experience for calculators.

Usage
display name

The display name is the name of the user to retrieve the hiscore data of.

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

The type name is the type of value to extract.
 * rank - for the skill or minigame rank.
 * lvl - for the skill level or minigame score (this is the default).
 * exp - for the skill experience (does not apply to minigames).

In the case of error, the following status codes may be returned:
 * 0 - Enter a display name.
 * 1 - The user does not exist.
 * 2 - An unknown error occurred, try again.
 * 3 - You have gone beyond the limit of two separate names per page.
 * 4 - The skill does not exist.
 * 5 - The type does not exist.

Examples
The following template call returns the overall level of a user called Example:

The following example shows the number of experience points for the user Example for the Fletching skill:

The following example shows the Duel Tournament score for the user Example:

The following example shows the Fist of Guthix rank for the user Example: