Jump to content

Template:Button

From Marxist Wiki
Revision as of 02:54, 14 March 2025 by Thehighwayman (talk | contribs) (Created page with "<templatestyles src="Button/style.css" /> [[{{{link}}}| <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}}}" style="width:{{{width|20}}}%"> {{{text}}} </div> </div> ]] <noinclude> <templatedata> { "params": { "align": { "description": "Choose left, center or right. Always full-width on mobile. Defaults as center.", "type": "string", "default": "center"...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

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