Difference between revisions of "Template:Box"
Jump to navigation
Jump to search
Templarian (talk | contribs) |
(adding named parameter for content with a =) |
||
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; margin-bottom: .75em"> | ||
− | {{{1}}} | + | {{#if: {{{content}}} | {{{content}}} | {{{1}}} }} |
</div> | </div> | ||
Line 16: | Line 16: | ||
content | content | ||
}} | }} | ||
+ | |||
+ | If you need to use a = in the box, use: | ||
+ | <source lang='text'> | ||
+ | {{box | color = #F5FAFF | content = | ||
+ | content with = | ||
+ | }} | ||
+ | </source> | ||
</noinclude> | </noinclude> |
Revision as of 01:11, 26 July 2009
{{#if: {{{content}}} | {{{content}}} | {{{1}}} }}
usage: <source lang='text'>
{{#if: {{{content}}} | {{{content}}} | content
}}
</source>
gives:
{{#if: {{{content}}} | {{{content}}} | content
}}
If you need to use a = in the box, use: <source lang='text'>
{{#if: content with = | content with = | {{{1}}} }}
</source>