Template:ItemSources: Difference between revisions

From Melvor Idle
(Created page with "Replaces individual per-item templates for item sources. Uses data from Module:Items/data filtered through Module:Items {{T|ItemSources|Mithril Sword}} becomes {{Item...")
 
mNo edit summary
Line 3: Line 3:
{{T|ItemSources|Mithril Sword}} becomes {{ItemSources|Mithril Sword}}
{{T|ItemSources|Mithril Sword}} becomes {{ItemSources|Mithril Sword}}


<onlyinclude><includeonly>{{#vardefine:name|{{{1|{{PAGENAME}}}}}}}{{#invoke:Items|getItemSources|{{#var:name}}}}</includeonly></onlyinclude>
<onlyinclude><includeonly>{{#vardefine:name|{{{1|{{PAGENAME}}}}}}}{{#invoke:Items|getItemSourceTables|{{#var:name}}}}</includeonly></onlyinclude>

Revision as of 19:38, 29 September 2020

Replaces individual per-item templates for item sources. Uses data from Module:Items/data filtered through Module:Items

{{ItemSources|Mithril Sword}} becomes Script error: The function "getItemSourceTables" does not exist.