Template:Item

From Space Station 14 Wiki
(Redirected from Template:Item icon)
Template documentation
view or edit this documentation about template documentation
Uses Lua module
This template uses Lua module:
Uses template styles
This template uses template styles found in:

Examples

Basic

{{item|lv}}

LV cable coil

For items without icons

Info
Not all items have their icons uploaded to the wiki. Such items will only have their label displayed.
Used here is some abstract item without icon.

{{item|foldable}}

foldable

Specifying amount of items

{{item|steel|25}}

steel [25]

More examples

Amount format

{{item|steel|5000}} (no format)
{{item|steel|5000|format amount=1}} (format)

steel [5000] (no format)
steel [5,000] (format)

Custom label

{{item|proto-kinetic accelerator|label=hole-maker}}

hole-maker

Empty label

To remove the label alltogether, pass an empty string to label.

{{item|proto-kinetic accelerator|label=}}

Capitalizing the label

This makes the first letter of the label uppercase.

{{item|proto-kinetic accelerator|capitalize=1}}
or
{{item|proto-kinetic accelerator|cap=1}}

Proto-kinetic accelerator
or
Proto-kinetic accelerator


Capitalizing each word in the label

This makes the first letter in each word inside the label uppercase.

{{item|proto-kinetic accelerator|capitalize all=1}}
or
{{item|proto-kinetic accelerator|cap all=1}}

Proto-kinetic Accelerator
or
Proto-kinetic Accelerator

Custom icon size

{{item|lv|size=64px}}

LV cable coil

Adding links

{{item|Deckard|link=Guns}}

Deckard

Info
Some items have links by default, such as protolathe, so with this option you can override them as you wish.

Composition

Composition defines order of parts that compose an item label: icon, label and amount. Currently, these modes are available:

Composition modes
Mode Usage Result
icon label [amount] (default) {{item|brass|25}} brass [25]
icon amount label {{item|brass|25|composition=icon amount label}} 25 brass

A list of all items with icons

See Template:Item/doc/list of items with icons.

A list of all items

See Template:Item/doc/list_of_items.

Errors

Unknown item

{{item|lorem ipsum honk}}

unknown item 'lorem ipsum honk'

Produces an in-game item icon with a label. The label is the name of that item. Items without icons... will not have icons. See extra parameters for extra spice!

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Item1

What item are you looking for? ID, name or a custom alias? Use whatever you wish! Any casing is allowed, including lowercase.

Example
lv coil
Linerequired
Amount2

Amount of item. By default has no amount. Arbitrary strings are allowed, though this disables and formatting and special lookups.

Example
3 / 3-5
Numbersuggested
Format amountformat amount

Whether to format the amount (eg adding commas).

Auto value
0
Booleansuggested
Sizesize

Icon size

Default
32px
Linesuggested
Labellabel l

Label override.

Linesuggested
Capitalizecapitalize cap

Makes the first letter in the label uppercase.

Default
0
Booleansuggested
Capitalize allcapitalize all cap all

Makes the first letter in every word inside the label uppercase.

Default
0
Booleansuggested
Linklink

A link to give to the item. By default, a link is added if it's defined in the config - read more in Module:Item.

Page namesuggested
Classclass

An class to add to the item element.

Stringsuggested
Compositioncomposition

Defines order of parts that compose an item label: icon, label and amount. ONLY use one of the predefined values.

Suggested values
icon label [amount] icon amount label
Default
icon label [amount]
Linesuggested