Template:Divbox: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
m (uncat)
m (117 revisions imported from templatewiki:Template:Divbox)
 
(57 intermediate revisions by 38 users not shown)
Line 1: Line 1:
{{main other
<div class="boilerplate metadata" id="{{{2}}}" style="{{divstyle{{{1}}}}}; padding: 1em;"><center><b>{{{2}}}</b></center>{{{3}}}</div>
|1 = <!-- not displayed in mainspace -->
<noinclude>
|2 = <div class="boilerplate metadata" {{#if:{{{2|}}}|title="{{{2}}}"|}} style="{{divbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;">{{center|<b>{{{2|}}}</b>}}{{{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 }}
==How to use==
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here -->{{En-WP attribution notice|Template:Divbox}}</noinclude>
<nowiki>{{divbox|color of box|Headtitle|Message}}</nowiki>
==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]]-->
{{uncat}}
</noinclude>

Latest revision as of 20:22, 29 June 2021

Wikipedia logo This template uses material from the Wikipedia template Template:Divbox, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).