Jump to navigation Jump to search

Template:Content box: Difference between revisions

No edit summary
Tag: Reverted
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<div style="margin:2px;background-color:#6a4e29;border:1px solid #6c502a;padding:8px;">
<div style="margin:2px;background-color:{{{bgcolor|#6a4e29}}};border:{{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|6c502a}}};padding:8px;">
   <div align="center" style="margin-bottom:8px;padding:6px;background-color:{{{title-bgcolor|Tan}}};border:{{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|Tan}}};font-size:{{{font-size|200%}}};color:{{{title-color|#fff}}};">{{{title|Title}}}</div>{{{content|put content here}}}
   <div align="center" style="margin-bottom:8px;padding:6px;background-color:{{{title-bgcolor|Tan}}};border:{{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|Tan}}};font-size:{{{font-size|200%}}};color:{{{title-color|Gold}}};">{{{title|Title}}}</div>{{{content|put content here}}}
</div><noinclude>
</div><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:templates]]
[[Category:templates]]
</noinclude>
</noinclude>

Latest revision as of 16:23, 22 July 2024

Title
put content here
Template documentation (for the above template, sometimes hidden or invisible)
Template:Tocright

{{Content box}} is a content template that produces a box of content with a heading. It is primarily used on portal pages and should not be used on other content pages.

Alternatively, {{Content box start}} and {{Content box end}} can be used to encapsulate content in a content box.

Usage

{{Content box
| title   = 
| content = 

| bgcolor       = 
| border-width  = 
| border-style  = 
| border-color  = 
| title-bgcolor = 
| font-size     = 
| title-color   = 
}}

Only title and content are required.

{{Content box start
| title = 
}}

...

{{Content box end}}

Examples

{{Content box
| title   = Aroden's Bathtub
| content = It's where Aroden was murdered in his sleep.
}}
Aroden's Bathtub
It's where Aroden was murdered in his sleep.
{{Content box start
| title = This is a true fact
}}

Aroden slipped and fell. That's how it happened. But who put the soap on the floor? Was it............ Rovagug????

{{Content box end}}
This is a true fact

Aroden slipped and fell. That's how it happened. But who put the soap on the floor? Was it............ Rovagug????


Visit Template:Content box/doc to edit this text! (How does this work?)