Difference between revisions of "Template:Box"

From WebOS Internals
Jump to navigation Jump to search
(adding named parameter for content with a =)
(note default color. remove bottom margin. add style parameter.)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="background-color: {{{color|#F5FAFF}}}; border: 1px solid #aaa; padding: .75em; margin-bottom: .75em">
+
<div style="background-color: {{{color|#F5FAFF}}}; border: 1px solid #aaa; padding: .75em; {{{style}}}">
{{#if: {{{content}}} | {{{content}}} | {{{1}}} }}
+
{{{1}}}
 
</div>
 
</div>
  
Line 16: Line 16:
 
content
 
content
 
}}
 
}}
 +
'color' is optional, and defaults to the one shown here.
  
 
If you need to use a = in the box, use:
 
If you need to use a = in the box, use:
 
<source lang='text'>
 
<source lang='text'>
{{box | color = #F5FAFF | content =
+
{{box | color = #F5FAFF | 1 =
 
content with =
 
content with =
 
}}
 
}}

Latest revision as of 02:27, 26 July 2009

{{{1}}}


usage: <source lang='text'>

content


</source>

gives:

content


'color' is optional, and defaults to the one shown here.

If you need to use a = in the box, use: <source lang='text'>

content with =


</source>