Template:Labeled icon: Difference between revisions
From Space Station 14 Wiki
uses lua |
No edit summary |
||
Line 29: | Line 29: | ||
"zoom": { | "zoom": { | ||
"label": "Zoom", | "label": "Zoom", | ||
"description": "Allows to «zoom in» the icon by the specified amount.", | "description": "Allows to «zoom in» the icon by the specified amount. For example, 10 pixels zoom will zoom in 10 pixels.", | ||
"example": "10px", | "example": "10px", | ||
"type": "line", | "type": "line", |
Revision as of 19:00, 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.
| Line | required |
Label | 3 | Icon label. Goes after the icon. | Line | required |
Zoom | zoom | Allows to «zoom in» the icon by the specified amount. For example, 10 pixels zoom will zoom in 10 pixels.
| Line | suggested |