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
(test 2)
No edit summary
Line 5: Line 5:
<div class="tpl-button tpl-button-{{{color|red}}}" style="width:{{{width|20}}}%">
<div class="tpl-button tpl-button-{{{color|red}}}" style="width:{{{width|20}}}%">
[[{{{link}}}|
[[{{{link}}}|
<div style="background-color:rgba(0,0,0,0);width:100%;height:100%;">
<div class="tpl-button" style="background-color:rgba(0,0,0,0);width:100%;height:100%;">
{{{text}}}
{{{text}}}
</div>
</div>

Revision as of 21:21, 12 May 2024


[[{{{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
texttext

The text you want the button to display

Stringrequired
linklink

The URL where you want the button to link

Stringrequired
colorcolor

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

Default
red
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
widthwidth

Specify button width. Expressed in percentage points. Recommended: 20%.

Default
20
Numberoptional