Template:ItemShops/Multi: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary Tag: Reverted |
Tag: Undo |
||
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><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> | <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> |
Revision as of 14:24, 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}}}.