« Modèle:Clickable button » : différence entre les versions

De BerryRocket
meta>Trizek (WMF)
(Created page with "<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-constructive | white = | blue = mw-ui-progressive}}" role="button" aria-disabl...")
 
meta>Zhuyifei1999
m (- extra linebreak)
Ligne 1 : Ligne 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|}}}}}}
<noinclude>
  | <span class="plainlinks" {{#if:{{{id|}}}|id="{{{id}}}"}}>[{{{1|{{{target|//parameter_target_is_empty.de}}}}}} <span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass
<templatedata>
    |{{{4|{{{iconPrimary|}}}}}}
{
    |{{{5|{{{iconSecondary|}}}}}}
"params": {
    |{{{2|{{{text|<noinclude>x</noinclude>}}}}}}
"1": {
  }} {{{class|}}}" role="button" aria-disabled="false"><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}}
"label": "Label",
  |<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>
"required": true
  }}<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>
"color": {
  }}</span>]</span><!--
"label": "Color of the button",
  -->
"description": "Can be blue (progressive), red (destructive)",
  | [[{{{1|{{{target|Parameter target is empty!}}}}}}|<span class="submit ui-button ui-widget ui-state-default ui-corner-all {{Clickable button/iconclass
"suggested": true
    |{{{4|{{{iconPrimary|}}}}}}
}
    |{{{5|{{{iconSecondary|}}}}}}
},
    |{{{2|{{{text|<noinclude>x</noinclude>}}}}}}
"description": "Creates a OOui styled button."
  }} {{{class|}}}" role="button" aria-disabled="false" {{#if:{{{id|}}}|id="{{{id}}}"}}><!-- // -->{{#if:{{{4|{{{iconPrimary|}}}}}}
}
  |<span class="ui-button-icon-primary ui-icon {{{4|{{{iconPrimary}}}}}}">&nbsp;</span>
</templatedata>
  }}<span class="ui-button-text">{{{2|{{{text|Parameter '''text''' is empty}}}}}}</span>{{#if:{{{5|{{{iconSecondary|}}}}}}
</noinclude>
  |<span class="ui-button-icon-secondary ui-icon {{{5|{{{iconSecondary|}}}}}}">&nbsp;</span>
  }}</span>]]
}}<!--
 
 
--></onlyinclude>
{{documentation}}
<!-- Add categories and interwikis to Template:Clickable button/doc subpage, not here! -->

Version du 25 décembre 2017 à 13:09

{{#if:

 | [//parameter_target_is_empty.de {{#if:
 | 
 }}Parameter text is empty{{#if:
 | 
 }}]
 | {{#if:
  | 
  }}Parameter text is empty{{#if:
  | 
  }}

}} Erreur Lua : erreur interne : l’interpréteur s’est arrêté avec le signal « -129 ».