ढाँचा:Clickable button 2

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट
Jump to navigation Jump to search
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 ढाँचा: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[सम्पादन गर्ने]

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

Template parameters

This template prefers inline formatting of parameters.

Parameterविवरणप्रकारस्थिति
Link/Label1

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

उदाहरण
Foobar
पृष्ठrequired
Label2

Defines the text that appears on the button

Unknownsuggested
URLurl

Defines a web address for the button to link to

उदाहरण
https://www.example.com
URLवैकल्पिक
classclass

Defines the visual type of the button

उदाहरण
mw-ui-progressive, mw-ui-destructive
Stringवैकल्पिक
stylestyle

no description

Stringवैकल्पिक
categorycategory

no description

Booleanवैकल्पिक

See also[सम्पादन गर्ने]

ढाँचा:Button templates