Documentation
This template creates an area with the visual appearance of a button. This area can be placed inside a wikilink to give the link the appearance of a button, and expand its clickable size and tap target.
[purge]
Usage
Unnamed parameters:
{{Button | TEXT }}
{{Button | TEXT | COLOR }}
Named parameters:
{{Button | 1= TEXT }}
{{Button | 1= TEXT | color= COLOR }}
Button with wikilink:
[[ WIKILINK | {{Button | TEXT }} ]]
[[ WIKILINK | {{Button | TEXT | color= COLOR }} ]]
Examples
Parameter: 1
Example: {{Button|This looks like a button}}
- Result:
Example: [[The Blackout Club Wiki|{{Button|Main page}}]]
Parameter: color
You can select three colors: white (default), blue (progressive) and red (destructive):
White (Default) example: {{Button|Button text|color=white}}
- Result:
Blue (Progressive) example: {{Button|Button text|color=blue}}
- Result:
Red (Destructive) example: {{Button|Button text|color=red}}
- Result:
Note: After the changes outlined in Phabricator task T110555 were implemented, {{Button|color=green}}
produces the same output as {{Button|color=blue}}
.