Jump to content

Template:Button/doc

From Appropedia

This template is used for generating links that look like buttons.

{{Button|Some page}}

generates:

Some page

while

{{Button|Some page|Some text}}

generates:

Some text

{{Button
| url = https://www.appropedia.org
| text = Appropedia
| progressive = yes
| icon = Appropedia.png
| class = my-custom-button
}}

generates:

Appropedia

Template data

[edit source]

Use this template to generate a clickable button.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Classclass

Additional CSS class for the button

Stringoptional
URLurl

External URL to link to

Example
https://www.example.com
URLoptional
Progressiveprogressive

Make this a progressive (blue) button

Example
yes
Booleanoptional
Texttext 2

Visible text or label of the button

Default
Title of the linked page
Example
Click me!
Stringoptional
Pagepage 1

Appropedia page to link to

Example
Solar cooker
Page nameoptional
Iconicon

Icon of the button

Example
OOjs UI icon arrowPrevious-ltr.svg
Fileoptional


Cookies help us deliver our services. By using our services, you agree to our use of cookies.