Modèle:ArmorInfo/doc : Différence entre versions

De SpiralKnights

m (1 version)
(Usage)
 
Ligne 2 : Ligne 2 :
 
Use this template to display quick stats of an item on its page.
 
Use this template to display quick stats of an item on its page.
  
== Usage ==
+
{{SKWindow
Example:
+
| width = 300px
 
+
| align = right
<pre>
+
| margin = 0px 0px 20px 20px
{{ArmorInfo
+
| icon = Equipment-{{{name|Unknown}}}{{{fixicon|}}}_icon.png
| name = {{PAGENAME}}
+
| title = {{{name|Armor}}}
| type = armor, helmet, or shield
+
| stars = {{{stars|0}}}
| stars =
+
| body =
 +
{{SKWindow/NewRow}}
 +
{{SKWindow/EmptyCell|[[Image:{{{name|Unknown}}}{{{fiximg|}}}-Equipped.png{{#switch: {{{view2}}}
 +
| yes = {{pipe}}128px
 +
| #default = }}]]{{#switch: {{{view2}}}
 +
| yes =[[File:{{{name|Unknown}}}-Equipped_2.png|128px]]
 +
| #default = }}|center||4}}
 +
{{#switch: {{{costume}}}
 +
| yes = [[Category:Costume items]]
 +
| #default = {{SKWindow/NewRow}}{{SKWindow/Cell|[[Image:Equipment-{{{name|Unknown}}}_Stats.png]]|center}}
 
}}
 
}}
</pre>
+
{{SKWindow/NewRow}}
 
+
{{SKWindow/Cell|'''Abilities'''
Optional variables:
+
{{{abilities|* None}}}{{#switch: {{{costume}}}
 
+
| yes = * Appears in "Costume" section of the arsenal<br>
<pre>
+
}}|||}}
| costume = yes (optional)
+
{{#switch: {{{type|Armor}}}
| promotional = yes (optional)
+
| Shield =
</pre>
+
| shield =
 +
| #default = {{SKWindow/NewRow}}
 +
{{SKWindow/Cell|'''Accessory Positions'''
 +
{{#switch: {{{helmet_top|no}}}{{{helmet_side|no}}}{{{helmet_front|no}}}{{{helmet_back|no}}}{{{armor_front|no}}}{{{armor_back|no}}}{{{armor_rear|no}}}{{{armor_aura|no}}} | nononononononono = * None [[Category:No attachment]]}} {{#switch: {{{helmet_top}}} | yes = *[[Image:Icon-accessory-helmet_top.png|16px]] Helmet Top [[Category:Helmet top attachment]]}}{{#switch: {{{helmet_side}}} | yes = *[[Image:Icon-accessory-helmet_side.png|16px]] Helmet Side [[Category:Helmet side attachment]]}} {{#switch: {{{helmet_front}}} | yes = *[[Image:Icon-accessory-helmet_front.png|16px]] Helmet Front [[Category:Helmet front attachment]]}}{{#switch: {{{helmet_back}}} | yes = *[[Image:Icon-accessory-helmet_back.png|16px]] Helmet Back [[Category:Helmet back attachment]]}} {{#switch: {{{armor_front}}} | yes = *[[Image:Icon-accessory-armor_front.png|16px]] Armor Front [[Category:Armor front attachment]]}}{{#switch: {{{armor_back}}} | yes = *[[Image:Icon-accessory-armor_back.png|16px]] Armor Back [[Category:Armor back attachment]]}} {{#switch: {{{armor_rear}}} | yes = *[[Image:Icon-accessory-armor_rear.png|16px]] Armor Rear [[Category:Armor rear attachment]]}} {{#switch: {{{armor_aura}}} | yes = *[[Image:Icon-accessory-armor_aura.png|16px]] Armor Aura [[Category:Armor aura attachment]]}}
 +
}}
 +
}}
 +
}}
 +
<noinclude>{{documentation}}</noinclude>
 +
<includeonly>[[Category:Equipment]] [[Category:Gear]]
 +
{{#switch: {{{type}}}
 +
| armor = [[Category:Armor]]
 +
| helmet = [[Category:Helmets]]
 +
| shield = [[Category:Shields]]
 +
| #default = [[Category:Needs type]]
 +
}}
 +
{{#switch: {{{promotional}}}
 +
| yes = [[Category:Promotional items]]
 +
| #default =
 +
}}
 +
</includeonly>

Version actuelle en date du 1 juin 2013 à 10:09

Use this template to display quick stats of an item on its page.

Armor ☆☆☆☆☆
Fichier:Unknown-Equipped.png
Fichier:Equipment-Unknown Stats.png
Abilities
  • None
Accessory Positions
  • None
[create] Template documentation
Outils personnels