Template:Clickable button 2: Difference between revisions

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.
(colors)
(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.)
Line 2:
|{{{url}}}
|[{{{1|}}}{{!}}
}}<span class="mwsubmit 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}}}
| mw-ui-progressive button-blue=style{{= }}"background-color: #2962CB;008"
| mw-ui-constructive button-green=style{{= }}"background-color: #008B6D;060"
| mw-ui-destructive button-red=style{{= }}"background-color: #A6170F;802"
| #default = style{{=}}"background-color: #CCCdadada; color: #666;black"
}}"
}}>{{#if:{{{url|}}}
|{{#if:{{{1|}}}
|{{{1}}}
|{{{url}}}
}}</span></span>|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</span></span>]
}}]</span><noinclude>
{{Documentation}}