Difference between revisions of "Template:ArmorInfo"

From SpiralKnights

Jump to: navigation, search
m (remove rest of switch)
m (cat)
 
(5 intermediate revisions by the same user not shown)
Line 49: Line 49:
 
{{SKWindow/Cell|'''[[List of sets|Set]]''':
 
{{SKWindow/Cell|'''[[List of sets|Set]]''':
 
{{#if:{{{set|}}}
 
{{#if:{{{set|}}}
|<div style="font-size:93%;">{{{set}}}</div>
+
| {{{set}}}
 
|*[[File:Equipment-{{{name|}}} icon.png|36px|{{{name}}}]] isn't in a set.
 
|*[[File:Equipment-{{{name|}}} icon.png|36px|{{{name}}}]] isn't in a set.
 
}}
 
}}
 
|padding = 5px 0px 5px 5px}}
 
|padding = 5px 0px 5px 5px}}
 
}}
 
}}
The '''{{{name}}}''' is a {{{star}}}-star [[{{lcfirst:{{{type}}}}}]].<includeonly>[[Category:Equipment]]
+
The '''{{{name}}}''' is a {{{star}}}-star [[{{lcfirst:{{{type}}}}}]].<includeonly>[[Category:Equipment]]{{#switch: {{{type}}}
{{#switch: {{{type}}}
+
 
| helmet = [[Category:Helmets|{{{star}}}-{{{name}}}]]
 
| helmet = [[Category:Helmets|{{{star}}}-{{{name}}}]]
 
| armor  = [[Category:Armor|{{{star}}}-{{{name}}}]]
 
| armor  = [[Category:Armor|{{{star}}}-{{{name}}}]]
 
| #default = [[Category:Needs type]]
 
| #default = [[Category:Needs type]]
}}
+
}}{{#switch:{{{defense 1}}}
{{#switch:{{{defense 1}}}
+
 
|          =
 
|          =
 
| Normal    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Normal defense|{{{star}}}-{{{name}}}]]
 
| Normal    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Normal defense|{{{star}}}-{{{name}}}]]
Line 66: Line 64:
 
| Piercing  = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Piercing defense|{{{star}}}-{{{name}}}]]
 
| Piercing  = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Piercing defense|{{{star}}}-{{{name}}}]]
 
| Shadow    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Shadow defense|{{{star}}}-{{{name}}}]]
 
| Shadow    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing {{#switch:{{{defense 2|}}}|=only|none=only}} Shadow defense|{{{star}}}-{{{name}}}]]
}}
+
}}{{#switch:{{{defense 2}}}
{{#switch:{{{defense 2}}}
+
 
|          =
 
|          =
 
| Normal    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Normal defense|{{{star}}}-{{{name}}}]]
 
| Normal    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Normal defense|{{{star}}}-{{{name}}}]]
Line 73: Line 70:
 
| Piercing  = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Piercing defense|{{{star}}}-{{{name}}}]]
 
| Piercing  = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Piercing defense|{{{star}}}-{{{name}}}]]
 
| Shadow    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Shadow defense|{{{star}}}-{{{name}}}]]
 
| Shadow    = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Shadow defense|{{{star}}}-{{{name}}}]]
}}
+
}}{{#if: {{{status 1|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 1}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 1|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 1}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{status 2|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 2}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 2|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 2}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{status 3|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 3}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 3|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 3}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{status 4|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 4}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 4|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 4}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{status 5|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 5}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 5|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 5}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{status 6|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 6}}} resistance|{{{star}}}-{{{name}}}]]|
{{#if: {{{status 6|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} providing {{{status 6}}} resistance|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 1|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 1}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 1|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 1}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 2|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 2}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 2|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 2}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 3|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 3}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 3|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 3}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 4|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 4}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 4|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 4}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 5|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 5}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 5|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 5}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#if: {{{weakness 6|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 6}}}|{{{star}}}-{{{name}}}]]|
{{#if: {{{weakness 6|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness 6}}}|{{{star}}}-{{{name}}}]]|}}
+
}}{{#switch:{{{promotional}}}
{{#switch:{{{promotional}}}
+
 
| yes = [[Category:Promotional items]]
 
| yes = [[Category:Promotional items]]
 
| #default =
 
| #default =
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
{{documentation}}
+
{{documentation}}[[Category:Infobox templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:34, 12 September 2015

[edit] [purge] Template documentation
  • Documentation pending

For details on this overall project, see:

Personal tools