Template:Button: Difference between revisions
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"..." |
m Protected "Template:Button" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
||
(No difference)
|
Latest revision as of 02:54, 14 March 2025
[[{{{link}}}|
]]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
align | align | Choose left, center or right. Always full-width on mobile. Defaults as center.
| String | optional |
text | text | The text you want the button to display | String | required |
link | link | The URL where you want the button to link | String | required |
color | color | Choose between red, green, blue, or yellow (default: red)
| String | optional |
top | top | Create empty space above the button (in pixels, integer only)
| Number | optional |
bottom | bottom | Create empty space below the button (in pixels, integer only)
| Number | optional |
width | width | Specify button width. Expressed in percentage points. Recommended: 20%.
| Number | optional |
[[{{{link}}}|
]]
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
align | align | Choose left, center or right. Always full-width on mobile. Defaults as center.
| String | optional |
text | text | The text you want the button to display | String | required |
link | link | The URL where you want the button to link | String | required |
color | color | Choose between red, green, blue, or yellow (default: red)
| String | optional |
top | top | Create empty space above the button (in pixels, integer only)
| Number | optional |
bottom | bottom | Create empty space below the button (in pixels, integer only)
| Number | optional |
width | width | Specify button width. Expressed in percentage points. Recommended: 20%.
| Number | optional |