Aktionen

Vorlage

Clickable button: Unterschied zwischen den Versionen

Aus znilwiki

(Die Seite wurde neu angelegt: „{{documentation subpage}} == Example == {{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki> {{Clickable button|color=red}}…“)
 
K (Die Seite wurde geleert.)
Markierung: Geleert
Zeile 1: Zeile 1:
{{documentation subpage}}


== Example ==
{{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki>
{{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": {
"1": {
"label": "Label",
"required": true
},
"color": {
"label": "Color of the button",
"description": "Can be blue (progressive), red (destructive) or white",
"suggested": true
}
},
"description": "Creates a OOUI styled button."
}
</templatedata>
== See also ==
* {{tl|Clickable button 2}} for {{Clickable button 2|Template:Clickable button 2}}

Version vom 11. Februar 2022, 09:38 Uhr