Template:ThievingTarget: Difference between revisions

From Melvor Idle
(fixed example)
(Remove variable declarations relating to drop tables, as they are no longer listed in this infobox)
Line 7: Line 7:
--><!-- Manual override below for Golbin --><!--
--><!-- Manual override below for Golbin --><!--
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
-->{{#ifeq:{{#var:npc}}|Golbin (thieving)|{{#vardefine:npc|Golbin}}}}<!--
-->{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootList}}}}<!--
-->{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}|||Normal Drops:<br/>{{#var:itemDrops}}<br/>}}}}<!--
--><!-- Generate the box -->
--><!-- Generate the box -->
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"
{| class="wikitable" style="float:right; clear:right; max-width:250px; margin-left:10px"

Revision as of 23:33, 30 September 2021

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

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

Chef
Error creating thumbnail: File missing
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