Template:Ss/doc: Difference between revisionsGive feedback
Created page with "This template displays a Spirit Power scaling indicator next to a value. ==Usage== <pre>{{Ss|value}}</pre> <pre>{{Ss|value|font_size}}</pre> <pre>{{Ss|value|compact=yes}}</pre> ==Parameters== {| class="wikitable" ! Parameter !! Description !! Default |- | 1 || The scaling value || (empty) |- | 2 || Font size || 14px |- | icon_size || Size of the spirit icon || 25px |- | compact || Set to <code>yes</code> for icon-only mode with a tooltip on hover || (empty) |} ==Examp..." |
Added TS template and templatedata |
||
| Line 1: | Line 1: | ||
{{TS}} | |||
This template displays a Spirit Power scaling indicator next to a value. | This template displays a Spirit Power scaling indicator next to a value. | ||
| Line 5: | Line 6: | ||
<pre>{{Ss|value|font_size}}</pre> | <pre>{{Ss|value|font_size}}</pre> | ||
<pre>{{Ss|value|compact=yes}}</pre> | <pre>{{Ss|value|compact=yes}}</pre> | ||
==Examples== | ==Examples== | ||
<pre>30{{ | <pre>30{{Ss|0.1234}}m</pre> | ||
Outputs: 30{{ | Outputs: 30{{Ss|0.1234}}m | ||
<pre>30{{ | <pre>30{{Ss|0.1234|12px}}m</pre> | ||
Outputs: 30{{ | Outputs: 30{{Ss|0.1234|12px}}m | ||
<pre>{{Ss|0.1234|compact=yes}}</pre> | <pre>{{Ss|0.1234|compact=yes}}</pre> | ||
Outputs: {{Ss|0.1234|compact=yes}} | Outputs: {{Ss|0.1234|compact=yes}} | ||
<templatedata> | |||
{ | |||
"description": "Displays a Spirit Power scaling indicator next to a value.", | |||
"params": { | |||
"1": { | |||
"label": "Scaling value", | |||
"description": "The Spirit Power scaling value to display.", | |||
"type": "number", | |||
"required": true | |||
}, | |||
"2": { | |||
"label": "Font size", | |||
"description": "Font size of the scaling text.", | |||
"type": "string", | |||
"default": "14px", | |||
"required": false | |||
}, | |||
"icon_size": { | |||
"label": "Icon size", | |||
"description": "Size of the Spirit Power icon.", | |||
"type": "string", | |||
"default": "25px", | |||
"required": false | |||
}, | |||
"compact": { | |||
"label": "Compact mode", | |||
"description": "Set to 'yes' to show only the icon with a tooltip on hover instead of the full indicator.", | |||
"type": "string", | |||
"required": false | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata> | |||