Template:Box/doc

From FamilySearch Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Purpose[edit source]

To easily produce boxes with matching colored titles and borders.

Usage[edit source]

Field Name Usage Description
header optional Valid options: yes or no.
Default: yes.
body optional Valid options: yes or no.
Default: yes.
color optional Valid options: pink, orange, yellow, green, blue and purple.
Default: Gray box title, white background for body, shades of gray for borders.
float optional Valid options: left or right.
Default: left.
top optional If present, positions the box relatively using the specified offset. For example, "top=-60px" moves the box up 60 pixels.
width optional Values can be expressed in either % or px.
Default: adjusts to width of content.
title mandatory The title of the box (unless header=no).
content mandatory The content to be displayed in the box (unless body=no).

Examples[edit source]

Default Box

This box has all default settings.
{{Box 
| title=Default Box
| content=This box has all default settings.
}}

Blue Box

This is some text.
{{Box 
| color=blue 
| float=right
| width=75%
| title=Blue Box
| content=This is some text.
}}

Purple Box

Link to England Genealogy
follow the link above
{{Box 
| color=purple
| title=Purple Box
| content=Link to [[England]]<br>
<small>follow the link</small>
}}

Green Box

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
{{Box 
| color=green
| width=240px
| title=Green Box
| content=Lorem ipsum dolor sit amet, 
consectetuer adipiscing elit, sed diam 
nonummy nibh euismod tincidunt ut laoreet 
dolore magna aliquam erat volutpat. 
}}
This box is displayed with no header
{{Box 
| header=no
| color=orange
| content=This box is displayed with no header
}}

This box is displayed with no header with a darker background

{{Box 
| body=no
| color=pink
| title=This box is displayed with no header with a darker background
}}