Template:Box: Difference between revisions

From FamilySearch Wiki
m (category)
(add in test for empty {{{title}}})
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{| style="margin: .5em .5em .5em .5em; {{#if: {{{width|}}} | width:{{{width}}};|}} float:{{{float|left}}}; {{#if: {{{top}}} |  position:relative; z-index: 100; top:{{{top|0px}}};|}}"
<includeonly>{| width="{{{width}}}" style="float:{{{float}}}; {{#if: {{{top}}} |  position:relative; top:{{{top}}};}}"
| class="MainPageBG" style="width:100%; border:1px solid #{{ #switch: {{{color}}}  
| class="MainPageBG" style="width:100%; border:1px solid #{{ #switch: {{{color}}}  
| pink=f2cedf
| pink=f2cedf
Line 18: Line 18:
| ldstech=e5e3cf
| ldstech=e5e3cf
| #default=ffffff
| #default=ffffff
}}; vertical-align:top;"|
}}; vertical-align:top;"
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; margin-bottom: 0px; background:#{{ #switch: {{{color}}}  
{{#if {{{title}}} |
|  
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#{{ #switch: {{{color}}}  
| pink=fff5fa
| pink=fff5fa
| orange=fffaf5
| orange=fffaf5
Line 29: Line 31:
| #default=ffffff
| #default=ffffff
}};"
}};"
! {{ #switch: {{{header|yes}}}
! <p style="margin:0; background:#{{ #switch: {{{color}}}  
| no =
| yes = <p style="margin:0; background:#{{ #switch: {{{color}}}  
| pink=f2cedf
| pink=f2cedf
| orange=f2dfce
| orange=f2dfce
Line 40: Line 40:
| ldstech=e5e3cf
| ldstech=e5e3cf
| #default=dddddd
| #default=dddddd
}}; {{ #switch: {{{body|yes}}} | no = font-size:100%; font-weight:normal | yes = font-size:120%; font-weight:bold}}; border:1px solid #{{ #switch: {{{color}}}  
}}; font-size:120%; font-weight:bold; border:1px solid #{{ #switch: {{{color}}}  
| pink=bfa3b0
| pink=bfa3b0
| orange=bfb0a3
| orange=bfb0a3
Line 49: Line 49:
| ldstech=999999
| ldstech=999999
| #default=aaaaaa
| #default=aaaaaa
}}; text-align:{{{title-align|left}}}; color:#000; padding:0.2em 0.4em;">{{{title}}}</p>
}}; text-align:left; color:#000; padding:0.2em 0.4em;">{{{title}}}</p>  
}}
|-
|-
{{ #switch: {{{body|yes}}} | no = | yes = {{!}} style="color:#000;" {{!}} {{{content}}} }}
| }}
| style="color:#000;"| {{{content}}}
|}
|}
|}</includeonly>
|}</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 13:25, 12 November 2009


[view] [edit] [history] [purge] Documentation icon Template documentation