Template:ItemShop: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
It is receptible of the following arguments: {{{Item}}} for the exact item name, {{{Shop}}} to specify where it's purchasable (auto-encoded into an internal link), {{{Currency}}} (only required for non-Pokémoney currencies), and {{{Price}}} to specify its price. | It is receptible of the following arguments: {{{Item}}} for the exact item name, {{{Shop}}} to specify where it's purchasable (auto-encoded into an internal link), {{{Currency}}} (only required for non-Pokémoney currencies), and {{{Price}}} to specify its price. | ||
</noinclude> | </noinclude> | ||
<includeonly><tr style="background-color:#FFFFFF;"><td>{{#ifexist:File:{{ucfirst:{{{Item}}}}}.png|[[File:{{ucfirst:{{{Item}}}}}.png]]|[[File:MissingIcon.png|link={{ucfirst:{{{Item|}}}}}.png]]}}</td><td style="{{#if:{{{UA|}}}|font-weight:bold;}}{{#if:{{{Gender|}}}| | <includeonly><tr style="background-color:#FFFFFF;"><td>{{#ifexist:File:{{ucfirst:{{{Item}}}}}.png|[[File:{{ucfirst:{{{Item}}}}}.png]]|[[File:MissingIcon.png|link={{ucfirst:{{{Item|}}}}}.png]]}}</td><td style="{{#if:{{{UA|}}}|font-weight:bold;}}{{#if:{{{Gender|}}}|{{#vardefine:gender{{#switch: {{{Gender|}}} | m = #0000F | f = #FF33CC}}}}|{{#vardefine:gender|}}}}">[[{{ucfirst:{{{Item|}}}}}|<span style="color: {{#var:gender}}">{{ucfirst:{{{Item|}}}}}</span>]]</td><td>[[{{{Shop|}}}]]</td><td>{{#ifeq:{{{Currency|Pdollar}}}|Pdollar|{{Pdollar}}{{{Price|}}}|{{{Price|}}} {{{Currency|}}}}}</td></tr></includeonly> |
Revision as of 15:54, 28 March 2022
This is to be used in conjunction with Template:ItemShops to construct data rows for it.
It is receptible of the following arguments: {{{Item}}} for the exact item name, {{{Shop}}} to specify where it's purchasable (auto-encoded into an internal link), {{{Currency}}} (only required for non-Pokémoney currencies), and {{{Price}}} to specify its price.