Template:UI/button
Template page
More actions
Renders a styled button-link. Supports both internal wiki page links and external URLs, with primary and secondary visual variants.
All styling lives in MediaWiki:Common.css under the .wiki-button
class — change there to update every button across the wiki. This template is
just structure: it picks the right link syntax (internal vs. external) and
emits the right class names.
Use page for internal links (e.g. Special:RequestAccount),
or url for external links (e.g. a Brevo subscribe form). Provide
exactly one. If both are set, url wins.
The style parameter chooses the visual treatment:
primary(default) — main call-to-action on a pagesecondary— supporting CTA that shouldn't compete with the primary
Parameters:
page— internal wikilink target (mutually exclusive withurl)url— external URL (mutually exclusive withpage)label— button text (required)style—primaryorsecondary(default:primary)