Template:Box: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Jhmaster2000 (talk | contribs) mNo edit summary |
Jhmaster2000 (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
<div style="border: 1px solid {{{border|#2c8aa1}}};<!-- |
<div style="border: 1px solid {{{border|#2c8aa1}}};<!-- |
||
-->background: {{{titlebackground|#2c8aa1}}};<!-- |
-->background: {{{titlebackground|#2c8aa1}}};<!-- |
||
-->color: {{{titleforeground|# |
-->color: {{{titleforeground|#FFFFFF}}};<!-- |
||
-->padding: 0.1em;<!-- |
-->padding: 0.1em;<!-- |
||
-->text-align: center;<!-- |
-->text-align: center;<!-- |
||
Line 19: | Line 19: | ||
--></span ><!-- |
--></span ><!-- |
||
--><div style="font-size: 100%;font-weight: bold;border: none; margin: 0; padding: 0; padding-bottom: 0.1em;"><font color="{{{titleforeground|#FFFFFF}}}">{{{title}}}</font></div></div> |
--><div style="font-size: 100%;font-weight: bold;border: none; margin: 0; padding: 0; padding-bottom: 0.1em;"><font color="{{{titleforeground|#FFFFFF}}}">{{{title}}}</font></div></div> |
||
<div style="display: block; border: 1px solid {{{border|#2c8aa1}}}; vertical-align: top; margin-bottom: 10px; padding: .8em 1em 1em 1.3em; margin-top: 0em; border-radius: 0 0 1.5em 1.5em; {{{style|}}};">{{{1|{{{text |
<div style="display: block; border: 1px solid {{{border|#2c8aa1}}}; vertical-align: top; margin-bottom: 10px; padding: .8em 1em 1em 1.3em; margin-top: 0em; border-radius: 0 0 1.5em 1.5em; {{{style|}}};">{{{1|{{{text}}}}}}</div> |
||
<noinclude> |
<noinclude> |
||
Line 27: | Line 27: | ||
"params": { |
"params": { |
||
"1": {}, |
"1": {}, |
||
"border": { |
"border": { |
||
" |
"type": "string", |
||
" |
"default": "#2c8aa1", |
||
"label": "Border Color" |
|||
⚫ | |||
}, |
|||
" |
"titlebackground": { |
||
"type": "string", |
|||
"default": "#2c8aa1", |
|||
"label": "Title Background Color" |
|||
}, |
|||
"titleforeground": { |
|||
"default": "#FFFFFF", |
|||
"type": "string", |
|||
"label": "Title Foreground Color" |
|||
}, |
|||
⚫ | |||
"label": "Title CSS", |
|||
"type": "string" |
|||
}, |
|||
"title": { |
|||
"type": "string", |
|||
"required": true, |
|||
"label": "Title" |
|||
}, |
|||
"style": { |
|||
"label": "Extra CSS", |
|||
"type": "string" |
|||
}, |
|||
"text": {}, |
"text": {}, |
||
"content": {} |
"content": {} |
||
} |
}, |
||
"paramOrder": [ |
|||
"1", |
|||
"title", |
|||
"text", |
|||
"content", |
|||
"titleforeground", |
|||
"titlebackground", |
|||
"border", |
|||
"titlestyle", |
|||
"style" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Example: {{Box|title=Example Title|Example Content}} |
|||
</noinclude> |
</noinclude> |
Revision as of 11:55, 30 March 2021
{{{title}}}
{{{text}}}
To use this, type {{Box|title=Title|Text goes here}}.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | no description | Unknown | optional |
Title | title | no description | String | required |
text | text | no description | Unknown | optional |
content | content | no description | Unknown | optional |
Title Foreground Color | titleforeground | no description
| String | optional |
Title Background Color | titlebackground | no description
| String | optional |
Border Color | border | no description
| String | optional |
Title CSS | titlestyle | no description | String | optional |
Extra CSS | style | no description | String | optional |
Example:
Example Title
Example Content