Template:Color box: Difference between revisions

No edit summary
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="{{#if:{{{2|}}}|width:auto;|width:18px;}}height:17px;border: 1px solid black;background: {{{1|white}}};margin: 0;display: inline-block; color:{{{3|black}}};">{{{2|}}}</span>
<span style="{{#if:{{{2|}}}|width:auto;|width:18px;}}height:17px;border: 2px solid {{{4|black}}};background: {{{1|white}}};margin: 0;display: inline-block; color:{{#if:{{{3|}}}|{{{3|black}}}|black}};">{{#if:{{{2|}}}|{{{2|ㅤ}}}|ㅤ}}</span><noinclude>
 
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
<noinclude>
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">
== Template documentation ==
Example usage:<pre>
Example usage:<pre>
{{Color box|aqua}}
{{Color box|aqua}}
Line 8: Line 9:
{{Color box|aqua}}
{{Color box|aqua}}
<pre>
<pre>
{{Color box|orange|EXAMPLE|white}}
{{Color box|lime|EXAMPLE}}
</pre>
</pre>
Will result in:
Will result in:
{{Color box|lime|EXAMPLE}}
{{Color box|lime|EXAMPLE}}
<pre>
<pre>
{{Color box|lime|EXAMPLE}}
{{Color box|orange|EXAMPLE|white}}
</pre>
</pre>
Will result in:
Will result in:
{{Color box|orange|EXAMPLE|white}}
{{Color box|orange|EXAMPLE|white}}
</div>
</div>
</noinclude>
</noinclude>