Difference between revisions of "Template:InfoOverview"
(6 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 {{ | + | ! style="width: 50%" colspan="2" align="center" style="background:lightgrey" | Properties of {{#var: source}} |
|- | |- | ||
| Identifier code | | Identifier code | ||
− | | <code>{{#show: {{ | + | | <code>{{#show: {{#var: source}} |?ItemID}}</code> |
|- | |- | ||
| Type | | Type | ||
− | | {{#show: {{ | + | | {{#show: {{#var: source}} |?ItemType}}{{#if: {{#show: {{#var: source}} |?ItemSubType}}|, {{#show: {{#var: source}} |?ItemSubType}} }}<!-- |
− | -->{{#if: {{#show: {{ | + | -->{{#if: {{#show: {{#var: source}} |?ArmorClass}} |, {{#show: {{#var: source}} |?ArmorClass}} }}<!-- |
− | -->, {{ShowTier}} | + | -->, {{ShowTier|source={{#var: source}} }} |
|- | |- | ||
− | {{#ifeq: {{#show: {{ | + | {{#ifeq: {{#show: {{#var: source}} |?ItemType#}} | Recipe (Item) | {{!}} Used in {{!}}{{!}} {{#ask: [[Crafting ingredient::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }} |
{{!}}- }} | {{!}}- }} | ||
− | {{#ifeq: {{#show: {{ | + | {{#ifeq: {{#show: {{#var: source}} |?ItemType#}} | Piece of Equipment | {{!}} Used in {{!}}{{!}} {{#ask: [[Crafting ingredient::{{#var: source}}]] |headers=hide |format=list |?{{#var: source}} }} |
{{!}}- }} | {{!}}- }} | ||
− | {{#switch: {{#show: {{ | + | {{#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: {{ | + | | {{#show: {{#var: source}} |?Weight}} |
|- | |- | ||
− | | Depositable in [[Guild]] {{#if: {{#show: {{ | + | | Depositable in [[Guild]] {{#if: {{#show: {{#var: source}} |?Wrapping}} |
− | | {{#ifeq: {{#show: {{ | + | | {{#ifeq: {{#show: {{#var: source}} |?Wrapping}} | 0 |
| | (needed [[Wrapping]]) | | | (needed [[Wrapping]]) | ||
}} | }} | ||
}} | }} | ||
− | | {{#ifeq: {{#show: {{ | + | | {{#ifeq: {{#show: {{#var: source}} |?BoolDepositGuild}} | true | yes | no}} {{#if: {{#show: {{#var: source}} |?Wrapping}} |
− | | {{#ifeq: {{#show: {{ | + | | {{#ifeq: {{#show: {{#var: source}} |?Wrapping}} | 0 |
− | | | ({{#show: {{ | + | | | ({{#show: {{#var: source}} |?Wrapping}}) |
}} | }} | ||
}} | }} | ||
|- | |- | ||
| Event item | | Event item | ||
− | | {{#ifeq: {{#show: {{ | + | | {{#ifeq: {{#show: {{#var: source}} |?BoolEventItem}} | true | yes{{#if: {{#show: {{#var: source}} |?Event }} | , {{#show: {{#var: source}} |?Event }} }} | no}} |
|- | |- | ||
− | {{#switch: {{#show: {{ | + | {{#switch: {{#show: {{#var: source}} |?ItemType#}} |
− | | Weapon | Protective Gear | Cape | Special Equippable = {{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: {{ | + | | Consumable = {{#switch: {{#show: {{#var: source}} |?ItemSubType#}} |
| Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}} | | Ammunition = {{Consumable_AmmunitionPropertiesInfoBox}} | ||
| Potion = {{Consumable_PotionPropertiesInfoBox}} | | Potion = {{Consumable_PotionPropertiesInfoBox}} | ||
Line 44: | Line 46: | ||
}} | }} | ||
|} | |} | ||
− | </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 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