Template:ThievingTarget: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Updated to use new code for thieving (in Skills/Gathering)) |
m (Format max hit number) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Usage: {{T|ThievingTarget| | Usage: {{T|ThievingTarget|<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead. | ||
For example, {{T|ThievingTarget| | For example, {{T|ThievingTarget|Chef}} returns: | ||
{{ThievingTarget| | {{ThievingTarget|Chef}} | ||
<onlyinclude><includeonly>{{#vardefine:npc|{{{ | <onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!-- | ||
--><!-- Manual override below for Golbin --><!-- | --><!-- Manual override below for Golbin --><!-- | ||
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!-- | -->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!-- | ||
--><!-- Generate the box --> | --><!-- Generate the box --> | ||
{| class="wikitable | {| class="wikitable infobox" | ||
|- | |- | ||
! {{#var:npc}} | ! {{#var:npc}} | ||
|- | |- | ||
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}} | | style="text-align:center;" | {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}} | ||
|- | |- | ||
| '''Area:''' {{#invoke:Skills | | '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|area}} | ||
|- | |- | ||
| '''Requirements:''' {{#invoke:Skills | | '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|level}} | ||
|- | |- | ||
| '''Perception:''' {{#invoke:Skills | | '''Perception:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|perception}}}} | ||
|- | |- | ||
| '''Max Hit:''' {{#invoke:Skills | | '''Max Hit:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}}} | ||
|- | |- | ||
| '''Experience:''' {{#invoke:Skills | | '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|baseExperience}} XP | ||
|}</includeonly></onlyinclude> | |}</includeonly></onlyinclude> |
Latest revision as of 14:42, 20 June 2024
Usage: {{ThievingTarget|<NPC_Name>}}
. If the name parameter is omitted, the page name is used instead.
For example, {{ThievingTarget|Chef}}
returns:
Chef |
---|
Area: Banquet |
Requirements: |
Perception: 350 |
Max Hit: 108 |
Experience: 31 XP |