Template:ItemSources: Difference between revisions

From Melvor Idle
(Updating to reflect code being moved around.)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Replaces individual per-item templates for item sources. Uses data from [[Module:Items/data]] filtered through [[Module:Items]]
Replaces individual per-item templates for item sources. Uses <code>getItemSourceTables</code> in [[Module:Items/SourceTables]]


{{T|ItemSources|Mithril Sword}} becomes {{ItemSources|Mithril Sword}}
{{T|ItemSources|Mithril Sword}} becomes
{{ItemSources|Mithril Sword}}


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

Latest revision as of 18:19, 7 August 2024

Replaces individual per-item templates for item sources. Uses getItemSourceTables in Module:Items/SourceTables

{{ItemSources|Mithril Sword}} becomes

Creation

Item Production
Requirements Smithing Level 42
Materials 1 Mithril Bar
Base Quantity 1
Base Experience 50 XP
Base Creation Time 2s

Loot