Template:Item icon: Difference between revisions
From Space Station 14 Wiki
Template:Item icon
(wip) |
(wip) |
||
Line 57: | Line 57: | ||
--><span class="item-icon"><!-- | --><span class="item-icon"><!-- | ||
--><span class="item-icon-icon">[[File:{{#var:icon_file}}|{{#var: icon_size}}]]</span><!-- | --><span class="item-icon-icon">[[File:{{#var:icon_file}}|{{#var: icon_size}}]]</span><!-- | ||
--><span class="item-icon-label">'''{{#var:icon_label}}'''</span><!-- | --><span class="item-icon-label">'''{{{label|{{#var:icon_label}}}}}'''</span><!-- | ||
--></span></includeonly><noinclude> | --></span></includeonly><noinclude> | ||
{{docs}} | {{docs}} | ||
Line 102: | Line 102: | ||
"type": "line", | "type": "line", | ||
"default": "24px", | "default": "24px", | ||
"suggested": true | |||
}, | |||
"label": { | |||
"label": "Label", | |||
"description": "Label override.", | |||
"type": "line", | |||
"suggested": true | "suggested": true | ||
} | } | ||
Line 107: | Line 113: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"size" | "size", | ||
"label" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Revision as of 01:00, 15 August 2024
Examples
{{item icon
↓
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
↓
No image defined for item
{{item icon
↓
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Item | 1 | What item are you looking for? Select from the list. Any casing is allowed, including lowercase.
| Line | required |
Size | size | Icon size
| Line | suggested |
Label | label | Label override. | Line | suggested |