Template:Color: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) Forgot to close template braces |
Dat Hack3r (talk | contribs) Merged box background color as well |
||
| Line 1: | Line 1: | ||
<templatestyles src="Color/styles.css" /> | <templatestyles src="Color/styles.css" /> | ||
<span class="color-box"> | <span class="color-box" style="background-color: #{{#ifeq:{{Greater color contrast ratio|{{#if:{{{1|}}}|{{{1}}}|{{{color|#000000}}}}}}}}}|#000000|eeeeee|444444}};"> | ||
<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; | <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> | ||
Revision as of 16:14, 29 January 2026
#000000
| This template is a high priority for maintenance as it is original to the OWOT Wiki and used in articles. As such, this template may contain bugs and it should be a top priority of template maintainers to quickly fix any issues that arise with it. Discuss breaking changes on the talk page before implementing them. |
For putting main colors in.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| color | color 1 | CSS name of color or hex code of color, e.g. 'red' or '#00F000'.
| String | optional |