Template:ItemUpgradeable: Difference between revisions
From Melvor Idle
Falterfire (talk | contribs) (Now uses ItemIcon instead of ItemAmount due to new qty argument) |
Falterfire (talk | contribs) (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) |
||
Line 13: | Line 13: | ||
|- | |- | ||
! style ="text-align: right;"| Upgrades Into | ! style ="text-align: right;"| Upgrades Into | ||
| {{ItemIcon|{{{1}}}|ext={{{intoext|svg}}}}}<br/> | |||
|- | |- | ||
! style ="text-align: right;"| Materials | ! style ="text-align: right;"| Materials | ||
| {{ | | {{ItemIcon|{{{2}}}|qty={{{3}}}|ext={{{mat1ext|svg}}}}}<!-- | ||
-->{{#if:{{{4|}}}|<br/> | -->{{#if:{{{4|}}}|<br/>{{ItemIcon|{{{4}}}|qty={{{5}}}|ext={{{mat2ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{6|}}}|<br/> | -->{{#if:{{{6|}}}|<br/>{{ItemIcon|{{{6}}}|qty={{{7}}}|ext={{{mat3ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{8|}}}|<br/> | -->{{#if:{{{8|}}}|<br/>{{ItemIcon|{{{8}}}qty=|{{{9}}}|ext={{{mat4ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{10|}}}|<br/> | -->{{#if:{{{10|}}}|<br/>{{ItemIcon|{{{10}}}|qty={{{11}}}|ext={{{mat5ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{12|}}}|<br/> | -->{{#if:{{{12|}}}|<br/>{{ItemIcon|{{{12}}}|qty={{{13}}}|ext={{{mat6ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{14|}}}|<br/> | -->{{#if:{{{14|}}}|<br/>{{ItemIcon|{{{14}}}|qty={{{15}}}|ext={{{mat7ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{16|}}}|<br/> | -->{{#if:{{{16|}}}|<br/>{{ItemIcon|{{{16}}}|qty={{{17}}}|ext={{{mat8ext|svg}}}}}}}<!-- | ||
-->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}} | -->{{#if:{{{GP|}}}|<br/>{{GP|{{{GP}}}}}}} | ||
|}</onlyinclude></includeonly> | |}</onlyinclude></includeonly> |
Revision as of 21:34, 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,000 |
{{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 |