Difference between revisions of "Template:ResourcePropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>
+
{{#vardefine: source | {{{source|{{PAGENAME}} }}} }}<includeonly>
 
|Craftable
 
|Craftable
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolCraft}} | true | yes | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolCraft}} | true | yes | no}}
 
|-
 
|-
 
|Tradeable (Exchange)
 
|Tradeable (Exchange)
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolExchange}} | true | yes, (Command: <code>/t_{{#show: {{PAGENAME}} |?ItemID}}</code>) | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolExchange}} | true | yes, (Command: <code>/t_{{#show: {{#var: source}} |?ItemID}}</code>) | no}}
 
|-
 
|-
 
|Tradeable (Auction)
 
|Tradeable (Auction)
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolAuction}} | true | yes | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolAuction}} | true | yes | no}}
 
|-
 
|-
 
|Can be found in [[Quest|quests]]
 
|Can be found in [[Quest|quests]]
| {{#ifeq: {{#show: {{PAGENAME}} |?BoolQuest}} | true | yes | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolQuest}} | true | yes | no}}
 
|-
 
|-
{{#ifeq: {{#show: {{PAGENAME}} |?BoolQuest}} | true |
+
{{#ifeq: {{#show: {{#var: source}} |?BoolQuest}} | true |
 
{{!}}Drop info
 
{{!}}Drop info
 
{{!}}
 
{{!}}
Line 23: Line 23:
 
   {{!}}-style=text-align:center;"
 
   {{!}}-style=text-align:center;"
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Forest|link=Forest}} [[Forest]]
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Forest|link=Forest}} [[Forest]]
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForestMorning}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForestMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForestMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForestDay}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForestDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForestDay}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForestEvening}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForestEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForestEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForestNight}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForestNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForestNight}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
 
   {{!}}-style=text-align:center;"
 
   {{!}}-style=text-align:center;"
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Swamp|link=Swamp}} [[Swamp]]
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Swamp|link=Swamp}} [[Swamp]]
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestSwampMorning}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestSwampMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestSwampMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestSwampDay}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestSwampDay}} | true | {{Emoticon|emoticon=Checkmark}} |  {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestSwampDay}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampDay}} | true | {{Emoticon|emoticon=Checkmark}} |  {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestSwampEvening}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestSwampEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestSwampEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestSwampNight}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestSwampNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestSwampNight}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
 
   {{!}}-style=text-align:center;"
 
   {{!}}-style=text-align:center;"
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Valley|link=Valley}} [[Valley]]
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Valley|link=Valley}} [[Valley]]
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestValleyMorning}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestValleyMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestValleyMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestValleyDay}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestValleyDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestValleyDay}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestValleyEvening}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestValleyEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestValleyEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestValleyNight}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestValleyNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestValleyNight}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
 
   {{!}}-style=text-align:center;"
 
   {{!}}-style=text-align:center;"
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Foray|link=Foray}} [[Foray]]
 
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Foray|link=Foray}} [[Foray]]
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForayMorning}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForayMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForayMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayMorning}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForayDay}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForayDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForayDay}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayDay}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForayEvening}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForayEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForayEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayEvening}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
                                 {{!}} {{#if: {{#show: {{PAGENAME}} |?QuestForayNight}} | {{#ifeq: {{#show: {{PAGENAME}} |?QuestForayNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
+
                                 {{!}} {{#if: {{#show: {{#var: source}} |?QuestForayNight}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayNight}} | true | {{Emoticon|emoticon=Checkmark}} | {{Emoticon|emoticon=Error}} }} | {{Emoticon|emoticon=Questionmark}} }}
 
{{!}}}
 
{{!}}}
 
{{!}}-
 
{{!}}-
{{!}} Required Level of {{#ifeq: {{#show: {{PAGENAME}} |? ItemSubType#}} | Alchemy Resource
+
{{!}} Required Level of {{#ifeq: {{#show: {{#var: source}} |? ItemSubType#}} | Alchemy Resource
 
                           | [[Harvest]]
 
                           | [[Harvest]]
 
                           | [[Perception]]
 
                           | [[Perception]]
 
                         }}
 
                         }}
{{!}} {{#show: {{PAGENAME}} |?PerceptionLevel}}
+
{{!}} {{#show: {{#var: source}} |?PerceptionLevel}}
{{#if: {{#show: {{PAGENAME}} |?PlayerQuestMinLevel}} | {{#switch: {{#show: {{PAGENAME}} |?PlayerQuestMinLevel}}
+
{{#if: {{#show: {{#var: source}} |?PlayerQuestMinLevel}} | {{#switch: {{#show: {{#var: source}} |?PlayerQuestMinLevel}}
 
   | 0 | 1 =
 
   | 0 | 1 =
 
   | #default = {{!}}-
 
   | #default = {{!}}-
 
                 {{!}} Minimum required Player Level
 
                 {{!}} Minimum required Player Level
                 {{!}} {{#show: {{PAGENAME}} |?PlayerQuestMinLevel}}
+
                 {{!}} {{#show: {{#var: source}} |?PlayerQuestMinLevel}}
 
   }}
 
   }}
 
}}
 
}}

Revision as of 11:39, 22 October 2018


This template is designed for being used inside Template:InfoOverview. It adds information on Resources to the general info overview