Template:Item

From Space Station 14 Wiki
Revision as of 08:51, 2 September 2024 by Aliser (talk | contribs) (removed styles reference)
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}}

25 steel

More examples

-55 steel

0 steel

0.5 steel

1 steel

5 steel

9 steel

10 steel

11 steel

15 steel

19 steel

20 steel

21 steel

25 steel

30 steel

35 steel

999999 steel

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


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.

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}}

Lua error in Module:Item at line 83: item generation failed: no item was found by ID/name 'lorem ipsum honk'.

Produces an in-game item icon with a label. The label is the name of that item. Items without icons uploaded to the wiki will have their icon missing.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Item1

What item are you looking for? Any casing is allowed, including lowercase.

Example
lv coil
Linerequired
Amount2

Amount of item. Empty string by default.

Example
3
Numbersuggested
Sizesize

Icon size

Default
32px
Linesuggested
Labellabel l

Label override.

Linesuggested
Capitalizecapitalize cap

Makes the first letter in the label uppercase.

Auto value
0
Booleanoptional