Still landing on the old Fandom wiki? Install the HighSpell Wiki Redirector browser extension to automatically redirect all highspell.fandom.com links to highspell.wiki. Works on both Firefox and Chrome, and is open-source. → Learn more and install it now!

Template:NPCLoot: Difference between revisions

From HighSpell Wiki
Jump to navigation Jump to search
No edit summary
Tag: Manual revert
No edit summary
Line 2: Line 2:
{{#cargo_declare:
{{#cargo_declare:
   _table=NpcDrops
   _table=NpcDrops
   |NPC=Page
   |NPCKey=Page
   |Item=Page
   |Item=Page
   |Quantity=Integer
   |Quantity=Integer
Line 11: Line 11:
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#vardefine:npckey|{{FULLPAGENAME}}}}
{{#vardefine:npckey|{{#replace:{{#var:npckey}}|'|}}}}
{{#vardefine:npckey|{{#replace:{{#var:npckey}}|,|}}}}
{{#vardefine:npckey|{{#replace:{{#var:npckey}}| |}}}}
{{#vardefine:npckey|{{lc:{{#var:npckey}}}}}}
{{#cargo_store:
{{#cargo_store:
   _table=NpcDrops
   _table=NpcDrops
   |NPC={{FULLPAGENAME}}
   |NPCKey={{#var:npckey}}
   |Item={{{item}}}
   |Item={{{item}}}
   |Quantity={{{quantity|1}}}
   |Quantity={{{quantity|1}}}

Revision as of 09:11, 15 May 2025

This template defines the table "NpcDrops". This table has not been created yet.