Difference between revisions of "Template:ResourcePropertiesInfoBox"

From ChatWars Wiki
Jump to: navigation, search
(Created page with "<includeonly> |Craftable | {{#ifeq: {{#show: {{PAGENAME}} |?BoolCraft}} | true | yes | no}} |- |Tradeable (Exchange) | {{#ifeq: {{#show: {{PAGENAME}} |?BoolExchange}} | true |...")
 
(updated to droprate table template (same code but broken out to a separate template))
 
(25 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>
+
{{#vardefine: source | {{{source| {{ReplaceNumericCharEncoding| string={{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 | no}}
+
| {{#ifeq: {{#show: {{#var: source}} |?BoolExchange}} | true | yes, (Command: <code>/t_{{#show: {{#var: source}} |?ItemID}}</code>) | no}}
 +
|-
 +
|Tradeable (Auction)
 +
| {{#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}}
 
|-
 
|-
{{#if: {{#show: {{PAGENAME}} |?BoolQuest}} |
+
{{#ifeq: {{#show: {{#var: source}} |?BoolQuest}} | true |
 
{{!}}Drop info
 
{{!}}Drop info
 
{{!}}
 
{{!}}
{{{!}} class="wikitable"  
+
{{DroprateTable | source={{#var: source}} }}
   {{!}} style="width: 14%"  align="left"{{!}} :Quest: '''Quest'''  
+
<!--{{{!}} class="wikitable"  
   {{!}} style="width: 1.5%" align="center"{{!}} :Timemorning:
+
   {{!}} style="width: 14%"  align="left"{{!}} {{Emoticon|emoticon=Quest|link=Quest}} '''Quest'''  
   {{!}} style="width: 1.5%" align="center"{{!}} :Timeday:
+
   {{!}} style="width: 1.5%" align="center"{{!}} {{Emoticon|emoticon=Timemorning|link=Morning}}
   {{!}} style="width: 1.5%" align="center"{{!}} :Timeevening:
+
   {{!}} style="width: 1.5%" align="center"{{!}} {{Emoticon|emoticon=Timeday|link=Day}}
   {{!}} style="width: 1.5%" align="center"{{!}} :Timenight:
+
   {{!}} style="width: 1.5%" align="center"{{!}} {{Emoticon|emoticon=Timeevening|link=Evening}}
 +
   {{!}} style="width: 1.5%" align="center"{{!}} {{Emoticon|emoticon=Timenight|link=Night}}
 
   {{!}}-style=text-align:center;"
 
   {{!}}-style=text-align:center;"
   {{!}}style=text-align:left;" {{!}} :Forest: [[Forest]] {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForestMorning}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForestDay}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForestEvening}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForestNight}}
+
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Forest|link=Forest}} [[Forest]]
 +
                                {{!}} {{#if: {{#show: {{#var: source}} |?QuestForestMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestMorning}} | 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: {{#var: source}} |?QuestForestEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForestEvening}} | 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;" {{!}} :Swamp: [[Swamp]] {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestSwampMorning}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestSwampDay}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestSwampEvening}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestSwampNight}}
+
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Swamp|link=Swamp}} [[Swamp]]
 +
                                {{!}} {{#if: {{#show: {{#var: source}} |?QuestSwampMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampMorning}} | 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: {{#var: source}} |?QuestSwampEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestSwampEvening}} | 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;" {{!}} :Valley: [[Valley]] {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestValleyMorning}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestValleyDay}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestValleyEvening}} || {{#show: {{PAGENAME}} |?QuestValleyNight}}
+
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Valley|link=Valley}} [[Valley]]
 +
                                {{!}} {{#if: {{#show: {{#var: source}} |?QuestValleyMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyMorning}} | 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: {{#var: source}} |?QuestValleyEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestValleyEvening}} | 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;" {{!}} :Foray: [[Foray]] {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForayMorning}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForayDay}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForayEvening}} {{!}}{{!}} {{#show: {{PAGENAME}} |?QuestForayNight}}
+
   {{!}}style=text-align:left;" {{!}} {{Emoticon|emoticon=Foray|link=Foray}} [[Foray]]
{{!}}}
+
                                {{!}} {{#if: {{#show: {{#var: source}} |?QuestForayMorning}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayMorning}} | 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: {{#var: source}} |?QuestForayEvening}} | {{#ifeq: {{#show: {{#var: source}} |?QuestForayEvening}} | 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: {{#var: source}} |? ItemSubType#}} | Alchemy Resource
 +
                          | [[Harvest]]
 +
                          | [[Perception]]
 +
                        }}
 +
{{!}} {{#show: {{#var: source}} |?PerceptionLevel}}
 +
{{#if: {{#show: {{#var: source}} |?PlayerQuestMinLevel}} | {{#switch: {{#show: {{#var: source}} |?PlayerQuestMinLevel}}
 +
  | 0 | 1 =
 +
  | #default = {{!}}-
 +
                {{!}} Minimum required Player Level
 +
                {{!}} {{#show: {{#var: source}} |?PlayerQuestMinLevel}}
 +
  }}
 
}}
 
}}
|'''Attribute'''
 
|'''Value'''
 
|-
 
|Attack
 
| +{{#show: {{PAGENAME}} |?Attack}} {{Emoticon|emoticon=Attack}}
 
|-
 
|Defense
 
| +{{#show: {{PAGENAME}} |?Defense}} {{Emoticon|emoticon=Defend}}
 
|-
 
|Mana
 
| +{{#show: {{PAGENAME}} |?Mana}} {{Emoticon|emoticon=Mana}}
 
|-
 
{{#if: {{#show: {{PAGENAME}} |?Stamina}} |
 
  {{#ifeq: {{#show: {{PAGENAME}} |?Stamina}} | 0 | |
 
    {{!}}Stamina
 
    {{!}} +{{#show: {{PAGENAME}} |?Stamina}} {{Emoticon|emoticon=Stamina}}
 
    {{!}}-
 
  }}
 
}}
 
{{#if: {{#show: {{PAGENAME}} |?InventoryIncrease}} |
 
  {{#ifeq: {{#show: {{PAGENAME}} |?InventoryIncrease}} | 0 | |
 
    {{!}}Inventory increase
 
    {{!}} +{{#show: {{PAGENAME}} |?InventoryIncrease}} {{Emoticon|emoticon=Bag}}
 
    {{!}}-
 
  }}
 
}}
 
{{#if: {{#show: {{PAGENAME}} |?Luck}} |
 
  {{#ifeq: {{#show: {{PAGENAME}} |?Luck}} | 0 | |
 
    {{!}}Stamina
 
    {{!}} +{{#show: {{PAGENAME}} |?Luck}} {{Emoticon|emoticon=Clover}}
 
    {{!}}-
 
  }}
 
}}
 
|Level Requirement
 
|{{#show: {{PAGENAME}} |?LevelEquipRequirement}} {{#switch: {{#show: {{PAGENAME}} |?LevelEquipRequirement}} | 15 = ({{Emoticon|emoticon=Bookred}}) | 25 = ({{Emoticon|emoticon=Bookgreen}}) | 35 = ({{Emoticon|emoticon=Bookblue}}) | 45 = ({{Emoticon|emoticon=Bookorange}}) }}
 
|-
 
|Enchantment Slot
 
|{{#ifeq: {{#show: {{PAGENAME}} |?BoolEnchantment}} | true | yes | no}} {{#switch: {{#show: {{PAGENAME}} |?LevelEquipRequirement}} | 15 = ({{Emoticon|emoticon=Bookred}}) | 25 = ({{Emoticon|emoticon=Bookgreen}}) | 35 = ({{Emoticon|emoticon=Bookblue}}) | 45 = ({{Emoticon|emoticon=Bookorange}}) }}
 
|-
 
{{#if: {{#show: {{PAGENAME}} |?Ammunition}} |
 
{{!}}Ammunition
 
{{!}} {{#show: {{PAGENAME}} |?Ammunition}}
 
{{!}}-
 
 
}}
 
}}
 
</includeonly>
 
</includeonly>
  
 
<noinclude>
 
<noinclude>
This template is designed for being used inside [[Template:InfoOverview]]. It adds information on equippable Items to the general info overview
+
This template is designed for being used inside [[Template:InfoOverview]]. It adds information on Resources to the general info overview
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 20:58, 18 March 2019


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