Template:Color box: Difference between revisions

From EarthMC
Jump to navigation Jump to search
(updated the documentation)
mNo edit summary
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: 1px solid black;background: {{{1|white}}};margin: 0;display: inline-block; color:{{{3|black}}};">{{{2|ㅤ}}}</span><noinclude>
 
<noinclude>
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
<div style="background: #ECFCF4;border: 1px solid #A2A9B1;text-overflow: ellipsis;">
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">
<div style="margin-left:15px;margin-bottom:16px;text-overflow: ellipsis;">

Revision as of 07:29, 6 September 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