Difference between revisions of "Template:ItemCategory"

From Project: Gorgon Wiki
Jump to: navigation, search
(item keyword list added)
Line 4: Line 4:
 
   | {{{2}}}
 
   | {{{2}}}
 
   | {{ #switch: {{{1}}}
 
   | {{ #switch: {{{1}}}
                 |AbilityIngredient =  
+
                 |AbilityIngredient = Ability Ingredients
                 |AbilityRecipe =  
+
                 |AbilityRecipe = Ability Recipes
                 |AdvancedInk =  
+
                 |AdvancedInk = Advanced Inks
                 |Agate =  
+
                 |Agate = Agates
                 |Alchemy =  
+
                 |Alchemy = Alchemy Items
                 |AlchemyIngredient =  
+
                 |AlchemyIngredient = Alchemy Ingredients
                 |AlchemyRecipe =  
+
                 |AlchemyRecipe = Alchemy Recipes
                 |AlchemyRelated =  
+
                 |AlchemyRelated = Alchemy-Related Items
                 |AlcoholBarrel =  
+
                 |AlcoholBarrel = Alcohol Barrels
                 |AlcoholLevel =  
+
                 |AlcoholLevel = Alcohol Levels
                 |AmazingInk =  
+
                 |AmazingInk = Amazing Ink
                 |Amberjack =  
+
                 |Amberjack = Amberjacks
                 |Amethyst =  
+
                 |Amethyst = Amethysts
                 |Amulet =  
+
                 |Amulet = Amulets
                 |AnchorRune =  
+
                 |AnchorRune = Anchor Runes
                 |AncientBook =  
+
                 |AncientBook = Ancient Books
                 |AncientCoin =  
+
                 |AncientCoin = Ancient Coins
                 |AnimalHorn =  
+
                 |AnimalHorn = Animal Horns
                 |AnimalShoes =  
+
                 |AnimalShoes = Animal Shoes
                 |Antique =  
+
                 |Antique = Antiques
                 |Apple =  
+
                 |Apple = Apples
                 |Aquamarine =  
+
                 |Aquamarine = Aquamarines
                 |Armor =  
+
                 |Armor = Pieces of Armor
                 |ArmorOrShield =  
+
                 |ArmorOrShield = Armor and Shields
                 |ArmorPatchKit =  
+
                 |ArmorPatchKit = Armor Patch Kits
 
                 |ArmorPatchKit1 =  
 
                 |ArmorPatchKit1 =  
 
                 |ArmorPatchKit2 =  
 
                 |ArmorPatchKit2 =  
Line 36: Line 36:
 
                 |ArmorPatchKit6 =  
 
                 |ArmorPatchKit6 =  
 
                 |ArmorPatchKit7 =  
 
                 |ArmorPatchKit7 =  
                 |ArmorPatchingOnyx =  
+
                 |ArmorPatchingOnyx = Armor Patching Onyxes
                 |ArmorStake =  
+
                 |ArmorStake = Armor Stakes
 
                 |ArmorStake1 =  
 
                 |ArmorStake1 =  
 
                 |ArmorStake2 =  
 
                 |ArmorStake2 =  
Line 44: Line 44:
 
                 |ArmorStake5 =  
 
                 |ArmorStake5 =  
 
                 |ArmorStake6 =  
 
                 |ArmorStake6 =  
                 |Arrow =  
+
                 |Arrow = Arrows
 
                 |Arrow1 =  
 
                 |Arrow1 =  
 
                 |Arrow2 =  
 
                 |Arrow2 =  
Line 66: Line 66:
 
                 |Arrowhead6 =  
 
                 |Arrowhead6 =  
 
                 |Arrowhead7 =  
 
                 |Arrowhead7 =  
                 |ArtRecipe =  
+
                 |ArtRecipe = Artistry Recipes
                 |Artwork =  
+
                 |Artwork = Works of Art
                 |AstonishingHumanoidSkull =  
+
                 |AstonishingHumanoidSkull = Astonishing Humanoid Skulls
                 |Augment =  
+
                 |Augment = Augments
                 |AugmentationRelated =  
+
                 |AugmentationRelated = Augmentation-Related Items
                 |AugmentedMantisClaw =  
+
                 |AugmentedMantisClaw = Augmented Mantis Claws
                 |AutoCleanUp =  
+
                 |AutoCleanUp = Automatically Cleaned Items
                 |AutopsyBasic =  
+
                 |AutopsyBasic = Autopsy Kits
                 |Azurite =  
+
                 |Azurite = Azurites
 
                 |Bacon =  
 
                 |Bacon =  
 
                 |BaconBasket =  
 
                 |BaconBasket =  

Revision as of 17:29, 30 August 2020


Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]


Description

Used for those of us who have trouble remembering the correct syntax to link to a category page, or to save a little typing by using a default display link text provided by a lookup table. It creates a link to an item category page.

Syntax

{{ItemCategory|<Item Category Keyword>|<Display Text>}}

Parameters

First parameter (required): The Keyword for the Item Category, as found in items.json in the public data.

Second parameter (optional): The link text you wish to be displayed. If omitted this is selected automatically via a lookup table. It will be the plural form of the Item Category, in plain english, in most cases.

Examples

Code Result
{{ItemCategory|MagicOil}}
Magic Oil
{{ItemCategory|MagicOil|Oils which have magical properties}}
Oils which have magical properties
{{ItemCategory|Armor}}
Pieces of Armor
{{ItemCategory|Apple}}
Apples
The above text is transcluded from Template:ItemCategory/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:ItemCategory/doc. (View all subpages of this page.)