Difference between revisions of "Template:InfoOverview"

From ChatWars Wiki
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 10: Line 10:
 
| {{#show: {{#var: source}} |?ItemType}}{{#if: {{#show: {{#var: source}} |?ItemSubType}}|, {{#show: {{#var: source}} |?ItemSubType}} }}<!--
 
| {{#show: {{#var: source}} |?ItemType}}{{#if: {{#show: {{#var: source}} |?ItemSubType}}|, {{#show: {{#var: source}} |?ItemSubType}} }}<!--
 
                                   -->{{#if: {{#show: {{#var: source}} |?ArmorClass}} |, {{#show: {{#var: source}} |?ArmorClass}} }}<!--
 
                                   -->{{#if: {{#show: {{#var: source}} |?ArmorClass}} |, {{#show: {{#var: source}} |?ArmorClass}} }}<!--
-->, {{ShowTier}}
+
-->, {{ShowTier|source={{#var: source}} }}
 
|-
 
|-
 
{{#ifeq: {{#show: {{#var: source}} |?ItemType#}} | Recipe (Item) | {{!}} Used in {{!}}{{!}} {{#ask: [[Crafting ingredient::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }}
 
{{#ifeq: {{#show: {{#var: source}} |?ItemType#}} | Recipe (Item) | {{!}} Used in {{!}}{{!}} {{#ask: [[Crafting ingredient::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }}
Line 17: Line 17:
 
{{!}}- }}
 
{{!}}- }}
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}} | Protective Gear = {{!}} Set {{!}}{{!}} {{ItemSet}} <!-- Could be replaced with an if, but switch is easier to add additional categories -->
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}} | Protective Gear = {{!}} Set {{!}}{{!}} {{ItemSet}} <!-- Could be replaced with an if, but switch is easier to add additional categories -->
 +
{{!}}- }}
 +
{{#ifeq: {{#show: {{#var: source}} |?ItemType#}} | Pet Food | {{!}} Pets {{!}}{{!}} {{#ask: [[Food::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }}
 
{{!}}- }}
 
{{!}}- }}
 
| Weight
 
| Weight
Line 37: Line 39:
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
 
   | Weapon | Protective Gear | Cape | Special Equippable = {{ItemPropertiesInfoBox|source={{#var: source}} }}
 
   | Weapon | Protective Gear | Cape | Special Equippable = {{ItemPropertiesInfoBox|source={{#var: source}} }}
   | Piece of Equipment | Recipe (Item) | Resource | Misc = {{ResourcePropertiesInfoBox|source={{#var: source}} }}
+
   | Piece of Equipment | Recipe (Item) | Resource | Misc | Pet Food = {{ResourcePropertiesInfoBox|source={{#var: source}} }}
 
   | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 
   | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 
                   | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}}
 
                   | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}}

Latest revision as of 14:44, 7 January 2019

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