Template:Color: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) m Dat Hack3r moved page Template:Main color to Template:Color: This can be used for all colors. |
Dat Hack3r (talk | contribs) Fixed braces (we need syntax highlighting) |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<span style=" | <templatestyles src="Color/styles.css" /> | ||
<span style="color: | <span class="color-box" style="background-color: #{{#ifeq:{{Greater color contrast ratio|{{#if:{{{1|}}}|{{{1}}}|{{{color|#000000}}}}}}}|#000000|444444|eeeeee}};"> | ||
<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> | |||
<noinclude> | |||
<span style="color: | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 16:21, 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 |