Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
(New page: <div style="background-color: {{{color}}}; border: 1px solid #aaa; padding: .75em; margin-bottom: .75em"> {{{1}}} </div> <noinclude> usage: <source lang='text'> {{box | color = #f0f8ff |...) |
(note default color. remove bottom margin. add style parameter.) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <div style="background-color: {{{color}}}; border: 1px solid #aaa; padding: .75em; | + | <div style="background-color: {{{color|#F5FAFF}}}; border: 1px solid #aaa; padding: .75em; {{{style}}}"> |
{{{1}}} | {{{1}}} | ||
</div> | </div> | ||
Line 7: | Line 7: | ||
usage: | usage: | ||
<source lang='text'> | <source lang='text'> | ||
− | {{box | color = # | + | {{box | color = #F5FAFF | |
content | content | ||
}} | }} | ||
Line 13: | Line 13: | ||
gives: | gives: | ||
− | {{box | color = # | + | {{box | color = #F5FAFF | |
content | content | ||
}} | }} | ||
+ | 'color' is optional, and defaults to the one shown here. | ||
+ | |||
+ | If you need to use a = in the box, use: | ||
+ | <source lang='text'> | ||
+ | {{box | color = #F5FAFF | 1 = | ||
+ | content with = | ||
+ | }} | ||
+ | </source> | ||
</noinclude> | </noinclude> |
Latest revision as of 01: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>