Difference between revisions of "Template:ShineLoadout"

From Team Fortress Wiki
Jump to: navigation, search
(Pushing through V1. Let's see!)
 
m (V2 Push. Made quite a few mistakes.)
Line 1: Line 1:
<br>
+
<includeonly>{| class="wikitable" cellpadding="0px"
{| 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}}
Line 11: Line 10:
 
| 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:{{{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}}|}}<!--
Line 39: Line 38:
 
| style="background:#{{ItemColor|{{{Demoman_Secondary_Quality}}}}};" | {{Icon item|item={{{Demoman_Secondary|Stickybomb Launcher}}}|icon-size=50x50px}}
 
| style="background:#{{ItemColor|{{{Demoman_Secondary_Quality}}}}};" | {{Icon item|item={{{Demoman_Secondary|Stickybomb Launcher}}}|icon-size=50x50px}}
 
| style="background:#{{ItemColor|{{{Demoman_Melee_Quality}}}}};" | {{Icon item|item={{{Demoman_Melee|Bottle}}}|icon-size=50x50px}}<!--
 
| style="background:#{{ItemColor|{{{Demoman_Melee_Quality}}}}};" | {{Icon item|item={{{Demoman_Melee|Bottle}}}|icon-size=50x50px}}<!--
-->{{#if:{{{Demoman_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};"{{!}}{{Icon item|item={{{Demoman_Action|Unknown}}}|icon-size=50x50px}}|}}<!--
+
-->{{#if:{{{Demoman_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Demoman_Action|Unknown}}}|icon-size=50x50px}}|}}<!--
  
 
-->{{#if:{{{Heavy_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Heavy_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Heavy_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Heavy_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
Line 67: Line 66:
 
| style="background:#{{ItemColor|{{{Medic_Secondary_Quality}}}}};" | {{Icon item|item={{{Medic_Secondary|Medi Gun}}}|icon-size=50x50px}}
 
| style="background:#{{ItemColor|{{{Medic_Secondary_Quality}}}}};" | {{Icon item|item={{{Medic_Secondary|Medi Gun}}}|icon-size=50x50px}}
 
| style="background:#{{ItemColor|{{{Medic_Melee_Quality}}}}};" | {{Icon item|item={{{Medic_Melee|Bonesaw}}}|icon-size=50x50px}}<!--
 
| style="background:#{{ItemColor|{{{Medic_Melee_Quality}}}}};" | {{Icon item|item={{{Medic_Melee|Bonesaw}}}|icon-size=50x50px}}<!--
-->{{#if:{{{Medic_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};"{{!}}{{Icon item|item={{{Medic_Action|Unknown}}}|icon-size=50x50px}}|}}<!--
+
-->{{#if:{{{Medic_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Medic_Action|Unknown}}}|icon-size=50x50px}}|}}<!--
  
 
-->{{#if:{{{Sniper_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Sniper_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
 
-->{{#if:{{{Sniper_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Sniper_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Hat|Unknown}}}|icon-size=50x50px}}|}}<!--
Line 84: Line 83:
 
| style="background:#{{ItemColor|{{{Spy_Melee_Quality}}}}};" | {{Icon item|item={{{Spy_Melee|Knife}}}|icon-size=50x50px}}<!--
 
| style="background:#{{ItemColor|{{{Spy_Melee_Quality}}}}};" | {{Icon item|item={{{Spy_Melee|Knife}}}|icon-size=50x50px}}<!--
 
-->{{#if:{{{Spy_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Spy_Action|Unknown}}}|icon-size=50x50px}}|}}
 
-->{{#if:{{{Spy_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Spy_Action|Unknown}}}|icon-size=50x50px}}|}}
|}<noinclude>
+
|}</includeonly><noinclude>
 
== Usage ==
 
== Usage ==
 
Takes a lot of parameters. A lot of them.<br>
 
Takes a lot of parameters. A lot of them.<br>
Line 99: Line 98:
 
<br>| Scout_Primary = Scattergun
 
<br>| Scout_Primary = Scattergun
 
<br>| Scout_Secondary = Crit-a-Cola
 
<br>| Scout_Secondary = Crit-a-Cola
<br>| Scout_Melee = Three-Rune-Blade
+
<br>| Scout_Melee = Three-Rune Blade
 
<br>| Scout_Action = Schadenfreude
 
<br>| Scout_Action = Schadenfreude
 
<br>| Scout_Hat_Quality = Vintage
 
<br>| Scout_Hat_Quality = Vintage
Line 204: Line 203:
 
| Scout_Primary = Scattergun
 
| Scout_Primary = Scattergun
 
| Scout_Secondary = Crit-a-Cola
 
| Scout_Secondary = Crit-a-Cola
| Scout_Melee = Three-Rune-Blade
+
| Scout_Melee = Three-Rune Blade
 
| Scout_Action = Schadenfreude
 
| Scout_Action = Schadenfreude
 
| Scout_Hat_Quality = Vintage
 
| Scout_Hat_Quality = Vintage
Line 302: Line 301:
 
| Spy_Melee_Quality =  
 
| Spy_Melee_Quality =  
 
}}
 
}}
 +
</noinclude>

Revision as of 04:02, 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