Difference between revisions of "Template:ArmorInfo"
From SpiralKnights
BlarghBlargh (Talk | contribs) m (Matching status category to see if that registers [weakness doesnt appear to be changing]) |
BlarghBlargh (Talk | contribs) m (Adding back the defense 2 switch that I may have accidentally deleted.) |
||
Line 97: | Line 97: | ||
| armor = [[Category:Armor]] | | armor = [[Category:Armor]] | ||
| #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 104: | Line 105: | ||
| 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}}}]] | ||
}} | }} | ||
− | {{#for: 6 |{{#if|{{{status $n$|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{status $n$}}}|{{{star}}}-{{{name}}}]]|}} }} | + | {{#switch:{{{defense 2}}} |
− | {{#for: 6 |{{#if|{{{weakness $n$|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness $n$}}}|{{{star}}}-{{{name}}}]]|}} }} | + | | = |
+ | | Normal = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Normal defense|{{{star}}}-{{{name}}}]] | ||
+ | | Elemental = [[Category:{{{type}}}{{#switch:{{{type|armor}}}|armor=|helmet=s}} providing Elemental 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}}}]] | ||
+ | }} | ||
+ | {{#for:6|{{#if|{{{status $n$|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{status $n$}}}|{{{star}}}-{{{name}}}]]|}} }} | ||
+ | {{#for:6|{{#if|{{{weakness $n$|}}} | [[Category:{{#switch:{{{type|armor}}}|armor=armor|helmet=helmets}} weak to {{{weakness $n$}}}|{{{star}}}-{{{name}}}]]|}} }} | ||
{{#switch:{{{promotional}}} | {{#switch:{{{promotional}}} | ||
| yes = [[Category:Promotional items]] | | yes = [[Category:Promotional items]] |
Revision as of 14:22, 1 April 2015
[edit] [ ] Template documentation
- Documentation pending
For details on this overall project, see:
- forum node 107506 (comment request for help here)
The above documentation is transcluded from Template:ArmorInfo/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |