Template:ThievingTarget: Difference between revisions
From Melvor Idle
m (added space between xp amount and text) |
(Invoke getTheivingNPCStat from Module:Skills instead) |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right" | Usage: {{T|ThievingTarget|<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead. | ||
For example, {{T|ThievingTarget|Chef}} returns: | |||
{{ThievingTarget|Chef}} | |||
<onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!-- | |||
--><!-- Manual override below for Golbin --><!-- | |||
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!-- | |||
--><!-- Generate the box --> | |||
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px" | |||
|- | |- | ||
! {{ | ! {{#var:npc}} | ||
|- | |- | ||
| | | {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}} | ||
|- | |- | ||
| | | '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|area}} | ||
|- | |- | ||
| {{{ | | '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|level}} | ||
|- | |- | ||
| | | '''Perception:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|perception}} | ||
{{{ | |- | ||
|} | | '''Max Hit:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}} | ||
|- | |||
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|xp}} XP | |||
|}</includeonly></onlyinclude> |
Revision as of 14:02, 18 April 2022
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: XP |