Template:Note div
From Wikiversity
Version-at-a-glance...
| Similar templates at English sister projects [edit] | |||
|---|---|---|---|
| wpd | Wikipedia | Note div | |
| cms | Commons | Note div | |
| wbk | Wikibooks | Note div | |
| wsp | Wikispecies | Note div | |
| wvy | Wikiversity | Note div | |
- 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.