From The Mana World
(updated the page with a more simple code. Please so not just copy the code from wikimedia and wikiversity. They have a different format.)
m (Alexanderlime moved page Template:Clickable button to Archive:Clickable button: the suitable)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{1|Button text}}}</span>
<onlyinclude>{{#if:{{{3|{{{external|}}}}}}
  | <span class="plainlinks">[{{{1|{{{target|//parameter_target_is_empty.de}}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass|{{{4|{{{iconPrimary|}}}}}}|{{{5|{{{iconSecondary|}}}}}}}} {{{class|}}}" role="button" aria-disabled="false">{{#if:{{{4|{{{iconPrimary|}}}}}}|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>}}{{#if:{{{2|{{{text|<noinclude>Demo</noinclude>}}}}}}|<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>}}{{#if:{{{5|{{{iconSecondary|}}}}}}|<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}">&nbsp;</span>}}</span>]</span>
  | [[{{{1|{{{target|Parameter target is empty!}}}}}}|<span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass|{{{4|{{{iconPrimary|}}}}}}|{{{5|{{{iconSecondary|}}}}}}}} {{{class|}}}" role="button" aria-disabled="false">{{#if:{{{4|{{{iconPrimary|}}}}}}|<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>}}{{#if:{{{2|{{{text|<noinclude>Demo</noinclude>}}}}}}|<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}}|<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}">&nbsp;</span>}}}}</span>]]
}}<!--
 
 
-->
</onlyinclude>
 
<!-- Add categories and interwikis to Template:Clickable button/doc subpage, not here! -->

Latest revision as of 10:35, 5 March 2015