Difference between revisions of "Template:Box-round"

From Leeds Hackspace Wiki
Jump to: navigation, search
(Added template data)
Line 37: Line 37:
 
<noinclude>
 
<noinclude>
 
{{box-round|title=title|content}}
 
{{box-round|title=title|content}}
TODO: DOCUMENT BETTER</noinclude>
+
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": "content"
 +
},
 +
"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"
 +
},
 +
"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>

Revision as of 21:20, 25 September 2019


title

content

TODO: DOCUMENT BETTER

A box with rounded edges Defaults to hackspace colours

Template parameters

ParameterDescriptionTypeStatus
Content1textcontent

The contents of this box

Default
empty
Example
[[File:image.png]]<br/>the hackspace
Auto value
empty
Contentoptional
Title Backgroundtitlebackground

Title Background color

Default
empty
Example
#cafeda
Auto value
empty
Unknownoptional
Title Forgroundtitleforeground

Title forground color

Default
empty
Example
#fff
Auto value
empty
Unknownoptional
Border Radiusborder-radius

Css border radius

Default
empty
Example
8px
Auto value
empty
Unknownoptional
Title Styletitlestyle

See style

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Titletitle

Box title

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Border colorborder

Border colour

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Body Backgroundbackground

Body Background Colour

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Body Foregroundforeground

Body Foreground Colour

Default
empty
Example
empty
Auto value
empty
Unknownoptional
Stylestyle

Css raw style

Default
empty
Example
width: 100px; height: 200px;
Auto value
empty
Unknownoptional