Difference between revisions of "Template:ShineLoadout"
m (28. Work, damn you!) |
m (29, maybe. Still trying to use the double-pipe formatting. WORK :'() |
||
Line 4: | Line 4: | ||
| class="header" colspan="{{#expr:{{#if:{{{Pyro_Hat|}}}|1|0}}+{{#if:{{{Pyro_Misc|}}}|1|0}}+{{#if:{{{Pyro_Misc_2|}}}|1|0}}+3+{{#if:{{{Pyro_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Pyro}} | | class="header" colspan="{{#expr:{{#if:{{{Pyro_Hat|}}}|1|0}}+{{#if:{{{Pyro_Misc|}}}|1|0}}+{{#if:{{{Pyro_Misc_2|}}}|1|0}}+3+{{#if:{{{Pyro_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Pyro}} | ||
|- | |- | ||
− | |{{#if:{{{Scout_Hat|}}}| | + | |{{#if:{{{Scout_Hat|}}}|style="background:#{{ItemColor|{{{Scout_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Hat|Unknown}}}|icon-size=50x50px}}{{!!}}|}}<!-- |
− | -->{{#if:{{{Scout_Misc|}}}| | + | -->{{#if:{{{Scout_Misc|}}}|style="background:#{{ItemColor|{{{Scout_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Misc|Unknown}}}|icon-size=50x50px}}{{!!}}|}}<!-- |
− | -->{{#if:{{{Scout_Misc_2|}}}| | + | -->{{#if:{{{Scout_Misc_2|}}}|style="background:#{{ItemColor|{{{Scout_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Misc_2|Unknown}}}|icon-size=50x50px}}{{!!}}|}}<!-- |
− | -->{{#if:{{{Scout_Action|}}}| | + | -->{{#if:{{{Scout_Action|}}}|style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Scout_Action|Unknown}}}|icon-size=50x50px}}{{!!}}|}}<!-- |
-->style="background:#{{ItemColor|{{{Scout_Primary_Quality|Stock}}}}};" | {{Icon item|item={{{Scout_Primary|Scattergun}}}|icon-size=50x50px}} ||<!-- | -->style="background:#{{ItemColor|{{{Scout_Primary_Quality|Stock}}}}};" | {{Icon item|item={{{Scout_Primary|Scattergun}}}|icon-size=50x50px}} ||<!-- | ||
-->style="background:#{{ItemColor|{{{Scout_Secondary_Quality|Stock}}}}};" | {{Icon item|item={{{Scout_Secondary|Pistol}}}|icon-size=50x50px}} ||<!-- | -->style="background:#{{ItemColor|{{{Scout_Secondary_Quality|Stock}}}}};" | {{Icon item|item={{{Scout_Secondary|Pistol}}}|icon-size=50x50px}} ||<!-- |
Revision as of 22:50, 15 June 2012
Scout | Soldier | Pyro | ||||||
Demoman | Heavy | Engineer | ||||||
|
|
|||||||
Medic | Sniper | Spy | ||||||
|
|
Usage
Takes a lot of parameters. A lot of them.
Each parameter looks like this:
class name_slot=item name
Each parameter has a corresponding quality, e.g. (Scout_Misc_Primary_Quality). Use the item name (Genuine, Vintage, Strange, etc) to specify quality.
Class_name can be Scout, Soldier, Pyro, etc.
Slot can be Hat, Misc, Misc_2, Primary, Secondary, Melee, or Action.
Note that Action does not have a quality value.
WARNING: For obscure technical reasons, this template will display improperly if each class does not have two of the following: Hats, Miscs, and Action items. Thus, 1 hat and 1 action item, or 2 miscs, or other such combinations are workable.
Example
{{ShineLoadout
| Scout_Hat = Troublemaker's Tossle Cap
| Scout_Misc = Planeswalker Goggles
| Scout_Misc_2 = Ball-Kicking Boots
| Scout_Primary = Scattergun
| Scout_Secondary = Crit-a-Cola
| Scout_Melee = Three-Rune Blade
| Scout_Action = Schadenfreude
| Scout_Hat_Quality = Unusual
| Scout_Misc_Quality = Genuine
| Scout_Misc_2_Quality = Genuine
| Scout_Primary_Quality = Strange
| Scout_Secondary_Quality = Vintage
| Scout_Melee_Quality = Genuine
}}
Output
Scout | Soldier | Pyro | ||||||||||
Demoman | Heavy | Engineer | ||||||||||
Medic | Sniper | Spy | ||||||||||