सामग्रीमा जानुहोस्

ढाँचा:Clickable button 2/कागजात

विकिपिडिया, एक स्वतन्त्र विश्वकोशबाट

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}}.

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

ढाँचा प्यारामिटरहरू

This template prefers inline formatting of parameters.

मापदण्डविवरणप्रकारस्थिति
Link/Label1

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

उदाहरण
Foobar
पृष्ठ नामआवश्यक
Label2

Defines the text that appears on the button

अज्ञातसुझावित
URLurl

Defines a web address for the button to link to

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

Defines the visual type of the button

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

कुनैपनि विवरण छैन

Stringवैकल्पिक
categorycategory

कुनैपनि विवरण छैन

बुलियनवैकल्पिक

ढाँचा:Button templates