Template:Box: Difference between revisions

From Zenith
Jump to navigation Jump to search
Content added Content deleted
m (b test)
(final)
 
(5 intermediate revisions by the same user not shown)
Line 18: Line 18:
--><font color="{{{titleforeground|#FFFFFF}}}"></font>&nbsp;<!--
--><font color="{{{titleforeground|#FFFFFF}}}"></font>&nbsp;<!--
--></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>
<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 ==
To use this, type <nowiki>{{Box|title=Title|Text goes here}}</nowiki>.
'''Usage:''' <code><nowiki>{{Box|title=Title|Text goes here}}</nowiki></code>.
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"1": {},
"1": {
"label": "Content",
"type": "string",
"required": true
},
"border": {
"border": {
"type": "string",
"type": "string",
"default": "#2c8aa1",
"default": "#2C8AA1",
"label": "Border Color"
"label": "Border Color"
},
},
"titlebackground": {
"titlebackground": {
"type": "string",
"type": "string",
"default": "#2c8aa1",
"default": "#2C8AA1",
"label": "Title Background Color"
"label": "Title Background Color"
},
},
Line 54: Line 59:
"label": "Extra CSS",
"label": "Extra CSS",
"type": "string"
"type": "string"
},
"text": {
"label": "Text",
"type": "string",
"required": true
}
}
},
},
Line 64: Line 64:
"1",
"1",
"title",
"title",
"text",
"titleforeground",
"titleforeground",
"titlebackground",
"titlebackground",
"border",
"titlestyle",
"titlestyle",
"style"
"style",
"border"
]
],
"description": "Copied from Horizon."
}
}
</templatedata>
</templatedata>


== Examples ==
Example: {{Box|title=Example Title|Example Content}}
{{Box|title=Title|Text goes here}}
</noinclude>
</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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Content1

no description

Stringrequired
Titletitle

no description

Stringrequired
Title Foreground Colortitleforeground

no description

Default
#FFFFFF
Stringoptional
Title Background Colortitlebackground

no description

Default
#2C8AA1
Stringoptional
Title CSStitlestyle

no description

Stringoptional
Extra CSSstyle

no description

Stringoptional
Border Colorborder

no description

Default
#2C8AA1
Stringoptional

Examples[edit source]

 
Title
Text goes here