Template:Item: Difference between revisions
ReisuDesign (talk | contribs) Created page with "<includeonly>{{#invoke:Item|main}}</includeonly><noinclude>{{Documentation|type=Image}}</noinclude>" |
mNo edit summary Tag: Manual revert |
| (One intermediate revision by the same user not shown) | |
(No difference)
| |
Latest revision as of 15:49, 25 November 2025
Note: parts of or the entire template might not be visible without values provided.
| Main | Documentation | Usage |
Template that adds a link to icons.
Syntax
[edit source]{{Item}}
This template has 2 unnamed parameters:
- 1 / name – Name of the item.
- 2 / size – Size of the icon excluding the length unit. Default: 30.
- x / count – Quantity of the item.
- type – Special keyword to adjust the file's suffix and prefix.
- link – Set another page to be linked.
- text – Display another text instead of the name of the item.
- no_text – Set to 1 to omit the complete text.
- invert – Set to apply a filter to the image for either day/light or night/dark mode. Available values:
- Default – See: Module:Item/Invert.
- Day – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode.
- Night – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode.
- note – Append a note after the item text and count.
- ref – Append a reference to the item text.
- comma – Set to 1 to append a comma to the item text following AmE rules.
- dot – Set to 1 to append a dot to the item text following AmE rules.
- comma_spc – Set to 1 to append a comma and a space to the item text following AmE rules.
- dot_spc – Set to 1 to append a dot and a space to the item text following AmE rules.
Examples
[edit source]
{{Item}}
Unknown
{{Item|Kabuto Beetle}}
{{Item|Kabuto Beetle|size=64}}
{{Item|Kabuto Beetle|link=Insect|text=Custom text}}
{{Item|Dough|x=15|no_text=1}}
{{Item|Hexia|note=Galaxy}}
Hexia (Galaxy)
{{Item|Elsasani|text="Sani"|dot=1}}
Template Data
[edit source]Template that adds a link to icons.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Item | 1 name | Name of the item.
| String | required |
| Size | 2 size | Size of the icon excluding the length unit.
| Number | optional |
| Quantity | x count | Quantity of the item.
| Number | optional |
| Type | type | Special keyword to adjust the file's suffix and prefix.
| String | optional |
| Link | link | Set another page to be linked.
| Page name | optional |
| No text | no_text | Set to 1 to omit the complete text.
| Boolean | optional |
| Invert | invert | Set to apply a filter to the image for either day/light or night/dark mode.
| String | optional |
| Note | note | Append a note after the item text and count. | String | optional |
| Reference | ref | Append a reference to the item text. | String | optional |
| Comma | comma | Set to 1 to append a comma to the item text following AmE rules.
| Boolean | optional |
| Dot | dot | Set to 1 to append a dot to the item text following AmE rules.
| Boolean | optional |
| Comma and space | comma_spc | Set to 1 to append a comma and a space to the item text following AmE rules.
| Boolean | optional |
| Dot and space | dot_spc | Set to 1 to append a dot and a space to the item text following AmE rules.
| Boolean | optional |