Difference between revisions of "Template:Clickable button"

From HPC Wiki
Jump to navigation Jump to search
Line 1: Line 1:
<span class="nowrap" title="{{#if:{{{popup|}}}||this is not a clickable button, it illustrates the button to look for}}" style="padding:.2em .6em; border:1px solid; border-color:#aaa #555 #555 #aaa; border-radius:3px; background-color:#f2f2f2; {{linear-gradient|top|#fcfcfc, #e0e0e0}} {{#ifeq:{{{format|}}}|bold|font-weight:bold;}} {{{style|}}}">{{{text|{{{1|the button}}}}}}</span><noinclude>
+
<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">{{{1|Button text}}}</span><noinclude>{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:08, 5 October 2020