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

De 21Wiki
Aucun résumé des modifications
Balise : Éditeur de wikicode 2017
(Page blanchie)
Balises : Blanchiment Éditeur de wikicode 2017
Ligne 1 : Ligne 1 :
{{documentation subpage}}


== Example ==
{{Clickable button|color=white}} → {{Clickable button|color=white}}
{{Clickable button|color=red}} → <nowiki>{{Clickable button|color=red}}</nowiki>
{{Clickable button|color=blue}} → <nowiki>{{Clickable button|color=blue}}</nowiki>
[[target|{{Clickable button|text}}]] → <nowiki>[[target|{{Clickable button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{Clickable button|text}}]]</nowiki>. Or better use {{tl|clickable button 2}} which adds links automatically)
== Templatedata ==
<templatedata>
{
"params": {
"color": {
"label": "Color of the button",
"description": "Can be blue (progressive), red (destructive) or white",
"suggested": true,
"type": "string"
},
"text": {
"aliases": [
"1"
],
"label": "Label",
"type": "content",
"required": true
}
},
"description": "Creates a OOUI styled button.",
"paramOrder": [
"text",
"color"
],
"format": "inline"
}
</templatedata>
== See also ==
* {{tl|Clickable button 2}} for {{Clickable button 2|Template:Clickable button 2}}

Version du 21 septembre 2023 à 14:45