Lompat ke isi

Cèṭa'an:Clickable button/doc

Ḍâri Wikipèḍia bhâsa Madhurâ, lombhung pangataowan mardhika

TemplateStyles' src attribute must not be empty.

Galat: tidak ada pintasan yang ditentukan |msg= parameter tidak ditentukan.

TemplateStyles' src attribute must not be empty.

TemplateStyles' src attribute must not be empty.

TemplateStyles' src attribute must not be empty.

This template styles a link like a button, using the deprecated mediawiki.ui.button module. This expands the clickable area and tap target for the link.

All parameters
{{Clickable button|wikilink|display|color=color|url=url|class=class|link=}}
wikilink
Unnamed first parameter; the title of the page being linked. Brackets are not necessary
display (optional)
Optional unnamed second parameter; the text to display. Not needed if the text to display is the wikilink itself
|color= or |class=
Color to display. |color= accepts blue and red, |class= accepts mw-ui-progressive and mw-ui-destructive
|url=
URL to link through the button. If no wikilink/display text is provided, will show the URL, otherwise will show the wikilink/display text
|link=no
Use this parameter set to "no" to display a button without linking to anything

Examples

[beccè' sombher]
[beccè' sombher]
{{Clickable button|Main Page}}Main Page
{{Clickable button|Main Page|Click here to visit the main page}}Click here to visit the main page
{{Clickable button|Click here|link=no}}Click here
{{Clickable button|Main Page}}Main Page – without defined |color= and |class=, the default is a white button
{{Clickable button|Main Page|color=blue}}Main Page
{{Clickable button|Main Page|color=red}}Main Page
{{Clickable button|Main Page|class=mw-ui-progressive}}Main Page
{{Clickable button|Main Page|class=mw-ui-destructive}}Main Page
{{Clickable button|url=https://example.com}}https://example.com
{{Clickable button|Example|url=https://example.com}}Example
{{Clickable button|2=Example|url=https://example.com}}Example

Template data

[beccè' sombher]

Styles a link like a button, using the mediawiki.ui.button module

Parameter templat

Templat ini lebih menyukai format parameter dalam satu baris.

ParameterKeteranganJenisStatus
Link/Label1

Defines the page to link to, and uses that page's title as the text for the button

Contoh
Foobar
Nama halamanwajib diisi
Label2

Defines the text that appears on the button

Baku
the page being linked to
Tak dikenaldisarankan
URLurl

Defines a web address for the button to link to

Contoh
https://www.example.com
URLopsional
classclass

Defines the visual type of the button

Nilai yang disarankan
mw-ui-progressive mw-ui-destructive
Kataopsional
Custom CSS stylingstyle

Allows custom CSS styling to be applied to the button

Baku
None
Contoh
border: 2px solid red;
Kataopsional
Category switchcategory

Whether or not categories should be on

Baku
yes
Contoh
no
Nilai otomatis
0
Booleanopsional
colorcolor

tidak ada keterangan

Nilai yang disarankan
blue red green
Tak dikenalopsional

See also

[beccè' sombher]

Cèṭa'an:Button templates