Template:Item/doc: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
(→‎Parameters: ChaosDamage param)
mNo edit summary
Line 168: Line 168:


<includeonly>
<includeonly>
{{list subpages}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Item templates]]
[[Category:Item templates]]
</includeonly>
</includeonly>

Revision as of 21:10, 30 June 2013

This subpage provides documentation for Template:Item.

This template is used on a large number of pages.

To avoid major disruption and server load, do not make unnecessary edits to this template. Test changes to this template first using its /sandbox and /testcases subpages . All of the changes can then be applied to this template in a single edit.

Consider discussing changes on the talk page or on Discord before implementing them.

Template:Intricate template

Usage

{{Item}} is used on item pages to show the item's infobox. This setup also allows an item pages' data to be transcluded on other pages and formatted in various ways such as in a table.

Parameters

All parameters except for Name are optional. They can be excluded or left blank.

Parameter Description
Name The name of the item
PageName The name of the item's wiki page, if different than Name.
Image File name of the item graphic.
Rarity The rarity of the item. Only applies to weapons, armour, accessories, flasks, and maps. Possible values are: Normal, Magic, Rare, and Unique. Defaults to Normal.
Type The item's type, for formatting purposes. Possible values are: Weapon, Armour, Accessory, Flask, Map, Currency, and Quest.
Subtype The item's sub-type. Possible values are, but not limited to: Axe, Staff, Gloves, Body Armour, and Ring.
BaseItem The base item name, for rares and uniques.
RequiredLevel The item's level requirement.
RequiredStrength The item's strength requirement.
RequiredDexterity The item's dexterity requirement.
RequiredIntelligence The item's intelligence requirement.
PhysicalDamage The weapon's physical damage.
FireDamage The weapon's fire damage.
ColdDamage The weapon's cold damage.
LightningDamage The weapon's lightning damage.
ChaosDamage The weapon's chaos damage.
CriticalStrikeChance The weapon's critical strike chance.
AttacksPerSecond The weapon's attacks per second.
Armour The armour's armour value.
Evasion The armour's evasion rating.
EnergyShield The armour's energy shield value.
Block The shield's block chance.
MapLevel The map's level.
ItemQuantity The map's item quantity value modifier.
StackSize The currency item's maximum stack size.
ImplicitMods The item's implicit mods. Separate each mod with a colon (:).
RandomMods The item's random mods. Separate each mod with a colon (:).
Cosmetic The item's cosmetic mods. Separate each mod with a colon (:).
FlavourText The item's flavour text. Line breaks must be manually distinguished with a colon (:).
HelpText The item's help text. Line breaks must be manually distinguished with a colon (:).

Ranges

Ranges occur in weapon damage, implicit mods, random mods and item stats that are effected by mods with ranges.

When using the Item template with ranges please follow these guidelines.

Ranged Implicit and Random Mods
Wrap the range with parenthesis and separate with a hyphen. For example: (50-80)% Increased Armour
Ranged Physical and Elemental Damages
Separate the min and max with a hyphen. For example: 235-368
Ranged Modded Damages
As above however replace each side of the hyphen with (min-max) and wrap physical values in {{mod}}. For example: {{mod|(10-15)-(20-30)}}

Templates

Copy and paste a code template to get started.

Weapon

 
<!-- Please do not add anything above this 
-->{{Item | View={{{View|}}} | Format={{{Format|}}}
| Name                   = Driftwood Wand
| PageName               = 
| Image                  = DriftwoodWand.png
| Rarity                 = Normal
| Type                   = Weapon
| Subtype                = Wand
| RequiredLevel          = 
| RequiredStrength       = 
| RequiredDexterity      = 
| RequiredInteligence    = 
| PhysicalDamage         = 4-7
| CriticalStrikeChance   = 8%
| AttacksPerSecond       = 1.3
| ImplicitMods           = (8-12)% increased Spell Damage
}}<noinclude><!-- 
Additional page content should be placed below this line -->



[[Category:Wands]]
</noinclude><!-- Please do not add anything below this -->
  

Armour

 
<!-- Please do not add anything above this
-->{{Item | View={{{View|}}} | Format={{{Format|}}}
| Name                   = Scholar's Robe
| PageName               = 
| Image                  = ScholarsRobe.png
| Rarity                 = Normal
| Type                   = Armour
| Subtype                = Body Armour
| RequiredLevel          = 18
| RequiredStrength       = 
| RequiredDexterity      = 
| RequiredIntelligence   = 55
| Armour                 = 
| Evasion                = 
| EnergyShield           = 41
| ImplicitMods           = 
}}<noinclude><!-- 
Additional page content should be placed below this line -->



[[Category:Body armours]]
</noinclude><!-- Please do not add anything below this -->
  

Unique Amulet

 
<!-- Please do not add anything above this
-->{{Item | View={{{View|}}} | Format={{{Format|}}}
| Name                   = Araku Tiki
| PageName               = 
| Image                  = ArakuTiki.png
| Rarity                 = Unique
| Type                   = Accessory
| Subtype                = Amulet
| RequiredLevel          = 18
| ImplicitMods           = (2.0-4.0) Life Regenerated per second
| RandomMods             = You gain 100 Evasion Rating when on Low Life : +(30-50) to maximum Life : +(20-30)% to Fire Resistance : 1.0% of Life Regenerated per Second while on Low Life
| FlavourText            = It is said to make you invisible when the Great : Spirit comes to take you on your final journey.
}}<noinclude><!-- 
Additional page content should be placed below this line -->



{{Navbox Unique Items}}

[[Category:Unique amulets]]
</noinclude><!-- Please do not add anything below this -->