Template:Button

This template generates a button with the same format as the MediaWiki buttons.

Syntax
Full syntax:


 * , or first unnamed parameter. Text displayed in the button.
 * , or second unnamed parameter. Name of the page to be linked, accepts both internal and external links.
 * , or third unnamed parameter (optional). Name of the file without the name space, displayed in the button. Example:
 * 1)   (optional). With any value, understands the link in the   parameter as an external link. If it's empty or not used, the template will use the internal link syntax.
 * 2)  . The value can be   (default), , or  . Each color has a meaning (see below)
 * 3)  . Additional classes are available, choose from the following:
 * , for a button without borders.
 * , for a bigger button.
 * , for multiple buttons that display as a block with the same width..

Colors
MediaWiki follows a consistent style for its buttons:

{	"params": { "external": { "label": "Is the link an external page?", "description": "Use this parameter if the link you specified in \"Page\" leads to an external page.", "type": "boolean" },		"page": { "label": "Page", "description": "Page to link; can be both an internal link (article title) or an external link (full URL).", "required": true },		"color": { "label": "Color of the button", "description": "Can be white (default), blue, or red." },		"class": { "label": "Class", "description": "Additional class. Can be mw-ui-quiet, mw-ui-big, or mw-ui-block" },		"logo": { "label": "Logo", "description": "Logo to be displayed in the button, use a file name.", "type": "wiki-file-name" },		"text": { "label": "Text", "description": "Text of the button", "required": true }	},	"description": "Adds a button that links to a page.", "paramOrder": [ "text", "page", "external", "color", "logo", "class" ],	"format": "inline" }