Template:Item icon: Difference between revisions

From Space Station 14 Wiki
Template:Item icon
(replaced logic with a module lookup)
(template styles)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><templatestyles src="Item icon/styles.css" /><!--
-->{{#vardefine: icon_size|{{{size|24px}}}}}<!--
-->{{#vardefine: icon_size|{{{size|24px}}}}}<!--


Line 18: Line 20:
     }}
     }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{docs}}
{{docs|bb=
{{uses template styles}}
}}


[[Category:Image templates]]
[[Category:Image templates]]

Revision as of 21:24, 15 August 2024

Template documentation
view or edit this documentation about template documentation
Uses template styles
This template uses template styles found in:

Examples

{{item icon|lv}}

Script error: The function "lookup_item_id_by_name" does not exist.

A list of all items with icons

Contains all items with icons. Updates automatically.

Script error: The function "generate_item_icons_for_all_items_with_icons" does not exist.

Errors

Unknown item

{{item icon|lorem ipsum honk}}

Script error: The function "lookup_item_id_by_name" does not exist.

No image defined for item

{{item icon|foldable}}

Script error: The function "lookup_item_id_by_name" does not exist.

No description.

Template parameters

ParameterDescriptionTypeStatus
Item1

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

Example
lv coil
Linerequired
Sizesize

Icon size

Default
24px
Linesuggested
Labellabel l

Label override.

Linesuggested