|
|
(73 intermediate revisions by 46 users not shown) |
Line 1: |
Line 1: |
| <div class="boilerplate metadata" id="{{{2}}}" style="{{divstyle{{{1}}}}}; padding: 1em;"><center><b>{{{2}}}</b></center>{{{3}}}</div> | | <templatestyles src="Divbox/styles.css" />{{main other |
| <noinclude>
| | |1 = <!-- not displayed in mainspace --> |
| ==How to use==
| | |2 = <div class="metadata divbox divbox-{{{1|}}}" {{#if:{{{2|}}}|title="{{{2}}}"}} {{#if:{{{radius|}}}|style="border-radius:{{{radius}}};"}}><div class="divbox-heading">{{{2|}}}</div>{{{3|}}}</div>{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using divbox with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Divbox]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | radius }} |
| <nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki> | | }}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude> |
| ==Example==
| |
| <nowiki>{{divbox|green|An example|This is only an example of how this template works.}}</nowiki> | |
| | |
| Writing this code will give you...
| |
| {{divbox|green|An example|This is only an example of how this template works.}}
| |
| | |
| ==Available colors== | |
| <div style="{{divstyleamber}}; width:5em; float:left; margin:.3em">amber</div> | |
| <div style="{{divstyleblack}}; width:5em; float:left; margin:.3em">black</div>
| |
| <div style="{{divstylebloodred}}; width:5em; float:left; margin:.3em">bloodred</div>
| |
| <div style="{{divstyleblue}}; width:5em; float:left; margin:.3em">blue</div>
| |
| <div style="{{divstylebrown}}; width:5em; float:left; margin:.3em">brown</div>
| |
| <div style="{{divstyleforest}}; width:5em; float:left; margin:.3em">forest</div>
| |
| <div style="{{divstylegold}}; width:5em; float:left; margin:.3em">gold</div>
| |
| <div style="{{divstylegray}}; width:5em; float:left; margin:.3em">gray</div>
| |
| <div style="{{divstylegreen}}; width:5em; float:left; margin:.3em">green</div>
| |
| <div style="{{divstylenavy}}; width:5em; float:left; margin:.3em">navy</div>
| |
| <div style="{{divstylenone}}; width:5em; float:left; margin:.3em">none</div>
| |
| <div style="{{divstyleorange}}; width:5em; float:left; margin:.3em">orange</div>
| |
| <div style="{{divstyleplain}}; width:5em; float:left; margin:.3em">plain</div>
| |
| <div style="{{divstylepurple}}; width:5em; float:left; margin:.3em">purple</div>
| |
| <div style="{{divstylered}}; width:5em; float:left; margin:.3em">red</div>
| |
| <div style="{{divstylewhite}}; width:5em; float:left; margin:.3em">white</div>
| |
| <div style="{{divstyleyellow}}; width:5em; float:left; margin:.3em">yellow</div>
| |
| [[Category:Wikipedia formatting templates|Divbox]]
| |
| </noinclude> | |