×
Create a new article
Write your page title here:
We currently have 3,093 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,093Articles

Template:MWButton/doc

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Button Classclass

First choose a class for the button. After that, any addditional CSS class may be chosen for the button span.

Suggested values
normal progressive destructive
Default
normal
Stringoptional
Button Stylestyle

Any CSS styles to add to the button span.

Stringoptional

Sample

The following input:

{{MWButton|Home|link=Main Page|class=progressive}}

Produces:

Home

The following input:

{{MWButton|Home|link=//example.com|class=progressive}}

Produces:

Example

Please note that using external links will still display the external links warning when submitting.