Template:Item icon link/doc: Difference between revisions
Jump to navigation
Jump to search
(category) |
>Vinifera7 mNo edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Documentation subpage}} | ||
{{ | {{Lua|Module:Item link}} | ||
{{ | {{Template shortcut|iil}} | ||
Wrapper for {{tlx|Item link}} to add icons to text and enlarges the icon when hoovered over. No queries are made. | Wrapper for {{tlx|Item link}} to add icons to text and enlarges the icon when hoovered over. No queries are made. | ||
Line 26: | Line 26: | ||
| str | | str | ||
| Which pages to link to, by default the item page. | | Which pages to link to, by default the item page. | ||
|- | |||
| inventory_icon | |||
| str | |||
| The file to use as the inventory icon. Defaults to <code>File:<var>item_name</var> inventory icon.png</code>. | |||
|} | |} | ||
< | {{Documentation categories| | ||
<!-- Categories and interwikis go here. --> | |||
[[Category:Link formatting templates]] | [[Category:Link formatting templates]] | ||
[[Category:Item templates]] | [[Category:Item templates]] | ||
[[de:Vorlage:Item icon link]] | [[de:Vorlage:Item icon link]] | ||
}} |
Latest revision as of 21:56, 2 December 2020
This subpage provides documentation for Template:Item icon link.
Wrapper for {{Item link}}
to add icons to text and enlarges the icon when hoovered over. No queries are made.
Parameters
All of these are optional and can be used to customize the item link.
Parameter | Value | Description |
---|---|---|
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. |
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. |
link | str | Which pages to link to, by default the item page. |
inventory_icon | str | The file to use as the inventory icon. Defaults to File:item_name inventory icon.png .
|