Template:ItemShops/Multi: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(8 intermediate revisions by the same user not shown)
Line 3: Line 3:
Like its parental template, {{{Item}}} is used to define the cosmetic in question, and [[Template:ItemShop/Source]] is supplied as an argument for {{{Sources}}}.
Like its parental template, {{{Item}}} is used to define the cosmetic in question, and [[Template:ItemShop/Source]] is supplied as an argument for {{{Sources}}}.
</noinclude>
</noinclude>
<includeonly>{{#arraydefine:sources|{{{Sources|}}}}}{{#vardefine:rs|{{#expr:{{#arraysize:sources}}+1}}}}<tr style="background-color:#FFFFFF;"><td rowspan="{{#var:rs}}">{{#ifexist:File:{{ucfirst:{{{Item}}}}}.png|[[File:{{ucfirst:{{{Item}}}}}.png]]|[[File:MissingIcon.png|link={{ucfirst:{{{Item|}}}}}.png]]}}</td><td rowspan="{{#var:rs}}" style="{{#if:{{{UA|}}}|font-weight:bold;}}">[[{{ucfirst:{{{Item|}}}}}]] {{#if: {{{Gender|}}} | {{#ifeq: {{{Gender|}}} | m | <span style="color: #0000ff;">♂</span> | <span style="color: #ff33cc">♀</span>}}}}</td></tr>{{#replace:{{{Sources|}}}|,|}}</includeonly>
<includeonly>{{#arraydefine:sources|{{{Sources|}}}}}{{#vardefine:rs|{{#arraysize:sources}}}}<tr style="background-color:#FFFFFF;"><td rowspan="{{#var:rs}}">{{#ifexist:File:{{ucfirst:{{{Item}}}}}.png|[[File:{{ucfirst:{{{Item}}}}}.png]]|[[File:MissingIcon.png|link={{ucfirst:{{{Item|}}}}}.png]]}}</td><td rowspan="{{#var:rs}}" style="{{#if:{{{UA|}}}|font-weight:bold;}}">[[{{ucfirst:{{{Item|}}}}}]] {{#if: {{{Gender|}}} | {{#ifeq: {{{Gender|}}} | m | <span style="color: #0000ff;">♂</span> | <span style="color: #ff33cc">♀</span>}}}}</td>{{#replace:{{{Sources|}}}|,|<tr style="background-color:#FFFFFF;">}}</includeonly>

Latest revision as of 16:00, 29 March 2022

A submodule of Template:ItemShops designed specifically for items that may have multiple sources, in which case Template:ItemShop/Source would be used to define every instance of it.

Like its parental template, {{{Item}}} is used to define the cosmetic in question, and Template:ItemShop/Source is supplied as an argument for {{{Sources}}}.