Template:ItemUpgradeable: Difference between revisions

From Melvor Idle
(Now uses ItemIcon instead of ItemAmount due to new qty argument)
m (4th material line had extra |)
 
(2 intermediate revisions by 2 users not shown)
Line 13: Line 13:
|-
|-
! style ="text-align: right;"| Upgrades Into
! style ="text-align: right;"| Upgrades Into
| {{#if:{{{intoext|}}}|{{ItemIcon|{{{1}}}|ext={{{intoext}}}}}|{{ItemIcon|{{{1}}}}}}}<br/>
| {{ItemIcon|{{{1}}}|ext={{{intoext|svg}}}}}<br/>
|-
|-
! style ="text-align: right;"| Materials
! style ="text-align: right;"| Materials
| {{#if:{{{mat1ext|}}}|{{ItemAmount|{{{2}}}|{{{3}}}|ext={{{mat1ext}}}}}|{{ItemIcon|{{{2}}}|qty={{{3}}}}}}}<!--
| {{ItemIcon|{{{2}}}|qty={{{3}}}|ext={{{mat1ext|svg}}}}}<!--
-->{{#if:{{{4|}}}|<br/>{{#if:{{{mat2ext|}}}|{{ItemIcon|{{{4}}}|{{{5}}}|ext={{{mat2ext}}}}}|{{ItemIcon|{{{4}}}|qty={{{5}}}}}}}}}<!--
-->{{#if:{{{4|}}}|<br/>{{ItemIcon|{{{4}}}|qty={{{5}}}|ext={{{mat2ext|svg}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{#if:{{{mat3ext|}}}|{{ItemIcon|{{{6}}}|{{{7}}}|ext={{{mat3ext}}}}}|{{ItemIcon|{{{6}}}|qty={{{7}}}}}}}}}<!--
-->{{#if:{{{6|}}}|<br/>{{ItemIcon|{{{6}}}|qty={{{7}}}|ext={{{mat3ext|svg}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{#if:{{{mat4ext|}}}|{{ItemIcon|{{{8}}}|{{{9}}}|ext={{{mat4ext}}}}}|{{ItemIcon|{{{8}}}|qty={{{9}}}}}}}}}<!--
-->{{#if:{{{8|}}}|<br/>{{ItemIcon|{{{8}}}|qty={{{9}}}|ext={{{mat4ext|svg}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{#if:{{{mat5ext|}}}|{{ItemIcon|{{{10}}}|{{{11}}}|ext={{{mat5ext}}}}}|{{ItemIcon|{{{10}}}|qty={{{11}}}}}}}}}<!--
-->{{#if:{{{10|}}}|<br/>{{ItemIcon|{{{10}}}|qty={{{11}}}|ext={{{mat5ext|svg}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{#if:{{{mat6ext|}}}|{{ItemIcon|{{{12}}}|{{{13}}}|ext={{{mat6ext}}}}}|{{ItemIcon|{{{12}}}|qty={{{13}}}}}}}}}<!--
-->{{#if:{{{12|}}}|<br/>{{ItemIcon|{{{12}}}|qty={{{13}}}|ext={{{mat6ext|svg}}}}}}}<!--
-->{{#if:{{{14|}}}|<br/>{{#if:{{{mat7ext|}}}|{{ItemIcon|{{{14}}}|{{{15}}}|ext={{{mat7ext}}}}}|{{ItemIcon|{{{14}}}|qty={{{15}}}}}}}}}<!--
-->{{#if:{{{14|}}}|<br/>{{ItemIcon|{{{14}}}|qty={{{15}}}|ext={{{mat7ext|svg}}}}}}}<!--
-->{{#if:{{{16|}}}|<br/>{{#if:{{{mat8ext|}}}|{{ItemIcon|{{{16}}}|{{{17}}}|ext={{{mat8ext}}}}}|{{ItemIcon|{{{16}}}|qty={{{17}}}}}}}}}<!--
-->{{#if:{{{16|}}}|<br/>{{ItemIcon|{{{16}}}|qty={{{17}}}|ext={{{mat8ext|svg}}}}}}}<!--
-->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}}
-->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}}
|}</onlyinclude></includeonly>
|}</onlyinclude></includeonly>

Latest revision as of 14:19, 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,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 1 Jewel of Rhaelyx
1 Circlet of Rhaelyx