Template:ItemUpgradeable: Difference between revisions

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
(Now uses ItemIcon instead of ItemAmount due to new qty argument)
(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
| {{#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>