साँचा:button
दिखावट
- The following documentation is located at Template:button/doc. [edit]
Example: {{button|मुखपृष्ठ|मुखपृष्ठ}} ⇒
See w:en:Template:click for documentation and updates
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:
{{button|मुखपृष्ठ}} or {{click|मुखपृष्ठ}}
- Code:
{{button|मुखपृष्ठ|Cover page}}
- Code:
{{button|मुखपृष्ठ|url=https://hi.wikivoyage.org}}
- Code:
{{button|मुखपृष्ठ|class=mw-ui-destructive}}
- Code:
{{button|मुखपृष्ठ|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
| URL | वैकल्पिक |
class | class | Defines the visual type of the button
| स्ट्रिंग | वैकल्पिक |
style | style | कोई विवरण नहीं | स्ट्रिंग | वैकल्पिक |
category | category | कोई विवरण नहीं | बूलियन | वैकल्पिक |