Template:Clickable button 2/doc: Difference between revisions
Jump to navigation
Jump to search
en>Edokter mNo edit summary |
en>Smtchahal Note about javascript |
||
Line 15: | Line 15: | ||
**'''Result: '''{{Clickable button 2/sandbox|Main Page|class=mw-ui-progressive}} | **'''Result: '''{{Clickable button 2/sandbox|Main Page|class=mw-ui-progressive}} | ||
Note that if a browser does not have JavaScript enabled then no button is displayed but the text will still be displayed. | |||
=== See also === | === See also === | ||
* [[commons:Template:Clickable button]], corresponding clickable button at Commons. | * [[commons:Template:Clickable button]], corresponding clickable button at Commons. |
Revision as of 16:18, 26 February 2014
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways,
- Code:
{{Clickable button 2/sandbox|Main Page}}
- Code:
{{Clickable button 2/sandbox|Main Page|Cover page}}
- Code:
{{Clickable button 2/sandbox|Home|url=http://en.wikipedia.org}}
- Code:
{{Clickable button 2/sandbox|Main Page|class=mw-ui-constructive}}
- Code:
{{Clickable button 2/sandbox|Main Page|class=mw-ui-destructive}}
- Code:
{{Clickable button 2/sandbox|Main Page|class=mw-ui-progressive}}
Note that if a browser does not have JavaScript enabled then no button is displayed but the text will still be displayed.
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.