Template:ThievingTarget: Difference between revisions

From Melvor Idle
(Remove variable declarations relating to drop tables, as they are no longer listed in this infobox)
(Add infobox class)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
Usage: {{T|ThievingTarget|name=<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead.
Usage: {{T|ThievingTarget|<NPC_Name>}}. If the '''name''' parameter is omitted, the page name is used instead.


For example, {{T|ThievingTarget|name=Chef}} returns:
For example, {{T|ThievingTarget|Chef}} returns:
{{ThievingTarget|Chef}}
{{ThievingTarget|Chef}}


Line 8: Line 8:
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
--><!-- Generate the box -->
--><!-- Generate the box -->
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"
{| 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/Gathering|getThievingNPCStat|{{#var:npc}}|area}}
| '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|area}}
|-
|-
| '''Requirements:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|level}}
| '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|level}}
|-
|-
| '''Perception:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|perception}}
| '''Perception:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|perception}}}}
|-
|-
| '''Max Hit:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|maxHit}}
| '''Max Hit:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}
|-
|-
| '''Experience:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|xp}} XP
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|baseExperience}} XP
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>

Latest revision as of 08:18, 23 November 2022

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

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

Chef
Chef
Area: Banquet
Requirements: Thieving Level 34
Perception: 350
Max Hit: 108
Experience: 31 XP