Template:Divbox: Difference between revisions

From CT Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<div style="{{#switch:{{{1}}}
<div style="width: 100%; clear: both; display: flex;">
|red=background-color: #FFCCCC; border: 1px solid #CC0000;
<div style="background-color:#e2f1fb; border:1px solid #c7e6e9; margin-right: 1%; margin-top: 0.5em; margin-bottom: 0.5em; padding: 1%; width: 47%; float: left;">
|grey=background-color:#EEEEEE;border:1px solid #999999;
<div style="background-color:#fff; border:1px solid #c7e6e9; width:auto; margin-left:auto; margin-right:auto;padding: 1%;">'''{{{1}}}'''</div>
|amber=background-color: #FFFFCC; border: 1px solid #663300;
<div style="padding: 1%;">{{{2}}}</div>
|navy=background-color: #AADBE0; border: 1px solid #00477B;
</div>
|none=border:1px hidden;
<div style="background-color:#e2f1fb; border:1px solid #c7e6e9; margin-top: 0.5em; margin-bottom: 0.5em; padding: 1%; width: 47%; float: left;">
|tt=background-color: transparent; color:darkblue; font-family:monospace; border: 1px solid grey;
<div style="background-color:#fff; border:1px solid #c7e6e9; width:auto; margin-left:auto; margin-right:auto;padding: 1%;">'''{{{3}}}'''</div>
|plain
<div style="padding: 1%;">{{{4}}}</div>
|#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>
<div class="center" style="width:auto; margin-left:auto; margin-right:auto;">{{#if:{{{2|}}}|'''{{{2}}}'''}}</div>
</div>
{{{3|}}}
<div style="width: 100%; clear: both;"></div>
</div><noinclude>
{{documentation|content=
 
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 10:52, 8 September 2022

{{{1}}}
{{{2}}}
{{{3}}}
{{{4}}}