Template:Item: Difference between revisions
From Project Nakagami
(Created page with "<includeonly>{{#invoke:ItemIcon|AddSpritePredef}}</includeonly><noinclude> Shows an item icon, along with its name. Links to the relevant page. = Parameters = The following parameters are supported: {| class="wikitable" |- ! scope="col"| Parameter ! scope="col"| Use ! scope="col"| Default |- | (1st) or <code>item</code> | The name of the item to show. Names are defined in Module:ItemIconData | none |- | (2nd) or <code>format</code> | The format type to use, must be...") |
(No difference)
|
Latest revision as of 05:53, 16 August 2024
Shows an item icon, along with its name. Links to the relevant page.
Parameters
The following parameters are supported:
| Parameter | Use | Default |
|---|---|---|
(1st) or item
|
The name of the item to show. Names are defined in Module:ItemIconData | none |
(2nd) or format
|
The format type to use, must be one of the items listed below | inline
|
link
|
Overrides the default link. Accepts an internal link (like Fluxduct), or an external link. Please consider if it makes sense to instead update the default in Module:ItemIconData instead.
|
The link defined in Module:ItemIconData, otherwise just an internal link to the item's name |
Examples
{{Item|minecraft:apple#0}} becomes Apple
{{Item|minecraft:cake#0|icon|link=Main_Page}} becomes
Formats
inline
Example:
Intended uses:
itemtable
Example:
Intended uses:
- Within an itemtable:
icon
Example:
Intended uses:
- When just the icon is desired