Template:Item link/doc: Difference between revisions
(Il is a template shortcut) |
(→Output overrides: Description and usage of the name parameter) |
||
Line 62: | Line 62: | ||
| name | | name | ||
| str | | str | ||
| | | This parameter can be used to specify different link text than the item name. This should be used mainly for grammatical purposes. If the link text is significantly different than the item name, consider using a normal wikilink instead of this template. | ||
|- | |- | ||
| large | | large |
Revision as of 09:37, 9 November 2017
This subpage provides documentation for Template:Item link.
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 than 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 | This parameter can be used to specify different link text than the item name. This should be used mainly for grammatical purposes. If the link text is significantly different than the item name, consider using a normal wikilink instead of this template. |
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). |
image | str or int | This can be used to link against an alternate art version of an item.
Depending on which type is supplied:
|
html | str | HTML to use for the itembox |
inventory_icon | str | File to use for the inline icon link |
Examples
Basic Usage
{{Item link |page=Two-Stone Ring (ruby and topaz) }}
Yields:
Module Error: No results found for item using search term "page = Two-Stone Ring (ruby and topaz)"
{{Item link |item_name=Pierce }}
Yields:
Module Error: No results found for item using search term "item_name = Pierce"
Large icons
{{Item link |item_name=Pierce |large=yes }}
Yields:
Module Error: No results found for item using search term "item_name = Pierce"