Template:Clickable button/doc

This template styles a link like a button, using the mediawiki.ui.button module. This expands the clickable area and tap target for the link.

Usage
All parameters:


 * wikilink
 * Unnamed first parameter; the title of the page being linked. Brackets are not necessary


 * display (optional)
 * Optional unnamed second parameter; the text to display. Not needed if the text to display is the wikilink itself


 * color or class
 * Color to display. color accepts  and , class accepts   and


 * url
 * URL to link through the button. If no wikilink/display text is provided, will show the URL, otherwise will show the wikilink/display text


 * no
 * Use this parameter set to "no" to display a button without linking to anything

Colors


Any other color will default to

Template data
{	"params": { "1": {			"required": true, "label": "Link/Label", "description": "Defines the page to link to, and uses that page's title as the text for the button", "example": "Foobar", "type": "wiki-page-name" },		"2": {			"suggested": true, "label": "Label", "description": "Defines the text that appears on the button", "default": "the page being linked to" },		"url": { "type": "url", "label": "URL", "description": "Defines a web address for the button to link to", "example": "https://www.example.com" },		"class": { "type": "string", "description": "Defines the visual type of the button", "suggestedvalues": [ "mw-ui-progressive", "mw-ui-destructive" ]		},		"style": { "type": "string", "label": "Custom CSS styling", "description": "Allows custom CSS styling to be applied to the button", "example": "border: 2px solid red;", "default": "None" },		"category": { "type": "boolean", "label": "Category switch", "description": "Whether or not categories should be on", "example": "no", "default": "yes", "autovalue": "0" }	},	"description": "Styles a link like a button, using the mediawiki.ui.button module", "format": "inline" }