Template:Clickable Button: Difference between revisions

From HorizonXI Wiki
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Languages|Template:Clickable Button/doc}}
{{#invoke:Clickable Button}}
{{Documentation subpage}}
{{lua|Module: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,
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}}</nowiki></code>
**'''Result: '''{{Clickable Button|Main Page}}
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|Cover page}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|Cover page}}</nowiki></code>
**'''Result: '''{{Clickable Button|Main Page|Cover page}}
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|url=http://en.wikipedia.org}}</nowiki></code>
**'''Result: '''{{Clickable Button|Main Page|url=http://en.wikipedia.org}}
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-destructive}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-destructive}}</nowiki></code>
**'''Result: '''{{Clickable Button|Main Page|class=mw-ui-destructive}}
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-progressive}}</nowiki></code>
*'''Code: '''<code><nowiki>{{Clickable Button|Main Page|class=mw-ui-progressive}}</nowiki></code>
**'''Result: '''{{Clickable Button|Main Page|class=mw-ui-progressive}}
'''Note: '''After the changes outlined in Phabricator task {{Phab|T110555}} were implemented, <code><nowiki>{{Clickable Button|Main Page|class=mw-ui-constructive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable Button|Main Page|class=mw-ui-progressive}}</nowiki></code>.
=== See also ===
* [[commons:Template:Clickable Button]], corresponding clickable button at Commons.


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||


}}</includeonly>
}}</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}}