Template:Button: Difference between revisions
From Space Station 14 Wiki
(template body formatting) |
(added button state for theme stuff) |
||
Line 4: | Line 4: | ||
-->{{#vardefine: button_bg_clip_pixels|5}}<!-- | -->{{#vardefine: button_bg_clip_pixels|5}}<!-- | ||
--><kbd class="template-button" style=" | --><kbd class="template-button {{{state|normal}}}" style=" | ||
padding: .2em calc({{#var:button_bg_clip_pixels}}px + .3em); | padding: .2em calc({{#var:button_bg_clip_pixels}}px + .3em); | ||
Revision as of 23:13, 18 August 2024
Uses template styles
This template uses template styles found in:
Examples
{{button
↓
Server List
Theming
Not implemented yet.
Button state
Normal
The default.
Pressed
{{button
↓
EnabledFor representing a keyboard or other buttons.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Key | 1 | Select from the list, or use your own.
| Line | required |
Theme | 2 | Theme of the button. Any casing is allowed, including lowercase.
| Line | suggested |
State | state | State of the button. Any casing is allowed, including lowercase.
| Line | optional |