Template:ItemShop: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
mNo 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;}}">[[{{ucfirst:{{{Item|}}}}}|{{#if: {{{Gender|}}} | {{#ifeq: {{{Gender|}}} | m | <span style="color: #0000ff">{{{Item|}}}</span> | <span style="color: #ff33cc">{{{Item|}}}</span>}}}}]]</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;}}">[[{{ucfirst:{{{Item|}}}}}|{{#if: {{{Gender|}}} | {{#ifeq: {{{Gender|}}} | m | <span style="color: #0000ff">'''{{{Item|}}}'''</span> | <span style="color: #ff33cc">'''{{{Item|}}}'''</span>}}}}]]</td><td>[[{{{Shop|}}}]]</td><td>{{#ifeq:{{{Currency|Pdollar}}}|Pdollar|{{Pdollar}}{{{Price|}}}|{{{Price|}}} {{{Currency|}}}}}</td></tr></includeonly>

Revision as of 16:35, 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.