Template:Clickable-button/doc: Difference between revisions
Created page with "{{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> {{Clickable button|text}} → <nowiki>{{Clickable button|text}}</nowiki> (for links. To add links, transclude this template inside wikilinks after the pip..." |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
== Example == | == Example == | ||
{{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki> | {{Clickable-button|color=white}} → <nowiki>{{Clickable-button|color=white}}</nowiki> | ||
{{Clickable button|color=red}} → <nowiki>{{Clickable button|color=red}}</nowiki> | {{Clickable-button|color=red}} → <nowiki>{{Clickable-button|color=red}}</nowiki> | ||
{{Clickable button|color=blue}} → <nowiki>{{Clickable button|color=blue}}</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>. | [[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>. | ||
== Templatedata == | == Templatedata == | ||
<templatedata> | <templatedata> | ||
| Line 36: | Line 34: | ||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 15:45, 13 December 2024
Example
→ {{Clickable-button|color=white}}
→ {{Clickable-button|color=red}}
→ {{Clickable-button|color=blue}}
→ [[target|{{Clickable-button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{Clickable-button|text}}]].
Templatedata
Creates a OOUI styled button.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Label | text 1 | no description | Content | required |
| Color of the button | color | Can be blue (progressive), red (destructive) or white | String | suggested |