Template:Button: Difference between revisions

From LOTR-TCG 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-disable...")
 
No edit summary
 
Line 2: Line 2:


== Example ==
== Example ==
{{Button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki>
{{Button|color=white}} → <nowiki>{{Button|color=white}}</nowiki>


{{Button|color=red}} → <nowiki>{{Clickable button|color=red}}</nowiki>
{{Button|color=red}} → <nowiki>{{Button|color=red}}</nowiki>


{{Button|color=blue}} → <nowiki>{{Clickable button|color=blue}}</nowiki>
{{Button|color=blue}} → <nowiki>{{Button|color=blue}}</nowiki>


[[target|{{Button|text}}]] → <nowiki>[[target|{{Clickable button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{Clickable button|text}}]]</nowiki>. )
[[target|{{Button|text}}]] → <nowiki>[[target|{{Button|text}}]]</nowiki> (for links. To add links, transclude this template inside wikilinks after the pipebar: <nowiki>[[target title|{{Button|text}}]]</nowiki>. )
== Templatedata ==
== Templatedata ==
<templatedata>
<templatedata>

Latest revision as of 06:55, 5 October 2022

Button text

Example[edit]

Button text → {{Button|color=white}}

Button text → {{Button|color=red}}

Button text → {{Button|color=blue}}

text → [[target|{{Button|text}}]] (for links. To add links, transclude this template inside wikilinks after the pipebar: [[target title|{{Button|text}}]]. )

Templatedata[edit]

Creates a OOUI styled button.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Labeltext 1

no description

Contentrequired
Color of the buttoncolor

Can be blue (progressive), red (destructive) or white

Stringsuggested