Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Button: Difference between revisions

Template page
No edit summary
No edit summary
Line 2: Line 2:


<div class="tpl-button-{{{align|center}}}" style="margin-top:{{{top|0}}}px; margin-bottom:{{{bottom|0}}}px;">
<div class="tpl-button-{{{align|center}}}" style="margin-top:{{{top|0}}}px; margin-bottom:{{{bottom|0}}}px;">
<div class="tpl-button tpl-button-{{{color|red}}}">
<div class="tpl-button tpl-button-{{{color|red}}}" style="width:{{{width|20}}%">
[[{{{link}}}|{{{text}}}]]
[[{{{link}}}|{{{text}}}]]
</div>
</div>

Revision as of 15:40, 2 October 2023

[[{{{link}}}|{{{text}}}]]


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
alignalign

Choose left, center or right. Always full-width on mobile. Defaults as center.

Default
center
Stringoptional
toptop

Create empty space above the button (in pixels, integer only)

Default
0
Numberoptional
bottombottom

Create empty space below the button (in pixels, integer only)

Default
0
Numberoptional
linklink

The URL where you want the button to link

Stringrequired
colorcolor

Choose between red, green, blue, or yellow (default: red)

Default
red
Stringoptional
texttext

The text you want the button to display

Stringrequired