Content added Content deleted
m (ChaoticShadow moved page Template:Item Icon/doc to Template:Item icon/doc without leaving a redirect) |
mNo edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{documentation subpage}} |
{{documentation subpage}} |
||
{{Lua|Module:Item thumbnail}} {{Uses TemplateStyles|Template:Item thumbnail/styles.css}} {{Cargo|items}} |
|||
{{Lua|Module:Item Icon}} |
|||
== |
== Parameters == |
||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"item": { |
|||
"type": "string", |
|||
"suggested": true, |
|||
"label": "Item", |
|||
"description": "The name of the item.", |
|||
"example": "Crystal" |
|||
}, |
|||
"count": { |
|||
"type": "number", |
|||
"label": "Count", |
|||
"description": "The count associated with this thumbnail. Use \"1\" to not show anything.", |
|||
"example": "1", |
|||
"default": "1", |
|||
"suggested": true |
|||
}, |
|||
"image": { |
|||
"type": "string", |
|||
"label": "Image", |
|||
"description": "The image used for the thumbnail. Automatically set if there is a valid item.", |
|||
"example": "Crystal.png" |
|||
}, |
|||
"link": { |
|||
"type": "wiki-page-name", |
|||
"label": "Page link", |
|||
"description": "The page this thumbnail links to. Automatically set if there is a valid item.", |
|||
"example": "Virtual coin" |
|||
}, |
|||
"size": { |
|||
"type": "string", |
|||
"label": "Thumbnail size", |
|||
"description": "The size of the thumbnail. The default size is \"80px\".", |
|||
"example": "64px" |
|||
} |
|||
}, |
|||
"format": "inline", |
|||
"description": "Displays the thumbnail of an item with the count in the bottom right hand corner." |
|||
} |
|||
</templatedata> |
|||
== Quick copy == |
|||
<pre> |
<pre> |
||
{{Item |
{{Item thumbnail |
||
|item = |
|item = |
||
|count = |
|count = |
||
|image = |
|image = |
||
|link = |
|link = |
||
|size = |
|||
}} |
|||
</pre> |
|||
== Examples == |
|||
<div style="margin-top: 0.8rem; margin-bottom: 0.8rem; display: grid; grid-gap: 15px; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));"> |
|||
{{Item thumbnail|item=Crystal|count=100}} |
|||
{{Item thumbnail|item=Cool piece|count=1000}} |
|||
{{Item thumbnail|item=Pure crystal of feelings|count=1}} |
|||
</div> |
|||
<pre> |
|||
{{Item thumbnail|item=Crystal|count=100}} |
|||
{{Item thumbnail|item=Cool piece|count=1000}} |
|||
{{Item thumbnail|item=Pure crystal of feeling}} |
|||
</pre> |
</pre> |
Latest revision as of 02:48, 1 September 2023
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[edit source]
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[edit source]
{{Item thumbnail |item = |count = |image = |link = |size = }}
Examples[edit source]
{{Item thumbnail|item=Crystal|count=100}} {{Item thumbnail|item=Cool piece|count=1000}} {{Item thumbnail|item=Pure crystal of feeling}}