Template:Color/Dark: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
m (Dat Hack3r moved page Template:Main color/Dark to Template:Color/Dark: This can be used for all colors.)
m (Did the same thing with {{Color}}.)
 
Line 1: Line 1:
<span style="display:inline-flex;border-radius:4px;border:1px solid #444;margin:0;padding:2px;background:#eee;">
<templatestyles src="Color/styles.css" />
<span style="color:#{{{color}}};
<span class="color-box" style="border:1px solid #444;">
            background:black;
<span class="color-text" style="color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#ffffff}}}}}}};background-color: black;">{{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#ffffff}}}}}}}</span>
            margin:0;
<span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#ffffff}}}}}}};"></span>
            border-radius:4px 0 0 4px;
</span><noinclude>
            font-family:Courier,monospace;">
{{Documentation|Template:Color/doc}}
<nowiki>#</nowiki>{{{color}}}</span>
<span style="color:transparent;
            background:#{{{color}}};
            margin:0;
            border-radius:0 4px 4px 0;
            width:1.75em;"></span></span><noinclude>
<templatedata>
{
"params": {
"color": {
"description": "Put the user's main color here.",
"autovalue": "unknown"
}
},
"description": "For putting main colors in."
}
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 17:31, 21 November 2024

#ffffff