Template:Box: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="border:1px solid {{{border_color|}}}; padding: 1px; margin-bottom: 5px;"> | <includeonly><div style="border:1px solid {{{border_color|}}}; padding: 1px; margin-bottom: 5px; {{{outer_style|}}}">{{#if:{{{header|}}}|<div style="margin-bottom: 1px; background-color: {{{header_background_color|}}}; padding: 8px; text-align: center; {{{header_style|}}}"><h2 style="font-size: 14px; line-height: 14px; font-weight: bold; border-bottom: none; margin: 0; padding: 0;">{{{header|}}}</h2></div>|}} | ||
<div style="background-color: {{{background_color|}}}; padding: 15px; text-align: center; {{{content_style|}}}">{{{content|}}} | <div style="background-color: {{{background_color|}}}; padding: 15px; text-align: center; {{{content_style|}}}">{{{content|}}} | ||
</div>{{#if:{{{subcontent|}}}|<div style="margin-top: 1px; background-color: {{{secondary_background_color}}}; padding: 8px; text-align: center; {{{subcontent_style|}}}"><!-- No <p>. Don't remove this line. -->{{{subcontent|}}}</div>|}}</div></includeonly><noinclude>Usage: | </div>{{#if:{{{subcontent|}}}|<div style="margin-top: 1px; background-color: {{{secondary_background_color}}}; padding: 8px; text-align: center; {{{subcontent_style|}}}"><!-- No <p>. Don't remove this line. -->{{{subcontent|}}}</div>|}}</div></includeonly><noinclude>Usage: | ||
Line 21: | Line 21: | ||
</pre> | </pre> | ||
with custom stylings: | with custom stylings and header: | ||
<pre> | <pre> | ||
{{Box | {{Box | ||
|border_color=#ddd | |border_color=#ddd | ||
|background_color=#f6f6f6 | |background_color=#f6f6f6 | ||
|header_background_color=#eee | |||
|outer_style=margin-bottom:10px; | |||
|secondary_background_color=#efefef | |secondary_background_color=#efefef | ||
|content_style=padding:5px; | |content_style=padding:5px; | ||
|subcontent_style=text-align:left; | |subcontent_style=text-align:left; | ||
|header=Header | |||
|content=Hello this is a box | |content=Hello this is a box | ||
|subcontent=I'm secondary content | |subcontent=I'm secondary content |
Latest revision as of 19:32, 18 March 2012
Usage:
{{Box |border_color=#ddd |background_color=#f6f6f6 |content=Hello this is a box }}
with sub content:
{{Box |border_color=#ddd |background_color=#f6f6f6 |secondary_background_color=#efefef |content=Hello this is a box |subcontent=I'm secondary content }}
with custom stylings and header:
{{Box |border_color=#ddd |background_color=#f6f6f6 |header_background_color=#eee |outer_style=margin-bottom:10px; |secondary_background_color=#efefef |content_style=padding:5px; |subcontent_style=text-align:left; |header=Header |content=Hello this is a box |subcontent=I'm secondary content }}