Template:Clickable button 2: Difference between revisions

From Resistance in Belgium
(Created page with "<span class="button"> <a href="{{{1}}}" class="mw-ui-button mw-ui-progressive" title="{{{2|}}}"> {{{3}}} </a> </span>")
No edit summary
Tag: Reverted
Line 1: Line 1:
<span class="button">
{{Languages|Template:Clickable button 2/doc}}
  <a href="{{{1}}}" class="mw-ui-button mw-ui-progressive" title="{{{2|}}}">
{{Documentation subpage}}
    {{{3}}}
{{lua|Module:Clickable button 2}}
  </a>
 
</span>
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 2|Main Page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|Cover page}}</nowiki></code>
**'''Result: '''{{Clickable button 2|Main Page|Cover page}}
*'''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}}
*'''Code: '''<code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-destructive}}</nowiki></code>
**'''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-constructive}}</nowiki></code> produces the same output as <code><nowiki>{{Clickable button 2|Main Page|class=mw-ui-progressive}}</nowiki></code>.
 
=== See also ===
* [[commons:Template:Clickable button]], corresponding clickable button at Commons.
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
}}</includeonly>

Revision as of 12:13, 21 September 2024

Template:Languages {{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also

{{#ifeq:Clickable button 2|sandbox||

}}

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also

{{#ifeq:Clickable button 2|sandbox||

}}

  • Code: {{Clickable button 2|Main Page|url=http://en.wikipedia.org}}

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also

{{#ifeq:Clickable button 2|sandbox||

}}

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also

{{#ifeq:Clickable button 2|sandbox||

}}

{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 {{#switch:

| = {{#if:{{#ifexpr: ( {{#ifeq:clickable button 2|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:clickable button 2|-1|-2}}|doc|1|0}} and {{#if:|1|0}} ) )|1|}}

    | 

{{#ifeq:show |show

         | Template:Mbox
        }}{{#if: |
         |   {{#ifexist:Template:Clickable button 2
                  | [[Category:{{#switch:Template
                          | Template | Project = Template
                          | Module   = Module
                          | User     = User
                          | #default = MediaWiki
                      }} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} Template:Lua

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,

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also

{{#ifeq:Clickable button 2|sandbox||

}}

Note: After the changes outlined in Phabricator task Template:Phab were implemented, {{Clickable button 2|Main Page|class=mw-ui-constructive}} produces the same output as {{Clickable button 2|Main Page|class=mw-ui-progressive}}.

See also