Template:Color: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
m (m - revert changes because this wasn't the source of the issue)
m (prevent line break from generating in the middle of span style)
 
Line 1: Line 1:
<includeonly><span style="color: {{#switch: {{{1|}}}
<includeonly><span style="color: {{#switch: {{{1|}}} | r = #a64a2e | R = #d74200 | g = #009403 | G = #00c420 | b = #0048bd | B = #0096ff | c = #40a4b9 | C = #77bfcf | m = #b154cf | M = #da5bd6 | w = #98875f | W = #cfc041 | k = #0f3b3a | K = #155352 | y = #b1c9c3 | Y = #FFFFFF | o = #f15f22 | O = #e99f10 | #default = {{{1}}} }};">{{{2}}}</span></includeonly><noinclude>
| r = #a64a2e
| R = #d74200
| g = #009403
| G = #00c420
| b = #0048bd
| B = #0096ff
| c = #40a4b9
| C = #77bfcf
| m = #b154cf
| M = #da5bd6
| w = #98875f
| W = #cfc041
| k = #0f3b3a
| K = #155352
| y = #b1c9c3
| Y = #FFFFFF
| o = #f15f22
| O = #e99f10
| #default = {{{1}}}
}};">{{{2}}}</span></includeonly><noinclude>
{{doc}}</noinclude>
{{doc}}</noinclude>

Latest revision as of 16:34, 13 August 2019

Usage

{{color | B | Text}}

Text

{{color | #FF00FF | Text}}

Text


The color can be an RGB value or a Caves of Qud color code:

  • r: dark red
  • R: red
  • g: dark green
  • G: green
  • b: dark blue
  • B: blue
  • c: dark chrome
  • C: chrome
  • m: dark purple
  • M: purple
  • w: dark gold
  • W: gold
  • k: background black
  • K: tile black
  • y: grey
  • Y: white
  • o: dark orange
  • O: light orange

Related Templates

[[Qud text]]