(simple doc) |
(add link in examples) |
||
Line 31: | Line 31: | ||
<pre> | <pre> | ||
{{MWButton| | {{MWButton|Home|link=Main Page|class=progressive}} | ||
</pre> | </pre> | ||
Produces: | Produces: | ||
{{MWButton| | {{MWButton|Home|link=Main Page|class=progressive}} | ||
The following input: | |||
<pre> | |||
{{MWButton|Home|link=//example.com|class=progressive}} | |||
</pre> | |||
Produces: | |||
{{MWButton|Example|link=//example.com|class=destructive}} | |||
Please note that using external links will still display the external links warning when submitting. | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 21:05, 23 September 2024
Description
This template renders a MediaWiki style button, like the ones used in edit forms.
Usage
The template can be used for buttons that cause a change in a page, such as for collapsible sections. It can also be used for links, such as linking to an external site.
Parameters
Render a MediaWiki styled button.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Button Class | class | First choose a class for the button. After that, any addditional CSS class may be chosen for the button span.
| String | optional |
Button Style | style | Any CSS styles to add to the button span. | String | optional |
Sample
The following input:
{{MWButton|Home|link=Main Page|class=progressive}}
Produces:
The following input:
{{MWButton|Home|link=//example.com|class=progressive}}
Produces:
Please note that using external links will still display the external links warning when submitting.