Predloga:Gumb na klik 2

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search
Dokumentacija za predlogo[poglej] [uredi] [zgodovina] [osveži]

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: {{Gumb na klik 2|Main Page}}
  • Code: {{Clickable button 2|Main Page|Cover page}}
  • Code: {{Gumb na klik 2|Main Page|url=http://en.wikipedia.org}}
  • Code: {{Gumb na klik 2|Main Page|class=mw-ui-destructive}}
  • Code: {{Gumb na klik 2|Main Page|class=mw-ui-progressive}}

Note: After the changes outlined in Phabricator task T110555 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[uredi kodo]

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

Parametri predloge

Za to predlogo se uporablja postavitev parametrov v eni vrstici.

ParameterOpisVrstaStanje
Link/Label1

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

Zgled
Foobar
Ime stranizahtevano
Label2

Defines the text that appears on the button

Neznanopredlagano
URLurl

Defines a web address for the button to link to

Zgled
https://www.example.com
URLizbirno
classclass

Defines the visual type of the button

Zgled
mw-ui-progressive, mw-ui-destructive
Nizizbirno
stylestyle

brez opisa

Nizizbirno
categorycategory

brez opisa

Pogojni izrazizbirno

Glej tudi[uredi kodo]