Jump to content

Template:Button: Difference between revisions

From Qt Wiki
Create Button template
 
No edit summary
 
Line 14: Line 14:
         },
         },
         "2": {
         "2": {
             "label": "URL",
             "label": "URL or page name",
             "description": "The link the button points to.",
             "description": "The link the button points to \u2014 an external URL (https://...), a site-relative path (/wiki/...), or just a wiki page name (e.g. Main Page).",
             "type": "url",
             "type": "string",
             "suggested": true,
             "suggested": true,
             "aliases": ["href"]
             "aliases": ["href"]

Latest revision as of 10:23, 31 July 2026

Click here

Renders a Qt Design System button (qt-button web component) that links to a URL.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Label1 label

Text shown on the button.

Default
Click here
Stringoptional
URL or page name2 href

The link the button points to — an external URL (https://...), a site-relative path (/wiki/...), or just a wiki page name (e.g. Main Page).

Stringsuggested
Appearance3 appearance

Visual style of the button.

Suggested values
fill outline
Default
fill
Stringoptional
Brand4 brand

Brand color styling of the button.

Suggested values
neutral development qa
Default
neutral
Stringoptional