[dismiss]
The wiki is currently a work in progress. If you'd like to help out, please check the Community Portal and our getting started guide. Also, check out our sister project on poewiki.net.
Template:Item/doc: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
==Usage== | |||
{{tlx|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 <code>Name</code> are optional. They can be excluded or left blank. | |||
; <code>Name</code> : The name of the item | |||
; <code>PageName</code> : The name of the item's wiki page, if different than <code>Name</code>. | |||
; <code>Image</code> : File name of the item graphic. | |||
; <code>Rarity</code> : The infobox frame to use. Possible values are: <code>Normal</code>, <code>Magic</code>, <code>Rare</code>, <code>Unique</code>, <code>Currency</code>, <code>Quest</code>, and <code>Gem</code>. Defaults to <code>Normal</code>. | |||
; <code>Type</code> : The item's type, for formatting purposes. Possible values are: <code>Weapon</code>, <code>Armour</code>, <code>Accessory</code>, <code>Map</code>, and <code>Currency</code>. | |||
; <code>Subtype</code> : The item's sub-type. Possible values are, but not limited to: <code>Axe</code>, <code>Staff</code>, <code>Gloves</code>, <code>Body Armour</code>, and <code>Ring</code>. | |||
; <code>BaseItem</code> : The base item name, for rares and uniques. | |||
; <code>RequiredLevel</code> : The item's level requirement. | |||
; <code>RequiredStrength</code> : The item's strength requirement. | |||
; <code>RequiredDexterity</code> : The item's dexterity requirement. | |||
; <code>RequiredIntelligence</code> : The item's intelligence requirement. | |||
; <code>PhysicalDamage</code> : The weapon's physical damage. | |||
; <code>CriticalStrikeChance</code> : The weapon's critical strike chance. | |||
; <code>AttacksperSecond</code> : The weapon's attacks per second. | |||
; <code>ElementalDamage</code> : The weapon's elemental damage. | |||
; <code>Armour</code> : The armour's armour value. | |||
; <code>Evasion</code> : The armour's evasion rating. | |||
; <code>EnergyShield</code> : The armour's energy shield value. | |||
; <code>Block</code> : The shield's block chance. | |||
; <code>MapLevel</code> : The map's level. | |||
; <code>ItemQuantity</code> : The map's item quantity value modifier. | |||
; <code>StackSize</code> : The currency item's maximum stack size. | |||
; <code>ImplicitMods</code> : The item's implicit mods. Separate each mod with a colon (:). | |||
; <code>RandomMods</code> : The item's random mods. Separate each mod with a colon (:). | |||
; <code>Cosmetic</code> : The item's cosmetic mods. Separate each mod with a colon (:). | |||
; <code>FlavourText</code> : The item's flavour text. Line breaks must be manually distinguished with a colon (:). | |||
; <code>HelpText</code> : The item's help text. Line breaks must be manually distinguished with a colon (:). | |||
====Ranges==== | |||
===Ranges=== | |||
Ranges occur in weapon damage, implicit mods, random mods and item stats that are effected by mods with ranges. | Ranges occur in weapon damage, implicit mods, random mods and item stats that are effected by mods with ranges. | ||
Line 26: | Line 46: | ||
: As above however replace each side of the hyphen with '''(min-max)''' and wrap physical values in <nowiki>{{mod}}</nowiki>. For example: '''<nowiki>{{mod|(10-15)-(20-30)}}</nowiki>''' | : As above however replace each side of the hyphen with '''(min-max)''' and wrap physical values in <nowiki>{{mod}}</nowiki>. For example: '''<nowiki>{{mod|(10-15)-(20-30)}}</nowiki>''' | ||
== | ===Templates=== | ||
Copy and paste a code template to get started. | |||
=== | ====Weapon==== | ||
<nowiki> | |||
<!-- 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]] | |||
[[Category: | |||
</noinclude><!-- Please do not add anything below this --> | </noinclude><!-- Please do not add anything below this --> | ||
</nowiki> | </nowiki> | ||
=== | ====Armour==== | ||
<nowiki> | <nowiki> | ||
<!-- Please do not add anything above this | <!-- Please do not add anything above this | ||
-->{{Item | View={{{View|}}} | -->{{Item | View={{{View|}}} | Format={{{Format|}}} | ||
|Name = | | Name = Scholar's Robe | ||
|PageName = | | PageName = | ||
|Image = | | Image = ScholarsRobe.png | ||
| Rarity = Normal | |||
|Rarity = | | Type = Armour | ||
|Type = | | Subtype = Body Armour | ||
| | | RequiredLevel = 18 | ||
| RequiredStrength = | |||
|RequiredLevel = | | RequiredDexterity = | ||
| | | RequiredIntelligence = 55 | ||
|RequiredDexterity = | | Armour = | ||
| | | Evasion = | ||
| EnergyShield = 41 | |||
| | | ImplicitMods = | ||
| | }}<noinclude><!-- | ||
| | Additional page content should be placed below this line --> | ||
| | |||
}}<noinclude> | |||
<!-- | |||
[[Category:Body armours]] | |||
</noinclude><!-- Please do not add anything below this --> | </noinclude><!-- Please do not add anything below this --> | ||
</nowiki> | </nowiki> | ||
=== | ====Unique Amulet==== | ||
<nowiki> | <nowiki> | ||
<!-- Please do not add anything above this | <!-- Please do not add anything above this | ||
-->{{Item | View={{{View|}}} | -->{{Item | View={{{View|}}} | Format={{{Format|}}} | ||
|Name = | | Name = Araku Tiki | ||
|PageName = | | PageName = | ||
|Image = | | Image = ArakuTiki.png | ||
| Rarity = Unique | |||
|Rarity = Unique | | Type = Accessory | ||
|Type = | | 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 | |||
|RequiredLevel = | | 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 --> | |||
|RandomMods = + | |||
|FlavourText = | |||
}}<noinclude> | |||
<!-- | |||
{{Navbox Unique Items}} | {{Navbox Unique Items}} | ||
[[Category:Unique | [[Category:Unique amulets]] | ||
</noinclude><!-- Please do not add anything below this --> | </noinclude><!-- Please do not add anything below this --> | ||
</nowiki> | </nowiki> | ||
<includeonly> | <includeonly> | ||
{{list subpages}} | |||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | <!-- CATEGORIES AND INTERWIKIS HERE, THANKS --> | ||
[[Category:Item templates]] | [[Category:Item templates]] | ||
</includeonly> | </includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Revision as of 00:06, 3 April 2013
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.
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 infobox frame to use. Possible values are:
Normal
,Magic
,Rare
,Unique
,Currency
,Quest
, andGem
. Defaults toNormal
. Type
- The item's type, for formatting purposes. Possible values are:
Weapon
,Armour
,Accessory
,Map
, andCurrency
. Subtype
- The item's sub-type. Possible values are, but not limited to:
Axe
,Staff
,Gloves
,Body Armour
, andRing
. 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.
CriticalStrikeChance
- The weapon's critical strike chance.
AttacksperSecond
- The weapon's attacks per second.
ElementalDamage
- The weapon's elemental damage.
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 -->