Template:Box: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
DoctorTricky (talk | contribs) (border color) |
Jhmaster2000 (talk | contribs) (final) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="clear: both;"></div> |
<div style="clear: both;"></div> |
||
<div style="border: 1px solid {{{border|# |
<div style="border: 1px solid {{{border|#2c8aa1}}};<!-- |
||
-->background: {{{titlebackground|# |
-->background: {{{titlebackground|#2c8aa1}}};<!-- |
||
-->color: {{{titleforeground|# |
-->color: {{{titleforeground|#FFFFFF}}};<!-- |
||
-->padding: 0.1em;<!-- |
-->padding: 0.1em;<!-- |
||
-->text-align: center;<!-- |
-->text-align: center;<!-- |
||
Line 16: | Line 16: | ||
-->font-size: 80%;<!-- |
-->font-size: 80%;<!-- |
||
-->padding-right: 0.5em;"><!-- |
-->padding-right: 0.5em;"><!-- |
||
--><font color="{{{titleforeground|# |
--><font color="{{{titleforeground|#FFFFFF}}}"></font> <!-- |
||
--></span ><!-- |
--></span ><!-- |
||
--><div style="font-size: 100%;font-weight: bold;border: none; margin: 0; padding: 0; padding-bottom: 0.1em;"><font color="{{{titleforeground|# |
--><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|# |
<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}}}</div> |
||
<noinclude> |
<noinclude> |
||
== Template Info == |
|||
'''Usage:''' <code><nowiki>{{Box|title=Title|Text goes here}}</nowiki></code>. |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Content", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"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" |
|||
}, |
|||
"titlestyle": { |
|||
"label": "Title CSS", |
|||
"type": "string" |
|||
}, |
|||
"title": { |
|||
"type": "string", |
|||
"required": true, |
|||
"label": "Title" |
|||
}, |
|||
"style": { |
|||
"label": "Extra CSS", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"paramOrder": [ |
|||
"1", |
|||
"title", |
|||
"titleforeground", |
|||
"titlebackground", |
|||
"titlestyle", |
|||
"style", |
|||
"border" |
|||
], |
|||
"description": "Copied from Horizon." |
|||
} |
|||
</templatedata> |
|||
== Examples == |
|||
{{Box|title=Title|Text goes here}} |
|||
</noinclude> |
Latest revision as of 13:08, 30 March 2021
{{{title}}}
{{{1}}}
Template Info[edit source]
Usage: {{Box|title=Title|Text goes here}}
.
Copied from Horizon.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 | no description | String | required |
Title | title | no description | String | required |
Title Foreground Color | titleforeground | no description
| String | optional |
Title Background Color | titlebackground | no description
| String | optional |
Title CSS | titlestyle | no description | String | optional |
Extra CSS | style | no description | String | optional |
Border Color | border | no description
| String | optional |
Examples[edit source]
Title
Text goes here