Template:Item type poe2

From Pillars of Eternity Wiki
Jump to: navigation, search
Template-info.png Documentation

This template is used to convert a item/weapon/armor/shield type string to a link to the associated article, with the input as the link label. This was done to reduce clutter, unify this process, and avoid code duplication across templates that might already do this.

In addition to item type, it also handles item categories.

Notes

  • The input parameter is not case sensitive.
  • The input parameter does not accept pluralized variants.
  • The input parameter will be used as a label, and will maintain its original capitalization.
  • If an input is not provided, the template will not output anything.
  • If an input is invalid, the template will output an error. You can use iferror to check for this.
  • Using a custom link label via {{!}} is not supported, though you can provide a separate second parameter (can be empty to use the link text) to do this if you want. The second parameter will maintain the input case.
  • This template defines the variable item_type_page, though it is only used to simplify the logic for the invalid check. It is set to nothing after every use.

The following table outlines what is produced given the input.

Input Output Output without label
Weapons
Weapon Weapon Weapons (Deadfire)
Arbalest Arbalest Arbalests (Deadfire)
Arquebus Arquebus Arquebuses (Deadfire)
Battle axe Battle axe Battle axes (Deadfire)
Blunderbuss Blunderbuss Blunderbusses (Deadfire)
Club Club Clubs (Deadfire)
Crossbow Crossbow Crossbows (Deadfire)
Dagger Dagger Daggers (Deadfire)
Estoc Estoc Estocs (Deadfire)
Flail Flail Flails (Deadfire)
Great sword Great sword Great swords (Deadfire)
Hatchet Hatchet Hatchets (Deadfire)
Hunting bow Hunting bow Hunting bows (Deadfire)
Mace Mace Maces (Deadfire)
Morning star Morning star Morning stars (Deadfire)
Pike Pike Pikes (Deadfire)
Pistol Pistol Pistols (Deadfire)
Pollaxe Pollaxe Pollaxes (Deadfire)
Quarterstaff Quarterstaff Quarterstaffs (Deadfire)
Rapier Rapier Rapiers (Deadfire)
Rod Rod Rods (Deadfire)
Sabre Sabre Sabres (Deadfire)
Scepter Scepter Scepters (Deadfire)
Spear Spear Spears (Deadfire)
Stiletto Stiletto Stilettos (Deadfire)
Sword Sword Swords (Deadfire)
Unarmed Unarmed Unarmed (Deadfire)
Wand Wand Wands (Deadfire)
War bow War bow War bows (Deadfire)
War hammer War hammer War hammers (Deadfire)
Armor
Armor Armor Armor (Deadfire)
Light armor Light armor Armor (Deadfire)#Light armor
Medium armor Medium armor Armor (Deadfire)#Medium armor
Heavy armor Heavy armor Armor (Deadfire)#Heavy armor
Cloth armor Cloth armor Cloth armor (Deadfire)
Hide armor Hide armor Hide armor (Deadfire)
Leather armor Leather armor Leather armor (Deadfire)
Padded armor Padded armor Padded armor (Deadfire)
Breastplate Breastplate Breastplates (Deadfire)
Mail armor Mail armor Mail armor (Deadfire)
Scale armor Scale armor Scale armor (Deadfire)
Brigandine Brigandine Brigandines (Deadfire)
Plate armor Plate armor Plate armor (Deadfire)
Shields
Shield Shield Shields
Small shield Small shield Small shields (Deadfire)
Medium shield Medium shield Medium shields (Deadfire)
Large shield Large shield Large shields (Deadfire)
Accessories
Accessory Accessory Pillars of Eternity II: Deadfire accessories
Amulet, necklace, torc Amulet* Pillars of Eternity II: Deadfire accessories#Amulets
Belt Belt Pillars of Eternity II: Deadfire accessories#Belts
Boots Boots Pillars of Eternity II: Deadfire accessories#Boots
Cape, cloak Cape* Pillars of Eternity II: Deadfire accessories#Cloaks
Bracers, gauntlets, gloves Gloves* Pillars of Eternity II: Deadfire accessories#Handwear
Hat, helm Hat* Pillars of Eternity II: Deadfire accessories#Headgear
Ring Ring Pillars of Eternity II: Deadfire accessories#Rings
Trinket Trinket Pillars of Eternity II: Deadfire accessories#Trinkets
Consumables
Consumable Consumable Pillars of Eternity II: Deadfire consumables
Drink Drink Pillars of Eternity II: Deadfire consumables#Drink
Food Food Pillars of Eternity II: Deadfire consumables#Food
Drug Drug Pillars of Eternity II: Deadfire consumables#Drugs
Unguent Unguent Pillars of Eternity II: Deadfire consumables#Unguents
Figurine Figurine Pillars of Eternity II: Deadfire consumables#Figurines
Potion Potion Pillars of Eternity II: Deadfire consumables#Potions
Scroll Scroll Pillars of Eternity II: Deadfire consumables#Scrolls
Poison Poison Pillars of Eternity II: Deadfire consumables#Poisons
Bomb, Explosive Bomb* Pillars of Eternity II: Deadfire consumables#Bomb
Wardstone Wardstone Pillars of Eternity II: Deadfire consumables#Wardstones
Trap Trap Pillars of Eternity II: Deadfire consumables#Traps
Ingredients
Ingredient Ingredient Pillars of Eternity II: Deadfire crafting#Ingredients
Monster part Monster part Pillars of Eternity II: Deadfire crafting#Monster parts
Plant Plant Pillars of Eternity II: Deadfire crafting#Plants
Gem Gem Pillars of Eternity II: Deadfire crafting#Gems
Component Component Pillars of Eternity II: Deadfire crafting#Components
Books and documents
Book Book Books
Document Document Documents
Journal Journal Journals
Letter Letter Letter
Note Note Notes
Other items
Other item Other item Pillars of Eternity II: Deadfire other items
Grimoire Grimoire Pillars of Eternity II: Deadfire grimoires
Pet Pet Pillars of Eternity II: Deadfire pets
Key Key Keys
Triumph Triumph Ship upgrades#Triumphs
Tool Tool Tools
Quest item Quest item Pillars of Eternity II: Deadfire quest items
Invalid output
swodr Invalid item type! See Template:Item type poe2 for more info.

* Varies depending on the input.