Template
Header
From Dogcraft Wiki
m (vertical centering) |
m (style parameter) |
||
Line 1: | Line 1: | ||
<h3 style="padding:0.3em 0.4em; {{{margin|margin:10px 0 10px 0;}}} border:1px solid {{{2|{{main-color}}}}}; background:{{{2|{{main-color}}}}}; color:white; font-size:140%; text-align:center; display:flex; flex-direction:column; justify-content:center;">'''{{{1}}}'''</h3><noinclude>[[Category:Templates]]</noinclude>__NOTOC__ | <h3 style="padding:0.3em 0.4em; {{{margin|margin:10px 0 10px 0;}}} border:1px solid {{{2|{{main-color}}}}}; background:{{{2|{{main-color}}}}}; color:white; font-size:140%; text-align:center; display:flex; flex-direction:column; justify-content:center; {{{style|}}}">'''{{{1}}}'''</h3><noinclude>[[Category:Templates]]</noinclude>__NOTOC__ | ||
<noinclude> | <noinclude> | ||
<templatedata> | <templatedata> | ||
Line 33: | Line 33: | ||
"type": "string", | "type": "string", | ||
"default": "margin:10px 0 10px 0;" | "default": "margin:10px 0 10px 0;" | ||
}, | |||
"style": { | |||
"label": "Further styles", | |||
"description": "Optional parameter for setting further CSS.", | |||
"example": "width: 200px; margin:0.2em;", | |||
"type": "string" | |||
} | } | ||
}, | }, | ||
Line 39: | Line 45: | ||
"1", | "1", | ||
"2", | "2", | ||
"margin" | "margin", | ||
"style" | |||
], | ], | ||
"description": "Used to generate a box header with a colored background" | "description": "Used to generate a box header with a colored background" |
Revision as of 12:26, 15 August 2022
{{{1}}}
Used to generate a box header with a colored background
Parameter | Description | Type | Status | |
---|---|---|---|---|
Header text | 1 content text | Used to set the header's text
| String | required |
Background color | 2 color | Used to set color of the header background.
| String | optional |
Margin | margin inline-css | Used to set custom margins.
| String | optional |
Further styles | style | Optional parameter for setting further CSS.
| String | optional |
This page was last modified on 15 August 2022, at 12:26. (11 months ago)