Difference between revisions of "Template:ArmorInfo"

From SpiralKnights

Jump to: navigation, search
m (link)
m (Testing a foreach for categories)
Line 117: Line 117:
 
|Sleep  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing Sleep resistance|{{{star}}}-{{{name}}}]]
 
|Sleep  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing Sleep resistance|{{{star}}}-{{{name}}}]]
 
|Stun  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing Stun resistance|{{{star}}}-{{{name}}}]]
 
|Stun  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing Stun resistance|{{{star}}}-{{{name}}}]]
}}{{#switch:{{{weakness 1|}}}{{{weakness 2|}}}{{{weakness 3|}}}{{{weakness 4|}}}{{{weakness 5|}}}{{{weakness 6|}}}{{{weakness 7|}}}|=
+
}}{{#foreach:weakness$n$|weakness$n$=[[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness$n$}}}|{{{star}}}-{{{name}}}]]
|Curse  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Curse|{{{star}}}-{{{name}}}]]
+
|Fire  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Fire|{{{star}}}-{{{name}}}]]
+
|Freeze = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Freeze|{{{star}}}-{{{name}}}]]
+
|Poison = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Poison|{{{star}}}-{{{name}}}]]
+
|Shock  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Shock|{{{star}}}-{{{name}}}]]
+
|Sleep  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Sleep|{{{star}}}-{{{name}}}]]
+
|Stun  = [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to Stun|{{{star}}}-{{{name}}}]]
+
 
}}{{#switch:{{{promotional}}}
 
}}{{#switch:{{{promotional}}}
 
| yes = [[Category:Promotional items]]
 
| yes = [[Category:Promotional items]]

Revision as of 13:59, 1 April 2015

[edit] [purge] Template documentation
  • Documentation pending

For details on this overall project, see:

Personal tools