Difference between revisions of "Template:InfoOverview"
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}} |
Revision as of 22:14, 26 December 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