Template:ItemShop: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
m Abbreviated the gender argument.
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;}}{{#switch: {{{Gender|}}} | male = color:#0000F | female = #FF33CC}};">[[{{ucfirst:{{{Item|}}}}}]]</td><td>[[{{{Shop|}}}]]</td><td>{{#ifeq:{{{Currency|Pdollar}}}|Pdollar|{{Pdollar}}{{{Price|}}}|{{{Price|}}} {{{Currency|}}}}}</td></tr></includeonly>
<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;}}{{#switch: {{{G|}}} | male = color:#0000F | female = #FF33CC}};">[[{{ucfirst:{{{Item|}}}}}]]</td><td>[[{{{Shop|}}}]]</td><td>{{#ifeq:{{{Currency|Pdollar}}}|Pdollar|{{Pdollar}}{{{Price|}}}|{{{Price|}}} {{{Currency|}}}}}</td></tr></includeonly>

Revision as of 15:40, 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.