Difference between revisions of "Template:ShineLoadout"
m (V8. Pushing through a smaller example, and trying to fix a now apparent spacing bug.) |
R4wrz0rz0r (talk | contribs) m (attempting to fix the image displacement for the last image of each class) |
||
Line 11: | Line 11: | ||
| 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}}|}} | ||
{{#if:{{{Soldier_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Soldier_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Misc|Unknown}}}|icon-size=50x50px}}|}} | {{#if:{{{Soldier_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Soldier_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Soldier_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
Line 19: | Line 18: | ||
| style="background:#{{ItemColor|{{{Soldier_Melee_Quality}}}}};" | {{Icon item|item={{{Soldier_Melee|Shovel}}}|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:{{{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_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|}}}|{{!}} style="background:#{{ItemColor|{{{Pyro_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Pyro_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
Line 39: | Line 37: | ||
| 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}}|}} | ||
{{#if:{{{Heavy_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Heavy_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Misc|Unknown}}}|icon-size=50x50px}}|}} | {{#if:{{{Heavy_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Heavy_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Heavy_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
Line 47: | Line 44: | ||
| style="background:#{{ItemColor|{{{Heavy_Melee_Quality}}}}};" | {{Icon item|item={{{Heavy_Melee|Fists}}}|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:{{{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_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|}}}|{{!}}style="background:#{{ItemColor|{{{Engineer_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Engineer_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
Line 67: | Line 63: | ||
| 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}}|}} | ||
{{#if:{{{Sniper_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Sniper_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Misc|Unknown}}}|icon-size=50x50px}}|}} | {{#if:{{{Sniper_Misc|}}}|{{!}} style="background:#{{ItemColor|{{{Sniper_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Sniper_Misc|Unknown}}}|icon-size=50x50px}}|}} | ||
Line 75: | Line 70: | ||
| style="background:#{{ItemColor|{{{Sniper_Melee_Quality}}}}};" | {{Icon item|item={{{Sniper_Melee|Kukri}}}|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:{{{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_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|}}}|{{!}} style="background:#{{ItemColor|{{{Spy_Misc_Quality}}}}};" {{!}} {{Icon item|item={{{Spy_Misc|Unknown}}}|icon-size=50x50px}}|}} |
Revision as of 12:50, 14 June 2012
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.
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 | ||||||||||