Template:Color: Difference between revisions
Appearance
Dat Hack3r (talk | contribs) Fixed braces (we need syntax highlighting) |
Dat Hack3r (talk | contribs) m Remove extra newline at the end of the template |
||
| Line 3: | Line 3: | ||
<span class="color-text" style="color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}};{{#ifeq:{{Greater color contrast ratio|{{#if:{{{1|}}}|{{{1}}}|{{{color|#000000}}}}}}}|#000000|background-color: black;}}">{{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}}</span> | <span class="color-text" style="color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}};{{#ifeq:{{Greater color contrast ratio|{{#if:{{{1|}}}|{{{1}}}|{{{color|#000000}}}}}}}|#000000|background-color: black;}}">{{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}}</span> | ||
<span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}};"></span> | <span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000000}}}}}}};"></span> | ||
</span> | </span><noinclude> | ||
<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||