Template:Clickable button: Difference between revisions
Appearance
| [checked revision] | [checked revision] |
Content deleted Content added
Caleb Cooper (talk | contribs) Created page with "<onlyinclude>{{#if:{{{3|{{{external|}}}}}} | <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|}}}}}} |<..." |
Caleb Cooper (talk | contribs) No edit summary Tag: 2017 source edit |
||
| Line 1: | Line 1: | ||
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{text|{{{1|Button text}}}}}}</span><noinclude>{{Documentation}} |
|||
<onlyinclude>{{#if:{{{3|{{{external|}}}}}} |
|||
</noinclude> |
|||
| <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}}}}}}"> </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|}}}}}}"> </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}}}}}}"> </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|}}}}}}"> </span> |
|||
}}</span>]] |
|||
}}<!-- |
|||
--></onlyinclude> |
|||
{{documentation}} |
|||
<!-- Add categories and interwikis to Template:Clickable button/doc subpage, not here! --> |
|||
Latest revision as of 11:08, 19 April 2023
Example
→ {{Clickable button|color=white}}
→ {{Clickable button|color=red}}
→ {{Clickable button|color=blue}}
→ [[target|{{Clickable button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{Clickable button|text}}]]. Or better use {{clickable button 2}} which adds links automatically)
Templatedata
Creates a OOUI styled button.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Label | text 1 | no description | Content | required |
| Color of the button | color | Can be blue (progressive), red (destructive) or white | String | suggested |