Difference between revisions of "Template:ShowTier"

From ChatWars Wiki
Jump to: navigation, search
(added new harvest levels to tiers)
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{#show: {{{page| {{PAGENAME}} }}} |?ItemType#}}  
+
{{#vardefine: page | {{{source|{{PAGENAME}} }}} }}<includeonly>{{#switch: {{#show: {{#var: page}} |?ItemType#}}  
   | Recipe (Item) | Piece of Equipment | Weapon | Cape | Protective Gear = {{#switch: {{#show: {{{page| {{PAGENAME}} }}} |?LevelEquipRequirement}}
+
   | Recipe (Item) | Piece of Equipment | Weapon | Cape | Protective Gear = {{#if: {{#show: {{#var: page}} |?LevelEquipRequirement}}
                                                                            | 0  = [[Nomenclature#Equipment|T0]] (No Expertise needed)
+
                                                                            | {{#switch: {{#show: {{#var: page}} |?LevelEquipRequirement}}
                                                                            | 15 = [[Nomenclature#Equipment|T1]] ({{Emoticon|emoticon=Bookred}})
+
                                                                                | 0  = [[Nomenclature#Equipment|T0]] (No Expertise)
                                                                            | 25 = [[Nomenclature#Equipment|T2]] ({{Emoticon|emoticon=Bookgreen}})
+
                                                                                | 15 = [[Nomenclature#Equipment|T1]] ({{Emoticon|emoticon=Bookred}})
                                                                            | 35 = [[Nomenclature#Equipment|T3]] ({{Emoticon|emoticon=Bookblue}})
+
                                                                                | 25 = [[Nomenclature#Equipment|T2]] ({{Emoticon|emoticon=Bookgreen}})
                                                                            | 45 = [[Nomenclature#Equipment|T4]] ({{Emoticon|emoticon=Bookorange}})
+
                                                                                | 35 = [[Nomenclature#Equipment|T3]] ({{Emoticon|emoticon=Bookblue}})
                                                                            | #default = ERROR: Could not parse Tier info (Property input error or new/unsupported item? Value:  {{#show: {{{page| {{PAGENAME}} }}} |?LevelEquipRequirement}})
+
                                                                                | 45 = [[Nomenclature#Equipment|T4]] ({{Emoticon|emoticon=Bookorange}})
 +
                                                                                | 60 = [[Nomenclature#Equipment|T5]] ({{Emoticon|emoticon=Yellowpages}})
 +
                                                                                | #default = ERROR: Could not parse Tier info (Property input error or new/unsupported item? Value:  {{#show: {{#var: page}} |?LevelEquipRequirement}})
 +
                                                                              }}
 +
                                                                            | [[Nomenclature#Equipment|T??]]
 
                                                                           }}
 
                                                                           }}
   | Resource = [[Nomenclature#Resource|C{{#if:{{#show: {{{page| {{PAGENAME}} }}} |?SkillCraftLevel}} | {{#show: {{{page| {{PAGENAME}} }}} |?SkillCraftLevel}} | 0}}{{#ifeq: {{#show: {{{page| {{PAGENAME}} }}} |?BoolQuest}} | true | | a }}]]
+
   | Resource = {{#switch: {{#show: {{#var: page}} |?ItemSubType#}}
   | Consumable = {{#switch: {{#show: {{PAGENAME}} |?ItemSubType#}}
+
                | Alchemy Resource = [[Nomenclature#Alchemy Resource|H{{#ifeq: {{#show: {{#var: page}} |?BoolCraft}} | true
                   | Ammunition = [[Nomenclature|A{{#show: {{PAGENAME}} |?SkillCraftLevel}}]]
+
                                                                        | C{{#show: {{#var: page}} |?SkillCraftLevel}}
 +
                                                                        | {{#switch: {{#show: {{#var: page}} |?PerceptionLevel}}
 +
                                                                            | 1 = 1
 +
                                                                            | 3 = 2
 +
                                                                            | 7 = 3
 +
                                                                            | 12 = 4
 +
                                                                            | 15 = 5
 +
                                                                            | 17 = 6
 +
                                                                          }}
 +
                                                                      }}]]
 +
                | #default = [[Nomenclature#Resource|C{{#if: {{#show: {{#var: page}} |?SkillCraftLevel}}
 +
                                                        | {{#show: {{#var: page}} |?SkillCraftLevel}}
 +
                                                        | 0
 +
                                                      }}{{#ifeq: {{#show: {{#var: page}} |?BoolQuest}} | true
 +
                                                          |
 +
                                                          | a
 +
                                                        }}]]
 +
              }}
 +
   | Consumable = {{#switch: {{#show: {{#var: page}} |?ItemSubType#}}
 +
                   | Ammunition = [[Nomenclature|CA{{#show: {{#var: page}} |?SkillCraftLevel}}]]
 +
                  | Potion = [[Nomenclature#Brewing ranks|A{{#show: {{#var: page}} |?SkillCraftLevel}}]]
 
                 }}
 
                 }}
 
}}</includeonly>
 
}}</includeonly>

Revision as of 02:10, 5 October 2020


This template returns a short text displaying the tier of either the current page or a selected source page