Template:Labeled icon: Difference between revisions
From Space Station 14 Wiki
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
"2": { | "2": { | ||
"label": "Icon size", | "label": "Icon size", | ||
"description": "Size of the icon.", | "description": "Size of the icon in pixels.", | ||
"example": "24px", | "example": "24px", | ||
"type": "line", | "type": "line", | ||
Line 26: | Line 26: | ||
"type": "line", | "type": "line", | ||
"required": true | "required": true | ||
}, | |||
"4": { | |||
"label": "Link", | |||
"description": "Link to specific page.", | |||
"type": "wiki-page-name", | |||
"suggested": true | |||
}, | }, | ||
"zoom": { | "zoom": { | ||
Line 40: | Line 46: | ||
"2", | "2", | ||
"3", | "3", | ||
"4", | |||
"zoom" | "zoom" | ||
] | ] |
Revision as of 19:09, 30 March 2025
Uses Lua module
This template uses Lua module:
Tip
It's recommended to use one of the derivative template, is possible.
This template is meant to be used either inside other templates or in cases where there's no specific template for a use case (in which case one should be created, if there's enough usages).
This template is meant to be used either inside other templates or in cases where there's no specific template for a use case (in which case one should be created, if there's enough usages).
Usage
todo
Example
Basic
{{Labeled icon
↓
Gauze
In text
Roll of {{Labeled icon
↓
Roll of Gauze heals slash and piercing damage.
With a link
todo
With zoom
TC
With a custom class
Can be seen with dev tools.
{{Labeled icon
↓

Icon with a label.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Icon | 1 | Icon image. | File | required |
Icon size | 2 | Size of the icon in pixels.
| Line | required |
Label | 3 | Icon label. Goes after the icon. | Line | required |
Link | 4 | Link to specific page. | Page name | suggested |
Zoom | zoom | Allows to «zoom in» the icon by the specified amount. For example, 10 pixels zoom will zoom in 10 pixels.
| Line | suggested |