Template:Item icon/doc

From Sword of Moonlight Wiki
Revision as of 18:53, 12 September 2024 by Verdite cat (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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".

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page Name1 page

The name for the target page.

Example
Page Name
Page namerequired
Link Label2 label

The text to the be displayed on the link icon's label.

Example
Alternative Page Name
Lineoptional

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
{{Item icon|Mystic Feather|Mystic Feathers}} ? Mystic Feathers
{{Item icon|Mystic Feather|notext}} ?
{{Item icon|Missing Item}} (Missing Page Icon) ? Missing Item

Dependencies

For this template to work properly, you need the following: