Template:ThievingTarget: Difference between revisions

From Melvor Idle
m (added space between xp amount and text)
m (Format max hit number)
 
(18 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 infobox"
|-  
|-  
! {{{name}}}
! {{#var:npc}}
|-
|-
| [[File:{{{name}}}_(thieving).svg|250px]]
| style="text-align:center;" | {{#invoke:Icons|Icon|{{#var:npc}}|type=thieving|size=250|notext=true}}
|-
|-
| Level {{{level}}}
| '''Area:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|area}}
|-
|-
| {{{xp}}} xp
| '''Requirements:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|level}}
|-
|-
| Drops:
| '''Perception:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|perception}}}}
{{{drops}}}
|-
|}
| '''Max Hit:''' {{formatnum:{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxHit}}}}
|-
| '''Experience:''' {{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|baseExperience}} XP
|}</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
Error creating thumbnail: File missing
Area: Banquet
Requirements:
Error creating thumbnail: File missing
Level 34
Perception: 350
Max Hit: 108
Experience: 31 XP