Template:Clickable button/doc

From TwentyOneWiki
Revision as of 19:29, 31 January 2024 by Buburka Rinderbuy (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

[[Category:Template documentation pages{{#translation:}}]]

Example

Button text → {{Clickable button|color=white}}

Button text → {{Clickable button|color=red}}

Button text → {{Clickable button|color=blue}}

text → [[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 {{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