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>{{ | {{Button|color=white}} → <nowiki>{{Button|color=white}}</nowiki> | ||
{{Button|color=red}} → <nowiki>{{ | {{Button|color=red}} → <nowiki>{{Button|color=red}}</nowiki> | ||
{{Button|color=blue}} → <nowiki>{{ | {{Button|color=blue}} → <nowiki>{{Button|color=blue}}</nowiki> | ||
[[target|{{Button|text}}]] → <nowiki>[[target|{{ | [[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
Example[edit]
→ {{Button|color=white}}
→ {{Button|color=red}}
→ {{Button|color=blue}}
→ [[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.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Label | text 1 | no description | Content | required |
| Color of the button | color | Can be blue (progressive), red (destructive) or white | String | suggested |