साचा:Clickable button 2/doc

विकिस्रोत कडून

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 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[संपादन]

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

साच्याचे प्राचल (पॅरामिटर्स)

ह्या टेंप्लेटचे प्रारुपण आपण आपल्या इच्छेप्रमाणे करु शकता.

प्राचलवर्णनप्रकारस्थिती
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
तंतूऐच्छिक
stylestyle

काहीच वर्णन नाही

तंतूऐच्छिक
categorycategory

काहीच वर्णन नाही

बुलियन (Boolean)ऐच्छिक

See also[संपादन]