Template:ThievingTarget: Difference between revisions

From Melvor Idle
(Added thieving icon to infobox)
m (Amend example to remove named parameter)
(12 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"
|-  
|-  
! {{{name}}}
! {{#var:npc}}
|-
|-
| [[File:{{{name}}}_(thieving).svg|250px]]
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
|-
|-
| Level {{{level}}} [[File:Thieving (skill).svg|25px]][[Thieving]]
| '''Area:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|area}}
|-
|-
| {{{xp}}} xp
| '''Requirements:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|level}}
|-
|-
| Drops:
| '''Perception:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|perception}}
{{{drops}}}
|-
|}
| '''Max Hit:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|maxHit}}
|-
| '''Experience:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|xp}} XP
|}</includeonly></onlyinclude>

Revision as of 23:37, 30 September 2021

Usage: {{ThievingTarget|<NPC_Name>}}. If the name parameter is omitted, the page name is used instead.

For example, {{ThievingTarget|Chef}} returns:

Chef
Chef
Area: Script error: The function "getThievingNPCStat" does not exist.
Requirements: Script error: The function "getThievingNPCStat" does not exist.
Perception: Script error: The function "getThievingNPCStat" does not exist.
Max Hit: Script error: The function "getThievingNPCStat" does not exist.
Experience: Script error: The function "getThievingNPCStat" does not exist. XP