Template:Clickable Button: Difference between revisions

From HorizonXI Wiki
(Created page with "<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{text|{{{1|Button text}}}}}}</span>")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="mw-ui-button {{#switch: {{{color|white}}} | red = mw-ui-destructive | green = mw-ui-progressive | white = | blue = mw-ui-progressive}}" role="button" aria-disabled="false">{{{text|{{{1|Button text}}}}}}</span>
{{#invoke:Clickable Button}}
 
This template generates a clickable button that is styled using a fork of the deprecated mediawiki.ui.button module. It can be used in the following ways,
 
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|Cover page}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-destructive}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-progressive}}</nowiki></code>
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
}}</includeonly>

Latest revision as of 01:07, 12 September 2024

Script error: You must specify a function to call.

This template generates a clickable button that is styled using a fork of the deprecated mediawiki.ui.button module. It can be used in the following ways,

  • Code: {{Clickable Button|Main Page}}
  • Code: {{Clickable Button|Main Page|Cover page}}
  • Code: {{Clickable Button|Main Page|url=http://en.wikipedia.org}}
  • Code: {{Clickable Button|Main Page|class=mw-ui-destructive}}
  • Code: {{Clickable Button|Main Page|class=mw-ui-progressive}}