Template:Button
Jump to navigation
Jump to search
Template documentation
|
---|
View or edit this documentation. (About template documentation)
Portions of the template sample may not be visible without values provided. |
Examples
Basic usage
{{Button|Space}}
→
Color combo parameter
Button | Button code |
---|---|
{{Button|Space|color combo=gray bg - light blue text}}
| |
{{Button|Space|color combo=light blue bg - black text}}
| |
{{Button|Space|color combo=light blue bg - black text}}
| |
{{Button|Space|color combo=blue bg - light blue text}}
| |
{{Button|Space|color combo=blue bg - black text}}
| |
{{Button|Space|color combo=transparent bg - light blue text}}
| |
{{Button|Space|color combo=transparent bg - green text}}
| |
{{Button|Space|color combo=transparent bg - blue text}}
|
Separate background and text color parameters
Button | Button code |
---|---|
{{Button|Space|bg color = gray|text color = light blue}}
| |
{{Button|Space|bg color = light blue|text color = black}}
| |
{{Button|Space|bg color = light blue|text color = black}}
| |
{{Button|Space|bg color = blue|text color = light blue}}
| |
{{Button|Space|bg color = blue|text color = black}}
| |
{{Button|Space|bg color = transparent|text color = light blue}}
| |
{{Button|Space|bg color = transparent|text color = green}}
| |
{{Button|Space|bg color = transparent|text color = blue}}
|
With anonymous params instead
Color combo parameter
{{Button|Space|blue bg - light blue text}}
Separate background and text color parameters
{{Button|Space|blue|light blue}}
Inline usage example
Using button {{Button|inside|blue|light blue}} a text.
Using button
a text.
Displays the text looking like a "button". Used to convey that the string of text is button (keyboard, UI, etc.).
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button | text 1 | A button key to display. You can either choose a button from the list or enter your own.
| String | required |
Color combo | color combo | Choose one of the predefined button color combinations to use. if you also use the separate params for bg and text colors, they each will override the value defined here.
| String | suggested |
Background color | bg color 2 | The color of the button's background. Must be one of the predefined values, otherwise the button won't render.
| Line | optional |
Text color | text color 3 | The color of the button's text. Must be one of the predefined values, otherwise the button won't render.
| String | optional |