Template:Clickable button 2

Da Wikipedia

Template:Being deleted

Template documentation[view] [edit] [history] [purge]

This template styles a link like a button, using the mediawiki.ui.button module. This expands the clickable area and tap target for the link. It can be used in the following ways,

  • Code: {{Clickable button 2|Main Page}}
  • Code: {{Clickable button 2|Main Page|Cover page}}
  • Code: {{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-destructive}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-progressive}}

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

Template data[muda l codesc]

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

Parametri template[Modifica dati del modello]

Questo template preferisce la formattazione in linea dei parametri.

ParametroDescrizioneTipoStato
Link/Label1

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

Esempio
Foobar
Nome della paginaobbligatorio
Label2

Defines the text that appears on the button

Predefinito
the page being linked to
Sconosciutoconsigliato
URLurl

Defines a web address for the button to link to

Esempio
https://www.example.com
URLfacoltativo
classclass

Defines the visual type of the button

Esempio
mw-ui-progressive, mw-ui-destructive
Stringafacoltativo
Custom CSS stylingstyle

Allows custom CSS styling to be applied to the button

Predefinito
None
Esempio
border: 2px solid red;
Stringafacoltativo
Category switchcategory

Whether or not categories should be on

Predefinito
yes
Esempio
no
Valore automatico
0
Booleanofacoltativo

See also[muda l codesc]

Template:Button templates