Template:Color box: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(Created page with "{| style="width:20px;height:19px;border: 1px solid black;background: {{{1|white}}};" | style="background: {{{1|white}}};" | |} <noinclude> Example usage:<pre> {{Color box|aqua}} </pre> Will result in: {{Color box|aqua}} </noinclude>")
 
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="width:20px;height:19px;border: 1px solid black;background: {{{1|white}}};"
<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>
| style="background: {{{1|white}}};" |
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
|}
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">
 
== Template documentation ==
<noinclude>
Example usage:<pre>
Example usage:<pre>
{{Color box|aqua}}
{{Color box|aqua}}
Line 9: Line 8:
Will result in:
Will result in:
{{Color box|aqua}}
{{Color box|aqua}}
<pre>
{{Color box|lime|EXAMPLE}}
</pre>
Will result in:
{{Color box|lime|EXAMPLE}}
<pre>
{{Color box|orange|EXAMPLE|white}}
</pre>
Will result in:
{{Color box|orange|EXAMPLE|white}}
</div>
</div>
</noinclude>
</noinclude>

Latest revision as of 18:33, 7 November 2023

Template documentation

Example usage:
{{Color box|aqua}}

Will result in:

{{Color box|lime|EXAMPLE}}

Will result in: EXAMPLE

{{Color box|orange|EXAMPLE|white}}

Will result in: EXAMPLE