Template:ThievingTarget: Difference between revisions

From Melvor Idle
(Remove variable declarations relating to drop tables, as they are no longer listed in this infobox)
m (Remove override for golbin as it is no longer necessary)
 
(6 intermediate revisions by 3 users 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}}
{{ThievingTarget|Blighted Treant}}


<onlyinclude><includeonly>{{#vardefine:npc|{{{1|{{PAGENAME}}}}}}}<!--
<onlyinclude><includeonly>
--><!-- Manual override below for Golbin --><!--
<!-- Generate the box -->
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
{| class="wikitable infobox"
--><!-- Generate the box -->
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"
|-  
|-  
! {{#var:npc}}
! {{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|expansionIcon}}{{{1|{{PAGENAME}}}}}
|-
|-
| {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
| style="text-align:center;" | {{#invoke:Icons|Icon|{{{1|{{PAGENAME}}}}}|type=thieving|size=250|notext=true}}
|-
|-
| '''Area:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|area}}
| '''NPC ID:''' {{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|id}}
|-
|-
| '''Requirements:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|level}}
| '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|area}}
|-
|-
| '''Perception:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|perception}}
| '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|level}}
|-
|-
| '''Max Hit:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|maxHit}}
| '''Perception:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|perception}}}}
|-
|-
| '''Experience:''' {{#invoke:Skills/Gathering|getThievingNPCStat|{{#var:npc}}|xp}} XP
| '''Max Hit:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|maxHit}}}}
|-
| '''Experience:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{{1|{{PAGENAME}}}}}|baseExperience}}}} XP
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>

Latest revision as of 16:18, 17 January 2025

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

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

Chef
Error creating thumbnail: File missing
NPC ID: melvorF:CHEF
Area: Banquet
Requirements:
Error creating thumbnail: File missing
Level 34
Perception: 350
Max Hit: 108
Experience: 31 XP
Error creating thumbnail: File missing
Blighted Treant
Error creating thumbnail: File missing
NPC ID: melvorItA:BlightedTreant
Area: Blighted Reach
Requirements:
Error creating thumbnail: File missing
Level 20
Perception: 1,210
Max Hit: 15,500
Experience: 2,721 XP