Template:Content Box: Difference between revisions
Jump to navigation
Jump to search
(Create a dotted content box) |
(Add font color field) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<div style="background-color: #99AEBB; border-style: dotted;"> | <noinclude> | ||
{{{ | == Usage == | ||
This allows the creation of a segmented off div with styling. | |||
<templatedata> | |||
{ | |||
"description": "Allows for the creation of segemented boxes with variying styles", | |||
"params": { | |||
"bg-color": { | |||
"label": "Background Colour", | |||
"description": "Sets the colour of the Content Box. Must be hex. Defaults to #99AEBB, a dark gray.", | |||
"type": "string", | |||
"default": "#99AEBB" | |||
}, | |||
"bd-style": { | |||
"label": "Border Style", | |||
"description": "Sets the style for the border. Defaults to dotted. Other styles can be found https://developer.mozilla.org/en-US/docs/Web/CSS/border-style.", | |||
"type": "string", | |||
"default": "dotted", | |||
"suggestedvalues": ["dotted","none","solid"] | |||
}, | |||
"content": { | |||
"label": "Content", | |||
"description": "What should be rendered in the content box. Can be other divs.", | |||
"type": "content" | |||
}, | |||
"font-color": { | |||
"label": "Font Color", | |||
"description": "Sets the color for font in the the box", | |||
"default": "black" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
</noinclude> | |||
<div style="background-color: {{{bg-color|#99AEBB}}}; border-style: {{{bd-style|dotted}}}; color:{{{font-color|black}}};"> | |||
{{{content}}} | |||
</div> | </div> |
Latest revision as of 14:40, 7 April 2024
Usage
This allows the creation of a segmented off div with styling.
Allows for the creation of segemented boxes with variying styles
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background Colour | bg-color | Sets the colour of the Content Box. Must be hex. Defaults to #99AEBB, a dark gray.
| String | optional |
Border Style | bd-style | Sets the style for the border. Defaults to dotted. Other styles can be found https://developer.mozilla.org/en-US/docs/Web/CSS/border-style.
| String | optional |
Content | content | What should be rendered in the content box. Can be other divs. | Content | optional |
Font Color | font-color | Sets the color for font in the the box
| Unknown | optional |
{{{content}}}