Template:Item/doc
Appearance
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 |
This template uses Module:Item, a script written in Lua.
This template uses CSS found at MediaWiki:Gadget-Item.css.
Template that adds a link to icons.
Syntax
{{Item}}
This template has 2 unnamed parameters:
- 1 / name – Name of the item.
- 2 / size – Size of the icon. 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.
- 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
{{Item}}
Unknown
{{Item|Kabuto Beetle}}
{{Item|Kabuto Beetle|size=50}}
{{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
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.
| 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 |
| 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 |