Template:Clickable button 2/doc: Difference between revisions

From escforumwiki
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}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>
 
**'''Result: '''{{Clickable button 2|Main Page|class=mw-ui-progressive}}
'''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 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}}
  • 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-constructive}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-destructive}}

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