Template:Button: Difference between revisions
From Space Station 14 Wiki
(added a theme option) |
(button is now a button) |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--><templatestyles src="Button/styles.css" /><!-- | |||
-->{{#vardefine: button_bg_clip_pixels|5}}<!-- | -->{{#vardefine: button_bg_clip_pixels|5}}<!-- | ||
--> | --><kbd class="template-button" style=" | ||
clip-path: polygon( | clip-path: polygon( | ||
0 0, | 0 0, | ||
Line 24: | Line 17: | ||
); | ); | ||
">{{{1}}}</kbd></includeonly><noinclude> | ">{{{1}}}</kbd></includeonly><noinclude> | ||
{{documentation}} | {{documentation|bb= | ||
{{uses template styles}} | |||
}} | |||
[[Category:Markup templates]] | [[Category:Markup templates]] | ||
Line 149: | Line 144: | ||
"type": "line", | "type": "line", | ||
"suggestedvalues": [ | "suggestedvalues": [ | ||
"Normal | "Normal" | ||
], | ], | ||
"default": "Normal", | "default": "Normal", |
Revision as of 00:20, 15 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 |