Template:Mw button: Difference between revisions
Appearance
Content deleted Content added
HouseBlaster (talk | contribs) add style= param |
remove extra close brace Tags: Mobile edit Mobile web edit |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<span class="mw-ui-button mw-ui-{{{class|{{{2|progressive}}}}}}" {{#if:{{{style|}}}|style="{{{style}}} |
<span class="mw-ui-button mw-ui-{{{class|{{{2|progressive}}}}}}" {{#if:{{{3|{{{style|}}}}}}|style="{{{3|{{{style}}}}}}"}}>{{{1|{{{text|<noinclude>Example</noinclude>}}}}}}</span><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 01:21, 17 August 2024
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).