Difference between revisions of "Template:Clickable button 2"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
| − | + | <span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{1|Button text}}}</span> | |
| + | <noinclude> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "1": { | ||
| + | "label": "Label", | ||
| + | "required": true | ||
| + | }, | ||
| + | "color": { | ||
| + | "label": "Color of the button", | ||
| + | "description": "Can be blue (progressive), red (destructive), green (constructive) or white", | ||
| + | "suggested": true | ||
| + | } | ||
| + | }, | ||
| + | "description": "Creates a OOui styled button." | ||
| + | } | ||
| + | </templatedata> | ||
| + | </noinclude> | ||
Revision as of 10:44, 4 September 2018
<templatedata> { "params": { "1": { "label": "Label", "required": true }, "color": { "label": "Color of the button", "description": "Can be blue (progressive), red (destructive), green (constructive) or white", "suggested": true } }, "description": "Creates a OOui styled button." } </templatedata>