Template:ItemUpgradeable: Difference between revisions

From Melvor Idle
(Actually changed over to always using ItemIcon instead of only sometimes. Also simplified by just always defaulting to svg extension instead of unnecessary if checks)
m (4th material line was missing a |)
Line 19: Line 19:
-->{{#if:{{{4|}}}|<br/>{{ItemIcon|{{{4}}}|qty={{{5}}}|ext={{{mat2ext|svg}}}}}}}<!--
-->{{#if:{{{4|}}}|<br/>{{ItemIcon|{{{4}}}|qty={{{5}}}|ext={{{mat2ext|svg}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{ItemIcon|{{{6}}}|qty={{{7}}}|ext={{{mat3ext|svg}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{ItemIcon|{{{6}}}|qty={{{7}}}|ext={{{mat3ext|svg}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{ItemIcon|{{{8}}}qty=|{{{9}}}|ext={{{mat4ext|svg}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{ItemIcon|{{{8}}}|qty=|{{{9}}}|ext={{{mat4ext|svg}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{ItemIcon|{{{10}}}|qty={{{11}}}|ext={{{mat5ext|svg}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{ItemIcon|{{{10}}}|qty={{{11}}}|ext={{{mat5ext|svg}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{ItemIcon|{{{12}}}|qty={{{13}}}|ext={{{mat6ext|svg}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{ItemIcon|{{{12}}}|qty={{{13}}}|ext={{{mat6ext|svg}}}}}}}<!--

Revision as of 14:18, 14 September 2020

This template creates tables for what items upgrade into. Unlike Template:ItemUpgrade, this template is not automatically generated by the wikibot.

Examples of the template in action:
{{ItemUpgradeable|Slayer's Crossbow|Dragon Crossbow|1|Slayer Crossbow Head|1|GP=200000}} becomes

Item Upgrade
Upgrades Into Slayer's Crossbow
Materials 1 Dragon Crossbow
1 Slayer Crossbow Head
200,000 GP

{{ItemUpgradeable|Crown of Rhaelyx|intoext=png|Jewel of Rhaelyx|1|mat1ext=png|Circlet of Rhaelyx|1|mat2ext=png}} becomes

Item Upgrade
Upgrades Into Crown of Rhaelyx
Materials 1 Jewel of Rhaelyx
1 Circlet of Rhaelyx