Template:Color: Difference between revisions
Jump to navigation
Jump to search
Dat Hack3r (talk | contribs) m These curly braces are hard to keep track of. |
Add colour to text |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<templatestyles src="Color/styles.css" /> | <templatestyles src="Color/styles.css" /> | ||
<span class="color-box"> | <span class="color-box"> | ||
<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> | |||
<span class="color-fill" style="background-color: {{#if:{{{1|}}}|{{#tag:nowiki|{{{1}}}}}|{{#tag:nowiki|{{{color|#000}}}}}}};"></span> | |||
</span><noinclude> | </span> | ||
<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 09:26, 8 November 2025
#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 | CSS name of color or hex code of color, e.g. 'red' or '#00F000'.
| String | optional |