Template:ItemShop: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
No edit summary
Feeki (talk | contribs)
mNo edit summary
 
(12 intermediate revisions by one other user not shown)
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|}}}|{{#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>
<includeonly><tr style="background-color:#FFFFFF;"><td>[[File:{{ucfirst:{{{Item}}}}}.png]]</td><td style="{{#if:{{{UA|}}}|font-weight:bold;}}">[[{{ucfirst:{{{Item|}}}}}]] {{#if: {{{Gender|}}} | {{#ifeq: {{{Gender|}}} | M | <span style="color: #0000ff;">♂</span> | <span style="color: #ff33cc">♀</span>}}}}</td><td>[[{{{Shop|}}}]]</td><td>{{#ifeq:{{{Currency|Pdollar}}}|Pdollar|{{Pdollar}}{{{Price|}}}|{{{Price|}}} {{{Currency|}}}}}</td><td style="text-align: left; padding-left: 5px;>{{{Notes|}}}</td></tr></includeonly>

Latest revision as of 07:54, 4 May 2025

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.