Template:Clickable Button: Difference between revisions

From Pirate Software Wiki
No edit summary
m (updated documentation to doc)
 
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}}
<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>
{{doc}}
</noinclude>
</noinclude>

Latest revision as of 12:49, 31 December 2023

Button text

Documentation

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

Banana