Template:ButtonLink: Difference between revisions

(Autogenerated)
 
(Autogenerated)
 
Line 1: Line 1:
<noinclude>Inspired by https://www.mediawiki.org/wiki/Template:Clickable_button_2
<noinclude>Inspired by https://www.mediawiki.org/wiki/Template:Clickable_button_2
</noinclude><includeonly><div>{{#ifeq:{{#switch: {{{external}}}|yes|ja=yes}} |yes|<span class="plainlinks">[{{{target}}} <span role="button" class="mw-ui-button {{#switch: {{{format}}}|blue|blau=mw-ui-progressive|red|rot=mw-ui-destructive|}}">{{{label}}}</span>]</span>|[[{{{target}}}|<span role="button" class="mw-ui-button {{#switch: {{{format}}}|blue|blau=mw-ui-progressive|red|rot=mw-ui-destructive|}}">{{{label}}}</span>]]}}</div></includeonly>
</noinclude><includeonly>{{#ifeq:{{#switch: {{{external}}}|yes|ja=yes}} |yes|<span class="plainlinks">[{{{target}}} <span role="button" class="mw-ui-button {{#switch: {{{format}}}|blue|blau=mw-ui-progressive|red|rot=mw-ui-destructive|}}">{{{label}}}</span>]</span>|[[{{{target}}}|<span role="button" class="mw-ui-button {{#switch: {{{format}}}|blue|blau=mw-ui-progressive|red|rot=mw-ui-destructive|}}">{{{label}}}</span>]]}}</includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>

Latest revision as of 22:28, 23 October 2023

Inspired by https://www.mediawiki.org/wiki/Template:Clickable_button_2


Styles a text link as button

Template parameters

ParameterDescriptionTypeStatus
Is this an external link?external

Link needs to start with http:// or https://

Default
no
Example
no, yes
Booleansuggested
Link targettarget

no description

Unknownrequired
Label label

no description

Unknownrequired
Background color (leave empty for white)format

no description

Example
blue, red
Unknownsuggested