Template:Clickable button
Note to editors: Please don't categorize this template by editing it directly. Instead, place the category in its documentation page, in its "includeonly" section.
Usage
Puts a text in the form of a button. Inline element, it can be contained in a block (paragraph, div) or be colored.
Syntaxe
{{Clickable button|Button label}}
Exemple
{{Clickable button|My super button}}
Colors and syntax
It is very important to keep and respect this color code, in order to have a consistent interface. If you are creating a template to attract attention, focus on the message and its layout (title levels, clarity) rather than putting a red button that will be misinterpreted.
There are three colors available on this button:
Color | Meaning | Syntax | Render |
---|---|---|---|
grey | default color default button not requiring any particular comment |
{{Clickable button|Basic action}} | |
blue | action to highlight incite to click |
{{Clickable button|Go to the next step|color=blue}} | |
red | cancellation error |
{{Clickable button|Cancel the current action|color=red}} |
There was until March 2016 a green button, which has been removed to avoid confusion with the blue button as to what actions to take.
TemplateData
Adds a clickable button in the style of Wikipedia. To lead to a page, must be used in a tag with an external link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button name | 1 | Title on the button | Line | required |
Color | color | Three possible choices. blue : action to put forward encourage to click ; red : cancellation, error, danger
| Line | suggested |