Clickable button/doc: Unterschied zwischen den Versionen
Aus znilwiki
BLinz (Diskussion | Beiträge) Die Seite wurde neu angelegt: „{{documentation subpage}} == Example == {{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki> {{Clickable button|color=red}}…“ |
(kein Unterschied)
|
Aktuelle Version vom 11. Februar 2022, 10:38 Uhr
Example
<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> → {{Clickable button|color=white}}
<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> → {{Clickable button|color=red}}
<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> → {{Clickable button|color=blue}}
<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> → [[target|{{Clickable button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{Clickable button|text}}]]. Or better use Vorlage:Tl 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>