Template:Item/doc: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
"capitalize" examples
Aliser (talk | contribs)
A list of all items with icons: moved under spoiler
Line 88: Line 88:
Contains all items with icons. Updates automatically.  
Contains all items with icons. Updates automatically.  


{{#invoke: Item|generate_list_of_all_items_with_icons|4}}
{{collapse|{{#invoke: Item|generate_list_of_all_items_with_icons|4}}}}


== Errors ==
== Errors ==

Revision as of 08:29, 24 August 2024

Examples

{{item|lv}}

LV cable coil

Specifying amount of items

{{item|steel|25}}

steel [25]

More examples

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

A list of all items with icons

Contains all items with icons. Updates automatically.

Errors

Unknown item with name

{{item|lorem ipsum honk}}

unknown item 'lorem ipsum honk'

No image defined for item with name

{{item|foldable}}

foldable