Template:Button View history

m (move templatedata to /dco)
m (1 revision imported)
 
(One intermediate revision by one other user 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:
<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>
<templatedata>
{
"params": {
"1": {
"label": "Page name",
"description": "The name of the page that will be linked",
"type": "wiki-page-name",
"required": true,
"suggested": true
},
"2": {
"label": "Link text (optional)",
"type": "string",
"suggested": true
}
},
"description": "Template for adding button"
}
</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