Template:Clickable button/sandbox

From MediaWiki.org
Jump to navigation Jump to search

Button text

Template documentation

Example[edit]

Button text → {{Clickable button|color=white}}

Button text → {{Clickable button|color=red}}

Button text → {{Clickable button|color=blue}}

Templatedata[edit]

Creates a OOUI styled button.

Template parameters

ParameterDescriptionTypeStatus
Label1

no description

Unknownrequired
Color of the buttoncolor

Can be blue (progressive), red (destructive) or white

Unknownsuggested

To use green color :hover and :active, paste on your common.css:

.mw-ui-button.mw-ui-constructive:hover {
	background-color:#00d6a8 !important;
	border-color:#00d6a8 !important;
}
.mw-ui-button.mw-ui-constructive:active {
	background-color: #007c61 !important;
	border-color: #007c61 !important;
	box-shadow: none !important;
}