Template:Box/doc: Difference between revisions

From FamilySearch Wiki
(ldstech has been retired)
(Created page with '{{documentation subpage}} == Purpose == To easily produce boxes with matching colored titles and borders. == Usage== {| border="1" !Field Name !! Usage !! Description |- | colo…')
(7 intermediate revisions by one other user not shown)
Line 8: Line 8:
!Field Name !! Usage !! Description
!Field Name !! Usage !! Description
|-
|-
| header || optional || Valid options: <tt>yes</tt> or <tt>no</tt>.<br />Default: yes.
| color || optional || Valid options: <tt>ldstech</tt>, <tt>pink</tt>, <tt>orange</tt>, <tt>yellow</tt>, <tt>green</tt>, <tt>blue</tt> and <tt>purple</tt>.<br />Default: Gray box title, white background for body, shades of gray for borders.
|-
| body || optional || Valid options: <tt>yes</tt> or <tt>no</tt>.<br />Default: yes.
|-
| color || optional || Valid options: <tt>pink</tt>, <tt>orange</tt>, <tt>yellow</tt>, <tt>green</tt>, <tt>blue</tt> and <tt>purple</tt>.<br />Default: Gray box title, white background for body, shades of gray for borders.
|-
|-
| float || optional || Valid options: <tt>left</tt> or <tt>right</tt>.<br />Default: left.
| float || optional || Valid options: <tt>left</tt> or <tt>right</tt>.<br />Default: left.
Line 20: Line 16:
| width || optional || Values can be expressed in either % or px.<br />Default: adjusts to width of content.
| width || optional || Values can be expressed in either % or px.<br />Default: adjusts to width of content.
|-
|-
| title || mandatory || The title of the box (unless <tt>header=no</tt>).
| title || mandatory || The title of the box.
|-
|-
| content || mandatory || The content to be displayed in the box (unless <tt>body=no</tt>).
| content || mandatory || The content to be displayed in the box.
|-
|-
|}
|}
Line 60: Line 56:
| color=purple
| color=purple
| title=Purple Box
| title=Purple Box
| content=Link to [[England]]<br><small>follow the link above</small>
| content=Link to [[MLS]]<br><small>follow the link above</small>
}}
}}
|<pre>
|<pre>
Line 66: Line 62:
| color=purple
| color=purple
| title=Purple Box
| title=Purple Box
| content=Link to [[England]]<br>
| content=Link to [[MLS]]<br>
<small>follow the link</small>
<small>follow the link</small>
}}
}}
Line 87: Line 83:
dolore magna aliquam erat volutpat.  
dolore magna aliquam erat volutpat.  
}}
}}
</pre>
</pre>
</pre>
|-
|-
|{{Box  
|{{Box  
| header=no
| color=ldstech
| color=orange
| float=right
| content=This box is displayed with no header
| width=240px
| title=LDSTech Colors
| content=This box uses the default colors
for the LDSTech skin of the wiki.
}}
}}
|<pre>
|<pre>
{{Box  
{{Box  
| header=no
| color=ldstech
| color=orange
| float=right
| content=This box is displayed with no header
| width=240px
}}
| title=LDSTech Colors
</pre>
| content=This box uses the default colors
|-
for the LDSTech skin of the wiki.
|{{Box
| body=no
| color=pink
| title=This box is displayed with no header with a darker background
}}
|<pre>
{{Box
| body=no
| color=pink
| title=This box is displayed with no header with a darker background
}}
}}
</pre>
</pre>

Revision as of 11:47, 12 November 2009

Purpose[edit source]

To easily produce boxes with matching colored titles and borders.

Usage[edit source]

Field Name Usage Description
color optional Valid options: ldstech, 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.
content mandatory The content to be displayed in the box.

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 MLS
follow the link above
{{Box 
| color=purple
| title=Purple Box
| content=Link to [[MLS]]<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. 
}}

LDSTech Colors

This box uses the default colors

for the LDSTech skin of the wiki.

{{Box 
| color=ldstech
| float=right
| width=240px
| title=LDSTech Colors 
| content=This box uses the default colors
for the LDSTech skin of the wiki. 
}}