Template:Clickable button 2: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
en>Edokter
switch to mw-ui-button class
en>Edokter
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}}
</noinclude>
</noinclude>

Revision as of 22:00, 12 February 2014

[[|]]