Template:Clickable Button: Difference between revisions
Created page with "{{documentation subpage}} == Example == {{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki> {{Clickable button|color=red}} → <nowiki>{{Clickable button|color=red}}</nowiki> {{Clickable button|color=blue}} → <nowiki>{{Clickable button|color=blue}}</nowiki> {{Clickable button|text}} → <nowiki>{{Clickable button|text}}</nowiki> (for links. To add links, transclude this template inside wikilinks after the pip..." |
No edit summary |
||
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> | |||
{{ | |||
< | |||
} | |||
</ | |||
Revision as of 02:20, 21 September 2023
This is the template for clickable button.
Usage
In a situation where you need an clickable button;
{{Clickable Button | color = | text = }}
Parameters
color
- The color of the button (default color is white. Other colors are red, green, blue.)text
- The text - default text is "Button text"
Examples
{{Clickable Button | color = white | text = Banana }}