Difference between revisions of "Item info"

m (test category)
m
Line 5: Line 5:
 
if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized
 
if a name parameter is given, it is assumed that the template isn't on the item's main article, therefore it isn't categorized
 
-->{{#vardefine:typeText|{{#switch:{{lc:{{{category|}}}}}
 
-->{{#vardefine:typeText|{{#switch:{{lc:{{{category|}}}}}
|armor=[[Armor]]
+
|armor=[[Armor]][[Category:Armor]]
|artifacts=[[Artifact]]
+
|artifacts=[[Artifact]][[Category:Artifacts]]
|chips=[[Chip]]
+
|chips=[[Chip]][[Chips]]
|consumables=[[Consumable]][[Category:Testing]]
+
|consumables=[[Consumable]][[Category:Consumables]]
|crafting materials=[[Crafting Material]]
+
|crafting materials=[[Crafting Material]][[Category:Crafting Materials]]
|quest items=[[Quest Item]]
+
|quest items=[[Quest Item]][[Category:Quest Items]]
|raw materials=[[Raw Material]]
+
|raw materials=[[Raw Material]][[Category:Raw Materials]]
|runes=[[Rune]]
+
|runes=[[Rune]][[Category:Runes]]
|weapons=[[Weapon]]
+
|weapons=[[Weapon]][[Category:Weapons]]
 
}}}}<!--
 
}}}}<!--
-->{{#if:{{{name|}}}<!-- if a name parameter is not given
 
-->||{{#if:{{#var:typeText}}<!-- if the type is correct (i.e. typeText exists)
 
-->|[[Category:{{sc|{{{category}}}}}]]}}}}<!-- add to category
 
  
 
quests
 
quests

Revision as of 11:14, 31 August 2023

Description

Displays an information page about an item.

Usage

{{Item info|<icon=icon>|<name=name>|<tooltip=tooltip>|<description=description>|<tier=I>|<stats=28 Weapon Damage>|<duration=120>|<level=1>|<mastery=Destroyer>|<value=1>|<category=category>|<quests=Quest 1; Quest 2>}}

Parameters

Arrow.pngicon: An image of the item.
Optional. Defaults to '{{PAGENAME}}.png'.
Notes: Only use if the icon name differs from the name of the page.
Arrow.pngchange: Displays a note stating that the Item's appearance may change.
Optional.
Notes: Set to any value to enable.
Arrow.pngname: The name of the item.
Optional. Defaults to '{{PAGENAME}}'.
Notes: Only use if the template is on a different page to the item's main article.
Arrow.pngbinding: The binding of the item.
Optional.
Notes: Only use if the item is bound. Choose between 'equip', 'pickup', or a custom binding.
Arrow.pngtooltip: The tooltip text that appears upon hovering over the item.
Optional.
Arrow.pngdescription: A description of the item.
Optional.
Arrow.pngquality: The item's quality.
Optional.
Notes: Input ranges of qualities with '[quality1]-[quality2]'.
Arrow.pngtier: The item's tier.
Optional.
Notes: In roman numerals.
Arrow.pngstats: A comma-separated list of the item's stat values and names.
Optional.
Notes: e.g. '[stat1]: [value1], [stat2]: [value2], etc.'
Arrow.pngduration: The duration, in seconds, of the item's effect.
Required.
Arrow.pngsatiety effect: A comma-separated list of the item's satiety effect stat values and names.
Optional.
Notes: e.g. '[value1] [stat1], [value2] [stat2], etc.'
Arrow.pngsatiety duration: The duration, in seconds, of the item's satiety effect.
Required.
Arrow.pnglevel: The player level required for item use.
Optional.
Arrow.pnghero: The hero required for item use.
Optional.
Notes: If the 'mastery' parameter is specified, do not use this parameter.
Arrow.pngmastery: The mastery required for item use.
Optional.
Arrow.pngvalue: The item's selling price when sold to a vendor.
Optional.
Arrow.pngcategory: The item's category.
Optional.

Possible categories:

Armor.
Artifacts.
Chips.
Consumables.
Crafting Materials.
Quest Items.
Raw Materials.
Runes.
Weapons.
Arrow.pngquests: The semicolon-separated names of quests the item is a part of.
Optional.

Errors

No description was provided. Add a description parameter.