Template:Item/doc: Difference between revisions
Added "invert" parameter that can apply an invert filter on the icon for either light or dark mode |
No edit summary |
||
| Line 17: | Line 17: | ||
* {{F|no_text}} – Set to {{F|1}} to omit the complete text. | * {{F|no_text}} – Set to {{F|1}} to omit the complete text. | ||
* {{F|invert}} – Set to apply a filter to the image for either day/light or night/dark mode. Available values: | * {{F|invert}} – Set to apply a filter to the image for either day/light or night/dark mode. Available values: | ||
** Default – See: [[Module:Item/Invert]]. | |||
** {{F|Day}} – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode. | ** {{F|Day}} – Invert the image in day/light mode. Will invert light-colored icons to gray in day/light mode. | ||
** {{F|Night}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode. | ** {{F|Night}} – Invert the image in night/dark mode. Will invert dark-colored icons to white in night/dark mode. | ||
| Line 32: | Line 33: | ||
{{Example|no_copy=1|<nowiki>{{Item|Kabuto Beetle|link=Insect|text=Custom text}}</nowiki>}} | {{Example|no_copy=1|<nowiki>{{Item|Kabuto Beetle|link=Insect|text=Custom text}}</nowiki>}} | ||
{{Example|no_copy=1|<nowiki>{{Item|Dough|x=15|no_text=1}}</nowiki>}} | {{Example|no_copy=1|<nowiki>{{Item|Dough|x=15|no_text=1}}</nowiki>}} | ||
{{Example|no_copy=1|<nowiki>{{Item|Hexia | {{Example|no_copy=1|<nowiki>{{Item|Hexia|note=Galaxy}}</nowiki>}} | ||
{{Example|no_copy=1|<nowiki>{{Item|Elsasani|text="Sani"|dot=1}}</nowiki>}} | {{Example|no_copy=1|<nowiki>{{Item|Elsasani|text="Sani"|dot=1}}</nowiki>}} | ||
Latest revision as of 14:32, 11 May 2026
This is the documentation page for Item. It contains usage information, categories, and other content not part of the original template page. | ||
|---|---|---|
| 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 |