Template:Color/custom

explain xkcd: It's 'cause you're dumb.
Jump to navigation Jump to search

Lookup subpage for {{Color}}. Stores numbered color sets; defaults to Set 1 when no set is specified.

Set 1 (Daily rotation)[edit]

Switches daily based on day of the year ({{#time: z}} mod 2).

Preset Usage Even days Odd days Live preview (Today)
1 {{Color||Text|1}} #DA819F (Pink) #D60270 (Magenta) Sample text
2 {{Color||Text|2}} #57A0C4 (Blue) #D60270 (Magenta) Sample text
3 {{Color||Text|3}} #9C9C9C (White) #9B4F96 (Purple) Sample text
4 {{Color||Text|4}} #57A0C4 (Blue) #0038A8 (Navy) Sample text
5 {{Color||Text|5}} #DA819F (Pink) #0038A8 (Navy) Sample text

Adding a new set[edit]

To add Set 2 (or higher), insert a new branch above | #default = inherit inside <includeonly>:

| 2 = {{#switch: {{{1|}}}
      | 1 = #HEX1
      | 2 = #HEX2
      | 3 = #HEX3
      | #default = inherit
      }}

Call it in articles with {{Color||Text|1|2}} or {{Color||Text|1|set=2}}.