Template:Clickable button 2: Difference between revisions

no edit summary
(I'm sure there are good intentions here, but this unfinished change looks horrible and is breaking the aesthetics of a lot of buttons, reverting until Ed can figure this out.)
No edit summary
 
(17 intermediate revisions by 7 users not shown)
Line 1:
{{#invoke:Clickable button 2|main}}<noinclude>
<span class="plainlinks">[{{#if:{{{url|}}}
{{doc|{{Clickable button 2/doc}}}}
|{{{url}}}
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
|[{{{1|}}}{{!}}
}}<span class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only {{{class|}}}" role="button" aria-disabled="false" {{#ifeq:{{{1}}}|{{FULLPAGENAME}}|style{{=}}"cursor: default"}}><span class="ui-button-text" {{#ifeq:{{{1}}}|{{FULLPAGENAME}}
|{{#switch:{{{class}}}
|ui-button-blue=style{{=}}"background-color:#008"
|ui-button-green=style{{=}}"background-color:#060"
|ui-button-red=style{{=}}"background-color:#802"
|#default=style{{=}}"background-color:#dadada;color:black"
}}
}}>{{#if:{{{url|}}}
|{{#if:{{{1|}}}
|{{{1}}}
|{{{url}}}
}}</span></span>|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</span></span>]
}}]</span><noinclude>
{{Documentation}}
</noinclude>