Template:Item icon/doc
Summary
Use this template to display an icon next to a page link. This template assumes that each page has an icon uploaded at a specific location, namely "File:Page Name (Item).png".
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Page Name | 1 page | The name for the target page.
| Page name | required |
| Link Label | 2 label | The text to the be displayed on the link icon's label.
| Line | optional |
Examples
For the examples below, File:Mystic Feather (Item).png was used as the icon for a page called Mystic Feather.
| Code | Result |
|---|---|
{{Item icon|Mystic Feather}} |
Mystic Feather}}{{#vardefine:display|Mystic Feather}}{{#vardefine:iconSize|1.2em}}{{#vardefine:lineHeight|1lh}}{{#vardefine:fileExists|}} |
{{Item icon|Mystic Feather|Mystic Feathers}} |
Mystic Feather}}{{#vardefine:display|Mystic Feathers}}{{#vardefine:iconSize|1.2em}}{{#vardefine:lineHeight|1lh}}{{#vardefine:fileExists|}} |
{{Item icon|Mystic Feather|notext}} |
Mystic Feather}}{{#vardefine:display|notext}}{{#vardefine:iconSize|1.2em}}{{#vardefine:lineHeight|1lh}}{{#vardefine:fileExists|}} |
{{Item icon|Missing Item}} (Missing Page Icon) |
Missing Item}}{{#vardefine:display|Missing Item}}{{#vardefine:iconSize|1.2em}}{{#vardefine:lineHeight|1lh}}{{#vardefine:fileExists|}} |
Dependencies
For this template to work properly, you need the following:
- The base {{Link icon}} template.
- The
.link-iconclass and any related classes, found in MediaWiki:Common.css.