Template:Item link/doc: Difference between revisions

From Path of Exile 2 Wiki
Jump to navigation Jump to search
>OmegaK2
>OmegaK2
No edit summary
Line 70: Line 70:
| str
| str
| HTML to use for the itembox
| HTML to use for the itembox
|-
| large
| boolean
| If set to true, instead of the small icon in front of the name, a large inventory icon will be shown below the item (suitable for tables).
|}
|}


Line 94: Line 98:
{{Item link
{{Item link
|item_name=Pierce
|item_name=Pierce
}}
===Large icons===
<pre>{{Item link
|item_link=Pierce
|large=yes
}}</pre>
Yields:
{{Item link
|item_name=Pierce
|large=yes
}}
}}



Revision as of 17:39, 11 July 2016

This subpage provides documentation for Template:Item link.

Lua logo

This template uses the following modules:

Semantic Mediawiki based item link. Use this to link items from Template:Item

Overview

Creates a link to an item page that has the item information entered by Template:Item and includes the item info box on hover on the link.

Pages with broken item links with be added to the maintenance category Category:Pages with broken item links.

Parameters

Page selection

Page search

One of these is required. Do not specify more then one.

Parameter Value Description
page str Name of the wiki page to link against
item_name str Name of the item to search for. This will search for alias of the same item (i.e. legacy names) and is case insenitive

This can pose a problem if there are multiple items with the same name (such as Two Stone Rings) - in that case use page instead.

item_name_exact str Exact name of the item to search for. Unlike item_name this is case sensitive and will only search for the current name of the item.

This can pose a problem if there are multiple items with the same name (such as Two Stone Rings) - in that case use page instead.

Filters

Parameter Value Description
link_type nil or skill nil - no restriction

skill - restricts the search to skill gems (i.e. for Template:Sl)

Output overrides

All of these are optional and can be used to customize the item link.

Parameter Value Description
name str Name to display.
inventory_icon str File to use for the inline icon link
html str HTML to use for the itembox
large boolean If set to true, instead of the small icon in front of the name, a large inventory icon will be shown below the item (suitable for tables).

Examples

Basic Usage

{{Item link
|page=Pierce (support gem)
}}

Yields:

PiercePierceProjectile
Tier: 1
Level: 1
Supports Projectile Skills, making their Projectiles Pierce an enemy but deal less damage after doing so.Projectiles from Supported Skills Pierce an Enemy
Projectiles from Supported Skills deal 30% less Damage if they've Pierced an enemy
Place into a Skill's Support Gem socket in the Skills Panel to apply its effects to that Skill. You cannot have multiple copies of the same Support Gem socketed at the same time.

{{Item link
|item_link=Pierce
}}

Yields:

PiercePierceProjectile
Tier: 1
Level: 1
Supports Projectile Skills, making their Projectiles Pierce an enemy but deal less damage after doing so.Projectiles from Supported Skills Pierce an Enemy
Projectiles from Supported Skills deal 30% less Damage if they've Pierced an enemy
Place into a Skill's Support Gem socket in the Skills Panel to apply its effects to that Skill. You cannot have multiple copies of the same Support Gem socketed at the same time.

Large icons

{{Item link
|item_link=Pierce
|large=yes
}}

Yields:

PiercePierceProjectile
Tier: 1
Level: 1
Supports Projectile Skills, making their Projectiles Pierce an enemy but deal less damage after doing so.Projectiles from Supported Skills Pierce an Enemy
Projectiles from Supported Skills deal 30% less Damage if they've Pierced an enemy
Place into a Skill's Support Gem socket in the Skills Panel to apply its effects to that Skill. You cannot have multiple copies of the same Support Gem socketed at the same time.