Template:Button View history

(add template data)
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="nowrap" title="This is not a clickable button; it illustrates the button one should find." style="padding:{{{padTB|.2em}}} {{{padLR|.6em}}}; border:1px solid; border-color:#AAA #555 #555 #AAA; {{border-radius|3px}} background-color: {{{bgcolor|#F2F2F2}}}; {{#ifeq:{{{gradient|}}}{{lc:no}}||{{linear-gradient|top|#FCFCFC, #E0E0E0}}}} {{#ifeq:{{{format|}}}|bold|font-weight: bold;}} {{{style|}}}">{{{text|{{{1|the button}}}}}}</span><noinclude>
<noinclude>
{{documentation}}
Template for using stylezed buttons for interanl links. Sytax:
</noinclude>
<pre>
{{Button|Page name|Button link text}}
</pre>
Result:
 
{{Button|Main page|Link to main page}}


</noinclude><includeonly><span class="cta-button">[[{{{1|}}}|{{{1|{{{2|Click here}}}}}}]]</span></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 8: Line 14:
"params": {
"params": {
"1": {
"1": {
"label": "alternate method to add text to the button",
"label": "Page name",
"type": "string",
"description": "The name of the page that will be linked",
"type": "wiki-page-name",
"required": true,
"suggested": true
"suggested": true
},
},
"padTB": {
"2": {
"label": "vertical padding in em units"
"label": "Link text (optional)",
},
"padLR": {
"label": "horizontal (side) padding in em units"
},
"bgcolor": {
"label": "background color",
"type": "string"
},
"format": {
"label": "use this to make text bold",
"type": "boolean",
"default": "bold"
},
"style": {
"label": "CSS style codes",
"type": "string"
},
"text": {
"label": "the text in the button",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
}
}
},
},
"description": "Add a non-functioning button to a page as an illustration",
"description": "Template for adding button"
"paramOrder": [
"text",
"1",
"bgcolor",
"format",
"padTB",
"padLR",
"style"
]
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 13:01, 4 December 2022

Template for using stylezed buttons for interanl links. Sytax:

{{Button|Page name|Button link text}}

Result:

Main page



Template for adding button

Template parameters

ParameterDescriptionTypeStatus
Page name1

The name of the page that will be linked

Page namerequired
Link text (optional)2

no description

Stringsuggested