Difference between revisions of "Template:IsGNEquipment"

From TheKolWiki
Jump to: navigation, search
(need a template to distinguish equipment for GN)
 
m (off-hand item (shield) too)
 
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}|hat|pants|shirt|off-hand item|back item|accessory=1|#default={{#pos:{{{1|}}}|weapon}}}}</includeonly><noinclude>{{Code2}}
+
<includeonly>{{#switch:{{{1|}}}|hat|pants|shirt|off-hand item|off-hand item (shield)|back item|accessory=1|#default={{#pos:{{{1|}}}|weapon}}}}</includeonly><noinclude>{{Code2}}
 
Accepts one parameter expected to be an item type field. It then returns a non-empty string if the parameter describes equipment that can be absorbed for its enchantments in a [[Gelatinous Noob]] context, and an empty string otherwise.  Equipment in this context includes hats, pants, shirts, back items, accessories, regular and ranged weapons of any kind, and off-hand items, and excludes familiar equipment.
 
Accepts one parameter expected to be an item type field. It then returns a non-empty string if the parameter describes equipment that can be absorbed for its enchantments in a [[Gelatinous Noob]] context, and an empty string otherwise.  Equipment in this context includes hats, pants, shirts, back items, accessories, regular and ranged weapons of any kind, and off-hand items, and excludes familiar equipment.
  
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Utility Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 17:43, 26 February 2017

{{IsGNEquipment}}
{{#switch:{{{1|}}}|hat|pants|shirt|off-hand item|off-hand item (shield)|back item|accessory=1|#default={{#pos:{{{1|}}}|weapon}}}}

Accepts one parameter expected to be an item type field. It then returns a non-empty string if the parameter describes equipment that can be absorbed for its enchantments in a Gelatinous Noob context, and an empty string otherwise. Equipment in this context includes hats, pants, shirts, back items, accessories, regular and ranged weapons of any kind, and off-hand items, and excludes familiar equipment.