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.
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) — filled progressive blue. Use for the main
call-to-action on a page (e.g. mailing list signup, primary form).
secondary— outlined neutral. Use for supporting CTAs that
shouldn't compete with the primary action (e.g. "Request an account" next to a "Subscribe" button).
Styling uses Citizen-skin CSS custom properties with hex fallbacks so the button adapts to light/dark mode and degrades gracefully on other skins.
Parameters:
page— internal wikilink target (mutually exclusive withurl)url— external URL (mutually exclusive withpage)label— button text (required)style—primaryorsecondary(default:primary)