Template:Clickable button 2/doc: Difference between revisions
Jump to navigation
Jump to search
en>Tegel m Reverted edits by Hans Christian Holm (talk) to last version by Tegel |
en>CabbagePotato Removed {{Clickable button 2|Main Page|class=mw-ui-progressive}} example; added note about phab:T110555 |
||
Line 14: | Line 14: | ||
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code> | *'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code> | ||
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}} | **'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-destructive}} | ||
'''Note: '''After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code>. | |||
=== See also === | === See also === |
Revision as of 00:59, 22 March 2016
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:
Note: After the changes outlined in Phabricator task T110555 were implemented, {{Clickable button 2|Main Page|class=mw-ui-progressive}}
produces the same output as {{Clickable button 2|Main Page|class=mw-ui-constructive}}
.
See also
- commons:Template:Clickable button, corresponding clickable button at Commons.