Jump to content

Template:Cdx-button/doc

From Meta, a Wikimedia project coordination wiki

Examples

[edit]
{{cdx-button|link=Example|label=Click this}} Click this
{{cdx-button|link=Example|label=Lorem|action=destructive}} Lorem
{{cdx-button|link=Example|label=Ipsum|weight=quiet}} Ipsum
{{cdx-button|link=Example|label=Foo bar|weight=primary}} Foo bar

TemplateData

[edit]

Display a Codex-formatted 'fake' button that links to a wiki page.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Link targetlink

The destination of the button's link.

Page namerequired
Labellabel

The displayed button label.

Stringrequired
Actionaction

no description

Suggested values
default progressive destructive.
Default
default
Stringoptional
Weightweight

no description

Suggested values
normal primary quiet
Default
normal
Stringoptional