Template:Mw button/doc: Difference between revisions
Template page
More actions
Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> == Classes == normal: {{Mw button|Example|class=normal}} progressive: {{Mw button|Example|class=progressive}} destructive: {{Mw button|Example|class=destructive}} <templatedata> { "params": { "1": { "aliases": [ "text" ], "label": "Display text", "description": "The button's text", "example": "Click me!", "type": "string" },..." |
(No difference)
|
Latest revision as of 23:43, 23 February 2025
This is a documentation subpage for Template:Mw button. It may contain usage information, categories and other content that is not part of the original template page. |
Classes
normal:
progressive:
destructive:
Creates a non-clickable button
Parameter | Description | Type | Status | |
---|---|---|---|---|
Display text | 1 text | The button's text
| String | optional |
Class | 2 class | Class to apply to the button
| Unbalanced wikitext | optional |
Style | 3 style | CSS style to apply to the button
| Unbalanced wikitext | optional |
Usage
Use 1=
or text=
to set the button text. Use class=
or 2=
to set the button class (default progressive).