Difference between revisions of "Template:ShowTier"

From ChatWars Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#switch: {{#show: {{{page| {{PAGENAME}} }}} |?ItemType#}}  
+
{{#vardefine: page | {{{page|{{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 = {{#switch: {{#show: {{#var: page}} |?LevelEquipRequirement}}
 
                                                                             | 0  = [[Nomenclature#Equipment|T0]] (No Expertise needed)
 
                                                                             | 0  = [[Nomenclature#Equipment|T0]] (No Expertise needed)
 
                                                                             | 15 = [[Nomenclature#Equipment|T1]] ({{Emoticon|emoticon=Bookred}})
 
                                                                             | 15 = [[Nomenclature#Equipment|T1]] ({{Emoticon|emoticon=Bookred}})
Line 6: Line 6:
 
                                                                             | 35 = [[Nomenclature#Equipment|T3]] ({{Emoticon|emoticon=Bookblue}})
 
                                                                             | 35 = [[Nomenclature#Equipment|T3]] ({{Emoticon|emoticon=Bookblue}})
 
                                                                             | 45 = [[Nomenclature#Equipment|T4]] ({{Emoticon|emoticon=Bookorange}})
 
                                                                             | 45 = [[Nomenclature#Equipment|T4]] ({{Emoticon|emoticon=Bookorange}})
                                                                             | #default = ERROR: Could not parse Tier info (Property input error or new/unsupported item? Value:  {{#show: {{{page| {{PAGENAME}} }}} |?LevelEquipRequirement}})
+
                                                                             | #default = ERROR: Could not parse Tier info (Property input error or new/unsupported item? Value:  {{#show: {{#var: page}} |?LevelEquipRequirement}})
 
                                                                           }}
 
                                                                           }}
   | Resource = [[Nomenclature#Resource|C{{#if:{{#show: {{{page| {{PAGENAME}} }}} |?SkillCraftLevel}} | {{#show: {{{page| {{PAGENAME}} }}} |?SkillCraftLevel}} | 0}}{{#ifeq: {{#show: {{{page| {{PAGENAME}} }}} |?BoolQuest}} | true | | a }}]]
+
   | Resource = [[Nomenclature#Resource|C{{#if:{{#show: {{#var: page}} |?SkillCraftLevel}} | {{#show: {{#var: page}} |?SkillCraftLevel}} | 0}}{{#ifeq: {{#show: {{#var: page}} |?BoolQuest}} | true | | a }}]]
   | Consumable = {{#switch: {{#show: {{PAGENAME}} |?ItemSubType#}}
+
   | Consumable = {{#switch: {{#show: {{#var: page}}} |?ItemSubType#}}
 
                   | Ammunition = [[Nomenclature|A{{#show: {{PAGENAME}} |?SkillCraftLevel}}]]
 
                   | Ammunition = [[Nomenclature|A{{#show: {{PAGENAME}} |?SkillCraftLevel}}]]
 
                 }}
 
                 }}

Revision as of 17:19, 22 August 2018


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