Template:Labeled icon: Difference between revisions

From Space Station 14 Wiki
Aliser (talk | contribs)
No edit summary
Aliser (talk | contribs)
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

Template documentation
view or edit this documentation about template documentation
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).

Usage

todo

Example

Basic

{{Labeled icon|Gauze Icon.png|32px|Gauze}}

Gauze

In text

Roll of {{Labeled icon|Gauze Icon.png|32px|Gauze}} heals slash and piercing damage.

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|Gauze Icon.png|32px|Gauze|class=med-item}}

Gauze

Icon with a label.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Icon1

Icon image.

Filerequired
Icon size2

Size of the icon in pixels.

Example
24px
Linerequired
Label3

Icon label. Goes after the icon.

Linerequired
Link4

Link to specific page.

Page namesuggested
Zoomzoom

Allows to «zoom in» the icon by the specified amount. For example, 10 pixels zoom will zoom in 10 pixels.

Example
10px
Linesuggested