Template:Clickable-button/doc: Difference between revisions

From Gulf States Flood Help
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
== Example ==
== Example ==
{{Clickable button|color=white}} → <nowiki>{{Clickable button|color=white}}</nowiki>
{{Clickable-button|color=white}} → <nowiki>{{Clickable-button|color=white}}</nowiki>


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


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


[[target|{{Clickable 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>. Or better use {{tl|clickable button 2}} which adds links automatically)
[[target|{{Clickable-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>.
== Templatedata ==
== Templatedata ==
<templatedata>
<templatedata>

Latest revision as of 15:45, 13 December 2024

Example

Button text → {{Clickable-button|color=white}}

Button text → {{Clickable-button|color=red}}

Button text → {{Clickable-button|color=blue}}

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

Templatedata

Creates a OOUI styled button.

Template parameters

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