Template:Item icon
Item icon shows a small item icon next to a link to that item's page — a thin wrapper around {{Link icon}} with the type fixed to "Item".
Overview
This template is shorthand for . It renders the icon image <Name> (Item).png followed by a link to the page of that name. If the icon file does not exist it falls back to a small ? placeholder. Pass notext to show only the icon with no text label. Note: this template is not currently used on any live page — it is documented here for completeness.
Parameters
| Parameter | Required? | What it does | Example |
|---|---|---|---|
1 (first unnamed) |
Required | The item page name. Used both as the link target and to build the icon file name <name> (Item).png. |
Magnificat
|
2 (second unnamed) |
Optional | Display text for the link. If omitted, the page name (param 1) is shown. The special value notext hides the text and shows only the icon. |
the Magnificat sceptre
|
How to use
1. Write to get the item's icon plus a link reading "PageName".
2. To show different link text, add it as the second value: .
3. To show the icon alone (no text), use the literal second value notext: .
4. The icon image must be uploaded as <PageName> (Item).png (note the space and parentheses). If it is missing, a small ? placeholder shows instead, so the link still works.
Copy this
{{Item icon|PageName|display text}}Example
{{Item icon|Magnificat|the Magnificat sceptre}}Tips & notes
- Currently unused on live pages; the example is illustrative.
- The icon file naming rule is strict:
<Name> (Item).png, with a literal space before(Item). A missing file degrades gracefully to a?. (This is a different scheme from the item-page image conventionUt-<Name>.png/T#<Type>.pngused inside{{ItemInfobox}}.) - The text-and-icon link points to the page named in param 1; with
notextthe icon itself links there. - This wrapper just sets
type=Itemon{{Link icon}}; its sibling{{Character icon}}does the same withtype=Character. - Depends on the
.link-iconCSS classes in MediaWiki:Common.css.