Difference between revisions of "Template:Clickable button 2"

From mitk.org
Jump to navigation Jump to search
Line 1: Line 1:
BLA
+
<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

Button text

<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>