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[create]
Add a non-functioning button to a page as an illustration
Parametr | Opis | Typ | Status | |
---|---|---|---|---|
the text in the button | text | brak opisu | Ciąg znaków | sugerowany |
alternate method to add text to the button | 1 | brak opisu | Ciąg znaków | sugerowany |
background color | bgcolor | brak opisu | Ciąg znaków | opcjonalny |
use this to make text bold | format | brak opisu
| Wartość logiczna | opcjonalny |
vertical padding in em units | padTB | brak opisu | Nieznany | opcjonalny |
horizontal (side) padding in em units | padLR | brak opisu | Nieznany | opcjonalny |
CSS style codes | style | brak opisu | Ciąg znaków | opcjonalny |