Template:ItemUpgradeable: Difference between revisions

From Melvor Idle
(New template for upgradeable items)
 
(Now uses ItemIcon instead of ItemAmount due to new qty argument)
Line 16: Line 16:
|-
|-
! style ="text-align: right;"| Materials
! style ="text-align: right;"| Materials
| {{#if:{{{mat1ext|}}}|{{ItemAmount|{{{2}}}|{{{3}}}|ext={{{mat1ext}}}}}|{{ItemAmount|{{{2}}}|{{{3}}}}}}}<!--
| {{#if:{{{mat1ext|}}}|{{ItemAmount|{{{2}}}|{{{3}}}|ext={{{mat1ext}}}}}|{{ItemIcon|{{{2}}}|qty={{{3}}}}}}}<!--
-->{{#if:{{{4|}}}|<br/>{{#if:{{{mat2ext|}}}|{{ItemAmount|{{{4}}}|{{{5}}}|ext={{{mat2ext}}}}}|{{ItemAmount|{{{4}}}|{{{5}}}}}}}}}<!--
-->{{#if:{{{4|}}}|<br/>{{#if:{{{mat2ext|}}}|{{ItemIcon|{{{4}}}|{{{5}}}|ext={{{mat2ext}}}}}|{{ItemIcon|{{{4}}}|qty={{{5}}}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{#if:{{{mat3ext|}}}|{{ItemAmount|{{{6}}}|{{{7}}}|ext={{{mat3ext}}}}}|{{ItemAmount|{{{6}}}|{{{7}}}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{#if:{{{mat3ext|}}}|{{ItemIcon|{{{6}}}|{{{7}}}|ext={{{mat3ext}}}}}|{{ItemIcon|{{{6}}}|qty={{{7}}}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{#if:{{{mat4ext|}}}|{{ItemAmount|{{{8}}}|{{{9}}}|ext={{{mat4ext}}}}}|{{ItemAmount|{{{8}}}|{{{9}}}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{#if:{{{mat4ext|}}}|{{ItemIcon|{{{8}}}|{{{9}}}|ext={{{mat4ext}}}}}|{{ItemIcon|{{{8}}}|qty={{{9}}}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{#if:{{{mat5ext|}}}|{{ItemAmount|{{{10}}}|{{{11}}}|ext={{{mat5ext}}}}}|{{ItemAmount|{{{10}}}|{{{11}}}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{#if:{{{mat5ext|}}}|{{ItemIcon|{{{10}}}|{{{11}}}|ext={{{mat5ext}}}}}|{{ItemIcon|{{{10}}}|qty={{{11}}}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{#if:{{{mat6ext|}}}|{{ItemAmount|{{{12}}}|{{{13}}}|ext={{{mat6ext}}}}}|{{ItemAmount|{{{12}}}|{{{13}}}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{#if:{{{mat6ext|}}}|{{ItemIcon|{{{12}}}|{{{13}}}|ext={{{mat6ext}}}}}|{{ItemIcon|{{{12}}}|qty={{{13}}}}}}}}}<!--
-->{{#if:{{{14|}}}|<br/>{{#if:{{{mat7ext|}}}|{{ItemAmount|{{{14}}}|{{{15}}}|ext={{{mat7ext}}}}}|{{ItemAmount|{{{14}}}|{{{15}}}}}}}}}<!--
-->{{#if:{{{14|}}}|<br/>{{#if:{{{mat7ext|}}}|{{ItemIcon|{{{14}}}|{{{15}}}|ext={{{mat7ext}}}}}|{{ItemIcon|{{{14}}}|qty={{{15}}}}}}}}}<!--
-->{{#if:{{{16|}}}|<br/>{{#if:{{{mat8ext|}}}|{{ItemAmount|{{{16}}}|{{{17}}}|ext={{{mat8ext}}}}}|{{ItemAmount|{{{16}}}|{{{17}}}}}}}}}<!--
-->{{#if:{{{16|}}}|<br/>{{#if:{{{mat8ext|}}}|{{ItemIcon|{{{16}}}|{{{17}}}|ext={{{mat8ext}}}}}|{{ItemIcon|{{{16}}}|qty={{{17}}}}}}}}}<!--
-->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}}
-->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}}
|}</onlyinclude></includeonly>
|}</onlyinclude></includeonly>

Revision as of 21:28, 8 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,000GP

{{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 Jewel of Rhaelyx (item).png 1
1