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