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>")
 
No edit summary
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: 1px solid black;background: {{{1|white}}};margin: 0;display: inline-block; color:{{{3|black}}};">{{{2|}}}</span>
| style="background: {{{1|white}}};" |
|}


<noinclude>
<noinclude>
Line 9: Line 7:
Will result in:
Will result in:
{{Color box|aqua}}
{{Color box|aqua}}
<pre>
{{Color box|orange|EXAMPLE|white}}
</pre>
Will result in:
{{Color box|lime|EXAMPLE}}
<pre>
{{Color box|lime|EXAMPLE}}
</pre>
Will result in:
{{Color box|orange|EXAMPLE|white}}
</noinclude>
</noinclude>

Revision as of 09:30, 12 August 2023


Example usage:

{{Color box|aqua}}

Will result in:


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

Will result in: EXAMPLE


{{Color box|lime|EXAMPLE}}

Will result in: EXAMPLE