Szablon:Button Wyświetl historię

m (make gradient optional)
 
(add template data)
Linia 1: Linia 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>
<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>
{{documentation}}
{{documentation}}
</noinclude>
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "alternate method to add text to the button",
"type": "string",
"suggested": true
},
"padTB": {
"label": "vertical padding in em units"
},
"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",
"suggested": true
}
},
"description": "Add a non-functioning button to a page as an illustration",
"paramOrder": [
"text",
"1",
"bgcolor",
"format",
"padTB",
"padLR",
"style"
]
}
</templatedata>
</noinclude>
</noinclude>

Wersja z 16:34, 5 lip 2017

the button

Documentation icon Template documentation[create]
Please add categories to the /doc subpage.
Subpages of this template.


Add a non-functioning button to a page as an illustration

Parametry szablonu

ParametrOpisTypStatus
the text in the buttontext

brak opisu

Ciąg znakówsugerowany
alternate method to add text to the button1

brak opisu

Ciąg znakówsugerowany
background colorbgcolor

brak opisu

Ciąg znakówopcjonalny
use this to make text boldformat

brak opisu

Wartość domyślna
bold
Wartość logicznaopcjonalny
vertical padding in em unitspadTB

brak opisu

Nieznanyopcjonalny
horizontal (side) padding in em unitspadLR

brak opisu

Nieznanyopcjonalny
CSS style codesstyle

brak opisu

Ciąg znakówopcjonalny