Template:Button: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>{{#if:{{{3|{{{external|}}}}}}
<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>
  | <span class="plainlinks" {{#if:{{{id|}}}|id="{{{id}}}"}}>[{{{1|{{{target|//parameter_target_is_empty.de}}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass
    |{{{4|{{{iconPrimary|}}}}}}
    |{{{5|{{{iconSecondary|}}}}}}
    |{{{2|{{{text|<noinclude>x</noinclude>}}}}}}
  }} {{{class|}}}" role="button" aria-disabled="false"><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}}
  |<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>
  }}<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}}
  |<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}">&nbsp;</span>
  }}</span>]</span><!--
  -->
  | [[{{{1|{{{target|Parameter target is empty!}}}}}}|<span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass
    |{{{4|{{{iconPrimary|}}}}}}
    |{{{5|{{{iconSecondary|}}}}}}
    |{{{2|{{{text|<noinclude>x</noinclude>}}}}}}
  }} {{{class|}}}" role="button" aria-disabled="false" {{#if:{{{id|}}}|id="{{{id}}}"}}><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}}
  |<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>
  }}<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}}
  |<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}">&nbsp;</span>
  }}</span>]]
}}<!--
 
 
-->
</onlyinclude>
<noinclude>
<noinclude>
==Examples==
<templatedata>
{{Button|target=Test|text=Test}}
{
"params": {
"1": {
"label": "Label",
"required": true
},
"color": {
"label": "Color of the button",
"description": "Can be blue (progressive), red (destructive)",
"suggested": true
}
},
"description": "Creates a OOui styled button."
}
</templatedata>
</noinclude>
</noinclude>

Revision as of 01:42, 5 December 2017

Button text

Creates a OOui styled button.

Template parameters

ParameterDescriptionTypeStatus
Label1

no description

Unknownrequired
Color of the buttoncolor

Can be blue (progressive), red (destructive)

Unknownsuggested