साचा:Clickable button 2
This template is used on approximately ८,६३,००० pages, or roughly 840% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
This साचा is used in system messages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid large-scale disruption, any changes should first be tested in this साचा's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this साचा. Please discuss any changes on the talk page before implementing them. |
This template uses Lua: |
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/Label | 1 | Defines the page to link to, and uses that page's title as the text for the button
| पान | हवे |
Label | 2 | Defines the text that appears on the button | अज्ञात | सुचविलेले |
URL | url | Defines a web address for the button to link to
| यूआरएल | ऐच्छिक |
class | class | Defines the visual type of the button
| तंतू | ऐच्छिक |
style | style | काहीच वर्णन नाही | तंतू | ऐच्छिक |
category | category | काहीच वर्णन नाही | बुलियन (Boolean) | ऐच्छिक |
See also
[संपादन]- commons:Template:Clickable button, corresponding clickable button at Commons.
- Wikimedia design style guide advice on buttons