Template:Item icon link: Difference between revisions
Jump to navigation
Jump to search
>Illviljan m (Illviljan moved page Template:Simple item link to Template:Item icon link without leaving a redirect) |
(html parameter should be an empty string) |
||
Line 5: | Line 5: | ||
|inventory_icon = File:{{{item_name | {{{1}}} }}} inventory icon.png | |inventory_icon = File:{{{item_name | {{{1}}} }}} inventory icon.png | ||
|skip_query = true | |skip_query = true | ||
|html = | |html = | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Revision as of 01:42, 20 September 2020
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 .
|
The above documentation is transcluded from Template:Item icon link/doc.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox and testcases pages.
Please add categories to the /doc subpage. Subpages of this template.