Template:Item thumbnail/doc: Difference between revisions

Template page
Content added Content deleted
(added better documentation)
mNo edit summary
 
(One intermediate revision 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 thumbnail}} {{Uses TemplateStyles|Template:Item thumbnail/styles.css}} {{Cargo|items}}


== Parameters ==
== Parameters ==
Line 16: Line 16:
"count": {
"count": {
"type": "number",
"type": "number",
"required": true,
"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",
"suggested": true
},
},
"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|count=1}}
{{Item thumbnail|item=Pure crystal of feeling}}
</pre>
</pre>

Latest revision as of 02:48, 1 September 2023

Parameters[edit source]

Displays the thumbnail of an item with the count in the bottom right hand corner.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Itemitem

The name of the item.

Example
Crystal
Stringsuggested
Countcount

The count associated with this thumbnail. Use "1" to not show anything.

Default
1
Example
1
Numbersuggested
Imageimage

The image used for the thumbnail. Automatically set if there is a valid item.

Example
Crystal.png
Stringoptional
Page linklink

The page this thumbnail links to. Automatically set if there is a valid item.

Example
Virtual coin
Page nameoptional
Thumbnail sizesize

The size of the thumbnail. The default size is "80px".

Example
64px
Stringoptional

Quick copy[edit source]

{{Item thumbnail
|item  =
|count =
|image =
|link  =
|size  =
}}

Examples[edit source]

Crystal
×100
Cool piece
×1000
Pure crystal of feelings
{{Item thumbnail|item=Crystal|count=100}}
{{Item thumbnail|item=Cool piece|count=1000}}
{{Item thumbnail|item=Pure crystal of feeling}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.