Template:Item icon: Difference between revisions
Jump to navigation
Jump to search
dlw>RheingoldRiver No edit summary |
Verdite cat (talk | contribs) m 1 revision imported |
(No difference)
|
Latest revision as of 18:53, 12 September 2024
Template documentation follows |
---|
Note: the template above may sometimes be partially or fully invisible. |
Visit Template:Item_icon/doc to edit this documentation. (How does this work?) |
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}} |
|
{{Item icon|Mystic Feather|Mystic Feathers}} |
|
{{Item icon|Mystic Feather|notext}} |
|
{{Item icon|Missing Item}} (Missing Page Icon) |
Dependencies
For this template to work properly, you need the following:
- The base
{{Link icon}}
template. - The
.link-icon
class and any related classes, found in MediaWiki:Common.css.