Difference between revisions of "Template:ShineLoadout"
m (V4. I lied.) |
m (V5. Seriously, now, last one. Removing line breaks. V4 fixed *an* issue.) |
||
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|}}}|{{!}} style="background:#{{ItemColor|{{{Scout_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Hat|Unknown}}}|icon-size=50x50px}}|}} | + | {{#if:{{{Scout_Hat|}}}|{{!}} style="background:#{{ItemColor|{{{Scout_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Hat|Unknown}}}|icon-size=50x50px}}|}} |
− | + | {{#if:{{{Scout_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Scout_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Misc|Unknown}}}|icon-size=50x50px}}|}} | |
− | + | {{#if:{{{Scout_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Scout_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | |
| style="background:#{{ItemColor|{{{Scout_Primary_Quality}}}}};" | {{Icon item|item={{{Scout_Primary|Scattergun}}}|icon-size=50x50px}} | | style="background:#{{ItemColor|{{{Scout_Primary_Quality}}}}};" | {{Icon item|item={{{Scout_Primary|Scattergun}}}|icon-size=50x50px}} | ||
| style="background:#{{ItemColor|{{{Scout_Secondary_Quality}}}}};" | {{Icon item|item={{{Scout_Secondary|Pistol}}}|icon-size=50x50px}} | | style="background:#{{ItemColor|{{{Scout_Secondary_Quality}}}}};" | {{Icon item|item={{{Scout_Secondary|Pistol}}}|icon-size=50x50px}} | ||
− | | style="background:#{{ItemColor|{{{Scout_Melee_Quality}}}}};" | {{Icon item|item={{{Scout_Melee|Bat}}}|icon-size=50x50px}} | + | | style="background:#{{ItemColor|{{{Scout_Melee_Quality}}}}};" | {{Icon item|item={{{Scout_Melee|Bat}}}|icon-size=50x50px}} |
− | + | {{#if:{{{Scout_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Scout_Action|Unknown}}}|icon-size=50x50px}}|}}<!-- | |
− | -->{{#if:{{{Soldier_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Soldier_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Hat|Unknown}}}|icon-size=50x50px}}|}} | + | -->{{#if:{{{Soldier_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Soldier_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Hat|Unknown}}}|icon-size=50x50px}}|}} |
− | + | {{#if:{{{Soldier_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Soldier_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Misc|Unknown}}}|icon-size=50x50px}}|}} | |
− | + | {{#if:{{{Soldier_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Soldier_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | |
| style="background:#{{ItemColor|{{{Soldier_Primary_Quality}}}}};" | {{Icon item|item={{{Soldier_Primary|Rocket Launcher}}}|icon-size=50x50px}} | | style="background:#{{ItemColor|{{{Soldier_Primary_Quality}}}}};" | {{Icon item|item={{{Soldier_Primary|Rocket Launcher}}}|icon-size=50x50px}} | ||
| style="background:#{{ItemColor|{{{Soldier_Secondary_Quality}}}}};" | {{Icon item|item={{{Soldier_Secondary|Shotgun}}}|icon-size=50x50px}} | | style="background:#{{ItemColor|{{{Soldier_Secondary_Quality}}}}};" | {{Icon item|item={{{Soldier_Secondary|Shotgun}}}|icon-size=50x50px}} |
Revision as of 04:26, 14 June 2012
Usage
Takes a lot of parameters. A lot of them.
Each parameter looks like this:
class_name_slot=value
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.
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 = Vintage
| Scout_Misc_Quality = Genuine
| Scout_Misc_2_Quality = Genuine
| Scout_Primary_Quality = Strange
| Scout_Secondary_Quality = Vintage
| Scout_Melee_Quality = Genuine
| Soldier_Hat = Lucky Shot
| Soldier_Misc = Kringle Collection
| Soldier_Misc_2 = Pocket Medic
| Soldier_Primary = Original
| Soldier_Secondary = Gunboats
| Soldier_Melee = Equalizer
| Soldier_Primary_Quality = Genuine
| Soldier_Secondary_Quality = Vintage
| Soldier_Melee_Quality = Strange
| Pyro_Hat = Triboniophorus Tyrannus
| Pyro_Misc = Last Breath
| Pyro_Primary = Degreaser
| Pyro_Secondary = Flare Gun
| Pyro_Melee = Axtinguisher
| Pyro_Action = High Five
| Pyro_Primary_Quality = Strange
| Pyro_Secondary_Quality = Strange
| Pyro_Melee_Quality = Strange
| Demoman_Hat = Sultan's Ceremonial
| Demoman_Misc = A Whiff of the Old Brimstone
| Demoman_Primary = Ali Baba's Wee Booties
| Demoman_Secondary = Splendid Screen
| Demoman_Melee = Persian Persuader
| Demoman_Melee_Quality = Strange
| Heavy_Hat =
| Heavy_Misc =
| Heavy_Misc_2 =
| Heavy_Primary =
| Heavy_Secondary =
| Heavy_Melee =
| Heavy_Action =
| Heavy_Hat_Quality =
| Heavy_Misc_Quality =
| Heavy_Misc_2_Quality =
| Heavy_Primary_Quality =
| Heavy_Secondary_Quality =
| Heavy_Melee_Quality =
| Engineer_Hat =
| Engineer_Misc =
| Engineer_Misc_2 =
| Engineer_Primary =
| Engineer_Secondary =
| Engineer_Melee =
| Engineer_Action =
| Engineer_Hat_Quality =
| Engineer_Misc_Quality =
| Engineer_Misc_2_Quality =
| Engineer_Primary_Quality =
| Engineer_Secondary_Quality =
| Engineer_Melee_Quality =
| Medic_Hat =
| Medic_Misc =
| Medic_Misc_2 =
| Medic_Primary =
| Medic_Secondary =
| Medic_Melee =
| Medic_Action =
| Medic_Hat_Quality =
| Medic_Misc_Quality =
| Medic_Misc_2_Quality =
| Medic_Primary_Quality =
| Medic_Secondary_Quality =
| Medic_Melee_Quality =
| Sniper_Hat =
| Sniper_Misc =
| Sniper_Misc_2 =
| Sniper_Primary =
| Sniper_Secondary =
| Sniper_Melee =
| Sniper_Action =
| Sniper_Hat_Quality =
| Sniper_Misc_Quality =
| Sniper_Misc_2_Quality =
| Sniper_Primary_Quality =
| Sniper_Secondary_Quality =
| Sniper_Melee_Quality =
| Spy_Hat =
| Spy_Misc =
| Spy_Misc_2 =
| Spy_Primary =
| Spy_Secondary =
| Spy_Melee =
| Spy_Action =
| Spy_Hat_Quality =
| Spy_Misc_Quality =
| Spy_Misc_2_Quality =
| Spy_Primary_Quality =
| Spy_Secondary_Quality =
| Spy_Melee_Quality =
}}
Output
Scout | Soldier | Pyro | ||||||||||||||||
Demoman | Heavy | Engineer | ||||||||||||||||
File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | |||||||||||||
Medic | Sniper | Spy | ||||||||||||||||
File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png | File:Item icon .png |