Template:Clickable button 2/doc: Difference between revisions

From escforumwiki
Jump to navigation Jump to search
en>Jdaloner
Modified <includeonly> section so that "sandbox" subpage won't appear in categories.
en>KnightMiner
m corrected, as the example and the display differed
Line 8: Line 8:
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Home|url=http://en.wikipedia.org}}</nowiki></code>
*'''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}}
**'''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>
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-constructive}}</nowiki></code>

Revision as of 19:46, 16 February 2015

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}}
  • Code: {{Clickable button 2|Main Page|class=mw-ui-progressive}}

See also