Content added Content deleted
(added better documentation) |
(updated documentation to match param behavior change) |
||
Line 16: | Line 16: | ||
"count": { |
"count": { |
||
"type": "number", |
"type": "number", |
||
⚫ | |||
"label": "Count", |
"label": "Count", |
||
"description": "The count associated with this thumbnail. Use \"1\" to not show anything.", |
"description": "The count associated with this thumbnail. Use \"1\" to not show anything.", |
||
"example": "1" |
"example": "1", |
||
"default": "1", |
|||
⚫ | |||
}, |
}, |
||
"image": { |
"image": { |
||
Line 66: | Line 67: | ||
{{Item thumbnail|item=Crystal|count=100}} |
{{Item thumbnail|item=Crystal|count=100}} |
||
{{Item thumbnail|item=Cool piece|count=1000}} |
{{Item thumbnail|item=Cool piece|count=1000}} |
||
{{Item thumbnail|item=Pure crystal of feeling |
{{Item thumbnail|item=Pure crystal of feeling}} |
||
</pre> |
</pre> |
Revision as of 02:49, 12 July 2022
This is a documentation subpage for Template:Item thumbnail. It contains usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
This template uses TemplateStyles: |
This template uses the following Cargo tables: |
Parameters
Displays the thumbnail of an item with the count in the bottom right hand corner.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | item | The name of the item.
| String | suggested |
Count | count | The count associated with this thumbnail. Use "1" to not show anything.
| Number | suggested |
Image | image | The image used for the thumbnail. Automatically set if there is a valid item.
| String | optional |
Page link | link | The page this thumbnail links to. Automatically set if there is a valid item.
| Page name | optional |
Thumbnail size | size | The size of the thumbnail. The default size is "80px".
| String | optional |
Quick copy
{{Item thumbnail |item = |count = |image = |link = |size = }}
Examples
{{Item thumbnail|item=Crystal|count=100}} {{Item thumbnail|item=Cool piece|count=1000}} {{Item thumbnail|item=Pure crystal of feeling}}