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}}…“)
 
KKeine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
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>
<templatedata>
{
{
Zeile 26: Zeile 15:
}
}
</templatedata>
</templatedata>
== See also ==
* {{tl|Clickable button 2}} for {{Clickable button 2|Template:Clickable button 2}}

Aktuelle Version vom 11. Februar 2022, 09:39 Uhr

<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>