Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Clickable button 2: Difference between revisions

Template page
Content added Content deleted
(switch to mw-ui-button class)
(Merge spans)
Line 2: Line 2:
|{{{url}}}
|{{{url}}}
|[{{{1|}}}{{!}}
|[{{{1|}}}{{!}}
}}<span class="mw-ui-button {{{class|}}}" role="button" aria-disabled="false" {{#ifeq:{{{1}}}|{{FULLPAGENAME}}|style{{=}}"cursor: default"}}><span class="mw-ui-button-text" {{#ifeq:{{{1}}}|{{FULLPAGENAME}}
}}<span class="mw-ui-button {{{class|}}}" role="button" aria-disabled="false" {{#ifeq:{{{1}}}|{{FULLPAGENAME}}|style="cursor: default;|
|{{#switch:{{{class}}}
{{#switch:{{{class}}}
|mw-ui-progressive=style{{=}}"background-color:#248"
| mw-ui-progressive = background-color: #2962CB;
|mw-ui-constructive=style{{=}}"background-color:#284"
| mw-ui-constructive = background-color: #008B6D;
|mw-ui-destructive=style{{=}}"background-color:#842"
| mw-ui-destructive = background-color: #A6170F;
|#default=style{{=}}"background-color:#dadada;color:black"
| #default = background-color: #CCCCCC; color: #898989;
}}
}}"
}}>{{#if:{{{url|}}}
}}>{{#if:{{{url|}}}
|{{#if:{{{1|}}}
|{{#if:{{{1|}}}
|{{{1}}}
|{{{1}}}
|{{{url}}}
|{{{url}}}
}}</span></span>|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</span></span>]
}}</span>|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</span>]
}}]</span><noinclude>
}}]</span><noinclude>
{{Documentation}}
{{Documentation}}
Cookies help us deliver our services. By using our services, you agree to our use of cookies.