Difference between revisions of "Template:InfoOverview"

From ChatWars Wiki
Jump to: navigation, search
(replaced pagename reference with variable call to circumvent a bug in mediawiki)
Line 37: Line 37:
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 
   | Weapon | Protective Gear | Cape | Special Equippable = {{ItemPropertiesInfoBox}}
 
   | Weapon | Protective Gear | Cape | Special Equippable = {{ItemPropertiesInfoBox}}
   | Piece of Equipment | Recipe (Item) | Resource | Misc = {{ResourcePropertiesInfoBox}}
+
   | Piece of Equipment | Recipe (Item) | Resource | Misc = {{ResourcePropertiesInfoBox|source={{#var: source}} }}
 
   | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 
   | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 
                   | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}}
 
                   | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}}

Revision as of 11:39, 22 October 2018

This template displays all information of an item/resource/... display changes depending on type of content. It uses Template:ItemPropertiesInfoBox and Template:ResourcePropertiesInfoBox to display not general content