Difference between revisions of "Template:ShineLoadout"
m (Pushing through... uh... V25? May create a /core page to "simplify" the template.) |
m (V.26== reversion, because it looked better in ye olde days.) |
||
Line 1: | Line 1: | ||
− | {| class="wikitable" | + | {| class="wikitable" cellpadding="0px" |
− | | class="header" colspan="3" 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:{{{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_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_Secondary_Quality}}}}};" | {{Icon item|item={{{Scout_Secondary|Pistol}}}|icon-size=50x50px}} |
− | | style="background:#{{ItemColor|{{{ | + | |style="background:#{{ItemColor|{{{Scout_Melee_Quality}}}}};" | {{Icon item|item={{{Scout_Melee|Bat}}}|icon-size=50x50px}} |
− | | style="background:#{{ItemColor|{{{ | + | {{#if:{{{Scout_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Scout_Action|Unknown}}}|icon-size=50x50px}}|}} |
− | | style="background:#{{ItemColor|{{{ | + | |
− | |} | + | {{#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_Secondary_Quality}}}}};" | {{Icon item|item={{{Soldier_Secondary|Shotgun}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Soldier_Melee_Quality}}}}};" | {{Icon item|item={{{Soldier_Melee|Shovel}}}|icon-size=50x50px}} | ||
+ | {{#if:{{{Soldier_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Soldier_Action|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | |||
+ | {{#if:{{{Pyro_Hat|}}}|{{!}} style="background:#{{ItemColor|{{{Pyro_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Pyro_Hat|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Pyro_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Pyro_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Pyro_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Pyro_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Pyro_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Pyro_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | | style="background:#{{ItemColor|{{{Pyro_Primary_Quality}}}}};" | {{Icon item|item={{{Pyro_Primary|Flame Thrower}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Pyro_Secondary_Quality}}}}};" | {{Icon item|item={{{Pyro_Secondary|Shotgun}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Pyro_Melee_Quality}}}}};" | {{Icon item|item={{{Pyro_Melee|Fire Axe}}}|icon-size=50x50px}} | ||
+ | {{#if:{{{Pyro_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Pyro_Action|Unknown}}}|icon-size=50x50px}}|}} | ||
|- | |- | ||
− | |{{#if:{{{ | + | | class="header" colspan="{{#expr:{{#if:{{{Demoman_Hat|}}}|1|0}}+{{#if:{{{Demoman_Misc|}}}|1|0}}+{{#if:{{{Demoman_Misc_2|}}}|1|0}}+3+{{#if:{{{Demoman_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Demoman}} |
− | + | | 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}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
− | |{{#if:{{{ | + | {{#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_2|}}}|{{!}} style="background:#{{ItemColor|{{{Demoman_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Demoman_Misc_2|Unknown}}}|icon-size=50x50px}}|}} |
− | -- | + | | style="background:#{{ItemColor|{{{Demoman_Primary_Quality}}}}};" | {{Icon item|item={{{Demoman_Primary|Grenade Launcher}}}|icon-size=50x50px}} |
− | {| | + | | style="background:#{{ItemColor|{{{Demoman_Secondary_Quality}}}}};" | {{Icon item|item={{{Demoman_Secondary|Stickybomb Launcher}}}|icon-size=50x50px}} |
− | | style="background:#{{ItemColor|{{{ | + | | style="background:#{{ItemColor|{{{Demoman_Melee_Quality}}}}};" | {{Icon item|item={{{Demoman_Melee|Bottle}}}|icon-size=50x50px}} |
− | | style="background:#{{ItemColor|{{{ | + | {{#if:{{{Demoman_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Demoman_Action|Unknown}}}|icon-size=50x50px}}|}} |
− | | style="background:#{{ItemColor|{{{ | + | |
− | |} | + | {{#if:{{{Heavy_Hat|}}}|{{!}} style="background:#{{ItemColor|{{{Heavy_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Hat|Unknown}}}|icon-size=50x50px}}|}} |
− | |} | + | {{#if:{{{Heavy_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Heavy_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Misc|Unknown}}}|icon-size=50x50px}}|}} |
− | <noinclude> | + | {{#if:{{{Heavy_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Heavy_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Misc_2|Unknown}}}|icon-size=50x50px}}|}} |
+ | | style="background:#{{ItemColor|{{{Heavy_Primary_Quality}}}}};" | {{Icon item|item={{{Heavy_Primary|Minigun}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Heavy_Secondary_Quality}}}}};" | {{Icon item|item={{{Heavy_Secondary|Shotgun}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Heavy_Melee_Quality}}}}};" | {{Icon item|item={{{Heavy_Melee|Fists}}}|icon-size=50x50px}} | ||
+ | {{#if:{{{Heavy_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Heavy_Action|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | |||
+ | {{#if:{{{Engineer_Hat|}}}|{{!}}style="background:#{{ItemColor|{{{Engineer_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Engineer_Hat|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Engineer_Misc|}}}|{{!}}style="background:#{{ItemColor|{{{Engineer_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Engineer_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Engineer_Misc_2|}}}|{{!}}style="background:#{{ItemColor|{{{Engineer_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Engineer_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | | style="background:#{{ItemColor|{{{Engineer_Primary_Quality}}}}};" | {{Icon item|item={{{Engineer_Primary|Shotgun}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Engineer_Secondary_Quality}}}}};" | {{Icon item|item={{{Engineer_Secondary|Pistol}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Engineer_Melee_Quality}}}}};" | {{Icon item|item={{{Engineer_Melee|Wrench}}}|icon-size=50x50px}} | ||
+ | {{#if:{{{Engineer_Action|}}}|{{!}}style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Engineer_Action|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | |- | ||
+ | | class="header" colspan="{{#expr:{{#if:{{{Medic_Hat|}}}|1|0}}+{{#if:{{{Medic_Misc|}}}|1|0}}+{{#if:{{{Medic_Misc_2|}}}|1|0}}+3+{{#if:{{{Medic_Action|}}}|1|0}}}}" style="height:22px;" align="center" | {{TF2B|Medic}} | ||
+ | | 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}} | ||
+ | |- | ||
+ | {{#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_2|}}}|{{!}}style="background:#{{ItemColor|{{{Medic_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Medic_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | | style="background:#{{ItemColor|{{{Medic_Primary_Quality}}}}};" | {{Icon item|item={{{Medic_Primary|Syringe_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}} | ||
+ | {{#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_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Sniper_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Sniper_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Sniper_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | | style="background:#{{ItemColor|{{{Sniper_Primary_Quality}}}}};" | {{Icon item|item={{{Sniper_Primary|Sniper Rifle}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Sniper_Secondary_Quality}}}}};" | {{Icon item|item={{{Sniper_Secondary|SMG}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Sniper_Melee_Quality}}}}};" | {{Icon item|item={{{Sniper_Melee|Kukri}}}|icon-size=50x50px}} | ||
+ | {{#if:{{{Sniper_Action|}}}|{{!}} style="background:#{{ItemColor|Unique}};" {{!}} {{Icon item|item={{{Sniper_Action|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | |||
+ | {{#if:{{{Spy_Hat|}}}|{{!}} style="background:#{{ItemColor|{{{Spy_Hat_Quality}}}}};" {{!}} {{Icon item|item={{{Spy_Hat|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Spy_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Spy_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Spy_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | {{#if:{{{Spy_Misc_2|}}}|{{!}} style="background:#{{ItemColor|{{{Spy_Misc_2_Quality}}}}};" {{!}} {{Icon item|item={{{Spy_Misc_2|Unknown}}}|icon-size=50x50px}}|}} | ||
+ | | style="background:#{{ItemColor|{{{Spy_Primary_Quality}}}}};" | {{Icon item|item={{{Spy_Primary|Revolver}}}|icon-size=50x50px}} | ||
+ | | style="background:#{{ItemColor|{{{Spy_Secondary_Quality}}}}};" | {{Icon item|item={{{Spy_Secondary|Invisibility Watch}}}|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}}|}} | ||
+ | |}<noinclude> | ||
== Usage == | == Usage == | ||
Takes a lot of parameters. A lot of them.<br> | Takes a lot of parameters. A lot of them.<br> | ||
Line 47: | Line 92: | ||
Slot can be Hat, Misc, Misc_2, Primary, Secondary, Melee, or Action. <br> | Slot can be Hat, Misc, Misc_2, Primary, Secondary, Melee, or Action. <br> | ||
Note that Action does not have a quality value. <br> | Note that Action does not have a quality value. <br> | ||
+ | '''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 == | == Example == | ||
<code><nowiki>{{ShineLoadout</nowiki> | <code><nowiki>{{ShineLoadout</nowiki> | ||
Line 52: | Line 98: | ||
<br>| Scout_Misc = Planeswalker Goggles | <br>| Scout_Misc = Planeswalker Goggles | ||
<br>| Scout_Misc_2 = Ball-Kicking Boots | <br>| Scout_Misc_2 = Ball-Kicking Boots | ||
+ | <br>| Scout_Primary = Scattergun | ||
+ | <br>| Scout_Secondary = Crit-a-Cola | ||
+ | <br>| Scout_Melee = Three-Rune Blade | ||
<br>| Scout_Action = Schadenfreude | <br>| Scout_Action = Schadenfreude | ||
− | |||
− | |||
<br>| Scout_Hat_Quality = Unusual | <br>| Scout_Hat_Quality = Unusual | ||
<br>| Scout_Misc_Quality = Genuine | <br>| Scout_Misc_Quality = Genuine | ||
Line 67: | Line 114: | ||
| Scout_Misc = Planeswalker Goggles | | Scout_Misc = Planeswalker Goggles | ||
| Scout_Misc_2 = Ball-Kicking Boots | | Scout_Misc_2 = Ball-Kicking Boots | ||
− | | | + | | 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_Hat_Quality = Vintage | | Scout_Hat_Quality = Vintage | ||
| Scout_Misc_Quality = Genuine | | Scout_Misc_Quality = Genuine |
Revision as of 23:31, 14 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 | ||||||||||