Jump to content

Template:Color: Difference between revisions

w>LimeSlime888
m e
 
-lime.owotwiki (talk | contribs)
Add colour to text
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<span style="display:inline-flex;border-radius:4px;border:4px solid black;margin:0 4px;padding:4px;background:#eee;">
<templatestyles src="Color/styles.css" />
<span style="color:{{{color}}};
<span class="color-box">
            background:linear-gradient(135deg,white,black);
<span class="color-text" style="color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000}}}}}}};">{{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}}</span>
            margin:0;
<span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000}}}}}}};"></span>
            border-radius:4px 0px 0px 4px;
            font-family:Courier,monospace;">
{{{color}}}</span>
<span style="color:transparent;
            background:{{{color}}};
            margin:0;
            border-radius:0px 4px 4px 0px;
            width:28px;">
</span>
</span>
</span>
<noinclude>
<noinclude>
<templatedata>
{{Documentation}}
{
"params": {
"color": {
            "description": "Put the user's main color here.",
            "autovalue": "unknown"
        }
},
"description": "For putting main colors in."
}
</templatedata>
</noinclude>
</noinclude>