Difference between revisions of "Template:Divbox"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<includeonly><div style="{{#switch:{{{1}}}
+
<templatestyles src="Divbox/styles.css" />{{main other
|red=background-color: #FFCCCC; border: 1px solid #CC0000;
+
|1 = <!-- not displayed in mainspace -->
|grey=background-color:#EEEEEE;border:1px solid #999999;
+
|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 }}
|amber=background-color: #FFFFCC; border: 1px solid #663300;
+
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
|navy=background-color: #AADBE0; border: 1px solid #00477B;
 
|none=border:1px hidden;
 
|tt=background-color: transparent; color:darkblue; font-family:monospace; border: 1px solid grey;
 
|plain
 
|#default=background-color: inherit; border: 1px solid #000000;}} margin: 0.5em; padding: 0.5em; {{#if:{{{radius|}}}|-moz-border-radius: {{{radius}}}; -webkit-border-radius: {{{radius}}}; border-radius: {{{radius}}};}}">
 
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{#if:{{{2|}}}|'''{{{2}}}'''}}</div>
 
{{{3|}}}
 
</div>
 
</div></includeonly><noinclude>Mimics the [[w:Template:Divbox|divbox template]] found on English wikipedia. 
 
 
 
Note that not all styles are currently supported.  Currently just <code>red</code>, <code>grey</code>, <code>amber</code>, <code>navy</code>, <code>none</code>, <code>tt</code>, and <code>plain</code> (which is the default).
 
</noinclude>
 

Latest revision as of 18:24, 6 May 2021

Template documentation[create]