Template:Note div
Jump to navigation
Jump to search
Version-at-a-glance...
- source: Commons, tweak logic of case "{{{B}}}=" defined, vs. "{{{border}}}" (which worked as expected, while "B" didn't). // FrankB 18:57, 19 August 2008 (UTC)
- Original= Source:Commons, Adapt {{usage div}} to pastel green for category annotations. // FrankB 05:10, 19 August 2008 (UTC)
|
- This template provides uniform colorized background for template usage notes.
- Usage
- Just apply the template. If {{{1|}}} is defined (indicating you mean to surround text), a close-div will be generated automatically.
- Otherwise a matching "close-div" ("</div>") should be given by the end of the page.
- Some other optional HTML control parameters may be given, the syntax is modeled on {{Left66}}.
- code
<div style="background:{{{BG|#ddffcc}}}; margin:{{{M|{{{margin|10px}}}}}}; padding:{{{P|{{{padding|5px}}}}}}; {{#if:{{{B|}}}{{{border|}}}| border:{{#if:{{{B|}}}|{{#if:{{{border}}} |{{{border}}};|1px solid black;}} |{{{border}}};}}" >
- Color appears as the background here.