Difference between revisions of "Template:ShineLoadout"

From Team Fortress Wiki
Jump to: navigation, search
m (V3. Hats/miscs not displaying. Last edit before bed.)
m (V4. I lied.)
Line 1: Line 1:
<noinclude>{{ShineLoadout
+
<includeonly>{| class="wikitable" cellpadding="0px"
| Scout_Hat = Troublemaker%27s 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
 
}}</noinclude><includeonly>{| class="wikitable" cellpadding="0px"
 
 
| class="header" colspan="{{#expr:{{#if:{{{Scout_Hat|}}}|1|0}}+{{#if:{{{Scout_Misc|}}}|1|0}}+{{#if:{{{Scout_Misc_2|}}}|1|0}}+3+{{#if:{{{Scout_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Scout}}
 
| class="header" colspan="{{#expr:{{#if:{{{Scout_Hat|}}}|1|0}}+{{#if:{{{Scout_Misc|}}}|1|0}}+{{#if:{{{Scout_Misc_2|}}}|1|0}}+3+{{#if:{{{Scout_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Scout}}
 
| class="header" colspan="{{#expr:{{#if:{{{Soldier_Hat|}}}|1|0}}+{{#if:{{{Soldier_Misc|}}}|1|0}}+{{#if:{{{Soldier_Misc_2|}}}|1|0}}+3+{{#if:{{{Soldier_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Soldier}}
 
| class="header" colspan="{{#expr:{{#if:{{{Soldier_Hat|}}}|1|0}}+{{#if:{{{Soldier_Misc|}}}|1|0}}+{{#if:{{{Soldier_Misc_2|}}}|1|0}}+3+{{#if:{{{Soldier_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Soldier}}
 
| 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|}}}|{{!}} 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}}|}}
 
-->{{#if:{{{Scout_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Scout_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Scout_Misc_2|Unknown}}}|icon-size=50x50px}}|}}
Line 39: Line 31:
 
| class="header" colspan="{{#expr:{{#if:{{{Heavy_Hat|}}}|1|0}}+{{#if:{{{Heavy_Misc|}}}|1|0}}+{{#if:{{{Heavy_Misc_2|}}}|1|0}}+3+{{#if:{{{Heavy_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Heavy}}
 
| class="header" colspan="{{#expr:{{#if:{{{Heavy_Hat|}}}|1|0}}+{{#if:{{{Heavy_Misc|}}}|1|0}}+{{#if:{{{Heavy_Misc_2|}}}|1|0}}+3+{{#if:{{{Heavy_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Heavy}}
 
| class="header" colspan="{{#expr:{{#if:{{{Engineer_Hat|}}}|1|0}}+{{#if:{{{Engineer_Misc|}}}|1|0}}+{{#if:{{{Engineer_Misc_2|}}}|1|0}}+3+{{#if:{{{Engineer_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Engineer}}
 
| class="header" colspan="{{#expr:{{#if:{{{Engineer_Hat|}}}|1|0}}+{{#if:{{{Engineer_Misc|}}}|1|0}}+{{#if:{{{Engineer_Misc_2|}}}|1|0}}+3+{{#if:{{{Engineer_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Engineer}}
|-<!--
+
|-
-->{{#if:{{{Demoman_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
+
{{#if:{{{Demoman_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Demoman_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Misc|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Demoman_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Misc|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Demoman_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Misc_2|Unknown}}}|icon-size=50x50px}}|}}
 
-->{{#if:{{{Demoman_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Demoman_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Misc_2|Unknown}}}|icon-size=50x50px}}|}}
Line 67: Line 59:
 
| class="header" colspan="{{#expr:{{#if:{{{Sniper_Hat|}}}|1|0}}+{{#if:{{{Sniper_Misc|}}}|1|0}}+{{#if:{{{Sniper_Misc_2|}}}|1|0}}+3+{{#if:{{{Sniper_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Sniper}}
 
| class="header" colspan="{{#expr:{{#if:{{{Sniper_Hat|}}}|1|0}}+{{#if:{{{Sniper_Misc|}}}|1|0}}+{{#if:{{{Sniper_Misc_2|}}}|1|0}}+3+{{#if:{{{Sniper_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Sniper}}
 
| class="header" colspan="{{#expr:{{#if:{{{Spy_Hat|}}}|1|0}}+{{#if:{{{Spy_Misc|}}}|1|0}}+{{#if:{{{Spy_Misc_2|}}}|1|0}}+3+{{#if:{{{Spy_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Spy}}
 
| class="header" colspan="{{#expr:{{#if:{{{Spy_Hat|}}}|1|0}}+{{#if:{{{Spy_Misc|}}}|1|0}}+{{#if:{{{Spy_Misc_2|}}}|1|0}}+3+{{#if:{{{Spy_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Spy}}
|-<!--
+
|-
-->{{#if:{{{Medic_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
+
{{#if:{{{Medic_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Medic_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Misc|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Medic_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Misc|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Medic_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Misc_2|Unknown}}}|icon-size=50x50px}}|}}
 
-->{{#if:{{{Medic_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Misc_2|Unknown}}}|icon-size=50x50px}}|}}

Revision as of 04:24, 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
Troublemaker's Tossle Cap Planeswalker Goggles Ball-Kicking Boots Schadenfreude Scattergun Crit-a-Cola Three-Rune Blade Lucky Shot Kringle Collection Pocket Medic Original Gunboats Equalizer Triboniophorus Tyrannus Last Breath High Five Degreaser Flare Gun Axtinguisher
Demoman Heavy Engineer
Sultan's Ceremonial A Whiff of the Old Brimstone Ali Baba's Wee Booties Splendid Screen Persian Persuader 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