PathfinderWiki
Log in

Difference between revisions of "Template:Content box start"

From PathfinderWiki
(Initial edit)
 
(Avoid bwarm)
 
Line 1: Line 1:
<div style="margin:2px;background-color:{{{bgcolor|Beige}}};border:{{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|DarkGray}}};padding:8px;">
+
<includeonly><div style="margin:2px;background-color:{{{bgcolor|Beige}}};border:{{{border-width|1px}}} {{{border-style|solid}}} {{{border-color|DarkGray}}};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><noinclude>
+
   <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></includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
[[Category:Content templates|Content box start]]
 
[[Category:Content templates|Content box start]]
 
</noinclude>
 
</noinclude>

Latest revision as of 23:51, 14 November 2014

Template documentation (for the above template, sometimes hidden or invisible)

{{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????