Difference between revisions of "Template:InfoOverview"

From ChatWars Wiki
Jump to: navigation, search
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
+
{{#vardefine: source | {{{source|{{PAGENAME}} }}} }}<includeonly>
 
{| class="wikitable" style="width:500px; font-size:100%;"
 
{| class="wikitable" style="width:500px; font-size:100%;"
 
|-
 
|-
! style="width: 50%" colspan="2" align="center" style="background:lightgrey" | Properties of {{PAGENAME}}
+
! style="width: 50%" colspan="2" align="center" style="background:lightgrey" | Properties of {{#var: source}}
 
|-  
 
|-  
 
| Identifier code  
 
| Identifier code  
| <code>{{#show: {{PAGENAME}} |?ItemID}}</code>
+
| <code>{{#show: {{#var: source}} |?ItemID}}</code>
 
|-
 
|-
 
| Type
 
| Type
| {{#show: {{PAGENAME}} |?ItemType}} {{#if: {{#show: {{PAGENAME}} |?ItemSubType}}|, {{#show: {{PAGENAME}} |?ItemSubType}} }}
+
| {{#show: {{#var: source}} |?ItemType}}{{#if: {{#show: {{#var: source}} |?ItemSubType}}|, {{#show: {{#var: source}} |?ItemSubType}} }}<!--
                                                  {{#if: {{#show: {{PAGENAME}} |?ArmorClass}} |, {{#show: {{PAGENAME}} |?ArmorClass}} }}
+
                                  -->{{#if: {{#show: {{#var: source}} |?ArmorClass}} |, {{#show: {{#var: source}} |?ArmorClass}} }}<!--
 +
-->, {{ShowTier|source={{#var: source}} }}
 
|-
 
|-
{{#ifeq: {{#show: {{PAGENAME}} |?ItemType#}} | Recipe (Item) | {{!}} Set {{!}}{{!}} {{#show: {{PAGENAME}} |?LevelEquipRequirement}} {{#switch: {{#show: {{PAGENAME}} |?LevelEquipRequirement}} | 25=[[Nomenclature#Equipment|T2]] ({{Emoticon|emoticon=Bookgreen}}) | 35=[[Nomenclature#Equipment|T3]], {{Emoticon|emoticon=Bookblue}} | 45=[[Nomenclature#Equipment|T4]] ({{Emoticon|emoticon=Bookorange}}) }}
+
{{#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#}} | Piece of Equipment | {{!}} Used in {{!}}{{!}} {{#ask: [[Crafting ingredient::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }}
 +
{{!}}- }}
 +
{{#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
| {{#show: {{PAGENAME}} |?Weight}}
+
| {{#show: {{#var: source}} |?Weight}}
 
|-
 
|-
| Depositable in [[Guild]] {{#if: {{#show: {{PAGENAME}} |?Wrapping}}
+
| Depositable in [[Guild]] {{#if: {{#show: {{#var: source}} |?Wrapping}}
                             | {{#ifeq: {{#show: {{PAGENAME}} |?Wrapping}} | 0
+
                             | {{#ifeq: {{#show: {{#var: source}} |?Wrapping}} | 0
 
                                 | | (needed [[Wrapping]])
 
                                 | | (needed [[Wrapping]])
 
                               }}
 
                               }}
 
                           }}
 
                           }}
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolDepositGuild}} | true | yes | no}} {{#if: {{#show: {{PAGENAME}} |?Wrapping}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolDepositGuild}} | true | yes | no}} {{#if: {{#show: {{#var: source}} |?Wrapping}}
                                                                                        | {{#ifeq: {{#show: {{PAGENAME}} |?Wrapping}} | 0
+
                                                                            | {{#ifeq: {{#show: {{#var: source}} |?Wrapping}} | 0
                                                                                            | | ({{#show: {{PAGENAME}} |?Wrapping}})
+
                                                                                | | ({{#show: {{#var: source}} |?Wrapping}})
                                                                                          }}
+
                                                                              }}
                                                                                      }}
+
                                                                          }}
 
|-
 
|-
 
| Event item
 
| Event item
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolEventItem}} | true | yes | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolEventItem}} | true | yes{{#if: {{#show: {{#var: source}} |?Event }} | , {{#show: {{#var: source}} |?Event }} }} | no}}
 
|-
 
|-
{{#switch: {{#show: {{PAGENAME}} |?ItemType#}}
+
{{#switch: {{#show: {{#var: source}} |?ItemType#}}
   | Weapon | Protective Gear | Cape = {{ItemPropertiesInfoBox}}
+
   | Weapon | Protective Gear | Cape | Special Equippable = {{ItemPropertiesInfoBox|source={{#var: source}} }}
   | Piece of Equipment | Recipe (Item) | Resource = {{ResourcePropertiesInfoBox}}
+
   | Piece of Equipment | Recipe (Item) | Resource | Misc | Pet Food = {{ResourcePropertiesInfoBox|source={{#var: source}} }}
 +
  | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}}
 +
                  | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}}
 +
                  | Potion = {{Consumable_PotionPropertiesInfoBox}}
 +
                }}
 
}}
 
}}
 
|}
 
|}
</includeonly>
+
{{#if: {{#show: {{#var: source}} |?ItemType#}} | [[Category:{{#show: {{#var: source}} |?ItemType#}}]] }}
 
+
{{#if: {{#show: {{#var: source}} |?ItemSubType#}} | [[Category:{{#show: {{#var: source}} |?ItemSubType#}}]] }}
<noinclude>
+
</includeonly><noinclude>
 
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
 
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
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 13: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