Template:Clickable button 2: Difference between revisions

Please don't do this! Point me to issues and I will fix them; reverting is getting us nowhere. This change is according to MediaWiki talk:Common.js#Fixing Template:clickable button. Discuss there.
(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.)
(Please don't do this! Point me to issues and I will fix them; reverting is getting us nowhere. This change is according to MediaWiki talk:Common.js#Fixing Template:clickable button. Discuss there.)
Line 2:
|{{{url}}}
|[{{{1|}}}{{!}}
}}<span class="submit uimw-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-button-blue=style{{progressive =}}" background-color: #008"2962CB;
| mw-ui-button-green=style{{constructive =}}" background-color: #060"008B6D;
| mw-ui-button-red=style{{destructive =}}" background-color: #802"A6170F;
| #default =style{{=}}" background-color: #dadadaCCC; color:black" #666;
}}"
}}>{{#if:{{{url|}}}
|{{#if:{{{1|}}}
|{{{1}}}
|{{{url}}}
}}</span></span>|{{#if:{{{2|}}}|{{{2|}}}|{{{1|}}}}}</span></span>]
}}]</span><noinclude>
{{Documentation}}
Anonymous user