Template:Clickable button: Difference between revisions
From WWII Archives
wc>Zhuyifei1999 m (- extra linebreak) |
Paul Sidle (talk | contribs) m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
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}} | |||
</noinclude> | |||
{{ | |||
< |
Latest revision as of 18:32, 16 March 2023
File:Test Template Info-Icon.svg Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Clickable button/doc.
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 |
See also
- {{Clickable button 2}} for