Template:Box-round: Difference between revisions

From Leeds Hackspace Wiki
Jump to navigation Jump to search
(Finally fixed new BoxRound)
m (Changed template data)
 
(4 intermediate revisions by the same user not shown)
Line 16: 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 34: Line 35:
  {{{1|{{{text|{{{content}}}}}}}}}
  {{{1|{{{text|{{{content}}}}}}}}}
</div></includeonly>
</div></includeonly>
<noinclude>{{doc}}</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

Template parameters

ParameterDescriptionTypeStatus
Content1 text content

The contents of this box

Example
[[File:image.png]]<br/>the hackspace
Unbalanced wikitextrequired
Title Backgroundtitlebackground

Title Background color

Example
#cafeda
Unknownoptional
Title Forgroundtitleforeground

Title forground color

Example
#fff
Unknownoptional
Border Radiusborder-radius

Css border radius

Example
8px
Unknownoptional
Title Styletitlestyle

See style

Unknownoptional
Titletitle

Box title

Unknownrequired
Border colorborder

Border colour

Unknownoptional
Body Backgroundbackground

Body Background Colour

Unknownoptional
Body Foregroundforeground

Body Foreground Colour

Unknownoptional
Stylestyle

Css raw style

Example
width: 100px; height: 200px;
Unknownoptional