Template:Clickable button 2/doc: Difference between revisions
Jump to navigation
Jump to search
en>Hans Christian Holm ←Blanked the page |
en>Tegel m Reverted edits by Hans Christian Holm (talk) to last version by Tegel |
||
Line 1: | Line 1: | ||
{{template shortcut|CLB2}} | |||
{{lua|Module:Clickable button 2}} | |||
This template generates a clickable button that is styled using the mediawiki.ui.button module. It can be used in the following ways, | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page}} | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page|Cover page}} | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page|url=http://en.wikipedia.org}} | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-constructive}} | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}} | |||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code> | |||
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-progressive}} | |||
=== See also === | |||
* [[commons:Template:Clickable button]], corresponding clickable button at Commons. | |||
{{Button templates}} | |||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| | |||
<!-- Categories and interwikis go here: --> | |||
[[Category:Wikipedia formatting and function templates]] | |||
[[Category:Wikipedia button templates]] | |||
}}</includeonly> |
Revision as of 14:56, 15 November 2015
This template uses Lua: |
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|Main Page}}
- Result:
- Code:
{{Clickable button 2|Main Page|Cover page}}
- Result:
- Code:
{{Clickable button 2|Main Page|url=http://en.wikipedia.org}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-constructive}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-destructive}}
- Result:
- Code:
{{Clickable button 2|Main Page|class=mw-ui-progressive}}
- Result:
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.