Template:Box-round: Difference between revisions
Jump to navigation
Jump to search
(Update to fix all previous style issues) |
m (Changed template data) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>__NOEDITSECTION__ __NOTOC__<div style="clear: both;"></div> | ||
<div style="clear: both;"></div> | |||
<div style="background: {{{titlebackground|#5f9fbc}}}; | <div style="background: {{{titlebackground|#5f9fbc}}}; | ||
color: {{{titleforeground|#000}}}; | color: {{{titleforeground|#000}}}; | ||
Line 10: | Line 9: | ||
border-bottom: none; | border-bottom: none; | ||
border-radius: {{{border-radius|8px 8px 0 0}}}; | border-radius: {{{border-radius|8px 8px 0 0}}}; | ||
{{{titlestyle|}}};"> | {{{titlestyle|}}};"> | ||
{{navbar|Box-round|mini=y|style=float:right;margin-bottom:.1em;font-size:80%;padding-right:0.5em;}} | {{navbar|Box-round|mini=y|style=float:right;margin-bottom:.1em;font-size:80%;padding-right:0.5em;}} | ||
Line 18: | Line 16: | ||
margin: 0; | margin: 0; | ||
padding:0; | padding:0; | ||
padding-bottom:.1em; | padding-bottom:.1em; | ||
font-family: sans-serif; | |||
color: {{{titleforeground|#fff}}};"> | color: {{{titleforeground|#fff}}};"> | ||
{{{title}}}</h2> | {{{title}}}</h2> | ||
Line 29: | Line 28: | ||
background: {{{background|#fff}}}; | background: {{{background|#fff}}}; | ||
color: {{{foreground|#000}}}; | color: {{{foreground|#000}}}; | ||
padding: .8em 1em 1em 1.3em; | padding: .8em 1em 1em 1.3em; | ||
margin-top: 0em; | margin-top: 0em; | ||
margin-bottom: 10px; | |||
border-radius: {{{border-radius|0 0 8px 8px}}}; | border-radius: {{{border-radius|0 0 8px 8px}}}; | ||
{{{style|}}};"> | {{{style|}}};"> | ||
{{{1|{{{text|{{{content}}}}}}}}} | {{{1|{{{text|{{{content}}}}}}}}} | ||
</div> | </div></includeonly> | ||
</includeonly> | <noinclude> | ||
<noinclude>{{ | {{box-round|title=title|content}} | ||
TODO: DOCUMENT BETTER | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"aliases": [ | |||
"text", | |||
"content" | |||
], | |||
"label": "Content", | |||
"description": "The contents of this box", | |||
"example": "[[File:image.png]]<br/>the hackspace", | |||
"type": "unbalanced-wikitext", | |||
"required": true | |||
}, | |||
"titlebackground": { | |||
"label": "Title Background", | |||
"description": "Title Background color", | |||
"example": "#cafeda" | |||
}, | |||
"titleforeground": { | |||
"label": "Title Forground", | |||
"description": "Title forground color", | |||
"example": "#fff" | |||
}, | |||
"border-radius": { | |||
"label": "Border Radius", | |||
"description": "Css border radius", | |||
"example": "8px" | |||
}, | |||
"titlestyle": { | |||
"label": "Title Style", | |||
"description": "See style" | |||
}, | |||
"title": { | |||
"label": "Title", | |||
"description": "Box title", | |||
"required": true | |||
}, | |||
"border": { | |||
"label": "Border color", | |||
"description": "Border colour" | |||
}, | |||
"background": { | |||
"label": "Body Background", | |||
"description": "Body Background Colour" | |||
}, | |||
"foreground": { | |||
"label": "Body Foreground", | |||
"description": "Body Foreground Colour" | |||
}, | |||
"style": { | |||
"label": "Style", | |||
"description": "Css raw style", | |||
"example": "width: 100px; height: 200px;" | |||
} | |||
}, | |||
"description": "A box with rounded edges\n\nDefaults to hackspace colours" | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 20:27, 25 September 2019
title
content
TODO: DOCUMENT BETTER
A box with rounded edges Defaults to hackspace colours
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 text content | The contents of this box
| Unbalanced wikitext | required |
Title Background | titlebackground | Title Background color
| Unknown | optional |
Title Forground | titleforeground | Title forground color
| Unknown | optional |
Border Radius | border-radius | Css border radius
| Unknown | optional |
Title Style | titlestyle | See style | Unknown | optional |
Title | title | Box title | Unknown | required |
Border color | border | Border colour | Unknown | optional |
Body Background | background | Body Background Colour | Unknown | optional |
Body Foreground | foreground | Body Foreground Colour | Unknown | optional |
Style | style | Css raw style
| Unknown | optional |