Template:ItemShops/Multi: Difference between revisions
Jump to navigation
Jump to search
Created page with "<noinclude>A submodule of Template:ItemShops designed specifically for items that may have multiple sources, in which case Template:ItemShops/Source would be used to d..." |
mNo edit summary |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>A submodule of [[Template:ItemShops]] designed specifically for items that may have multiple sources, in which case [[Template: | <noinclude>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: | 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| | <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}}}.