| 129 | == Color macro syntax |
| 130 | |
| 131 | Syntax: |
| 132 | |
| 133 | {{{ |
| 134 | [[Color(text, fg/bg/size)]] |
| 135 | }}} |
| 136 | |
| 137 | where |
| 138 | |
| 139 | * `text` is the text to decorate. Enter a leading and/or trailing space character to surround the text with a decorated space. |
| 140 | |
| 141 | * `fg/bg/size` defines the foreground and background colors, and a font size. All parameters are optional and separated by slash character (`/`). |
| 142 | |
| 143 | Colors may be specified as an RGB triplet in hexadecimal format (a hex triplet; e.g. `#000` or `#000000` for black); they may also be specified according to their common English names (e.g. red, green, blue etc.). See [http://en.wikipedia.org/wiki/Web_colors here] for details. |
| 144 | |
| 145 | Examples: |
| 146 | |
| 147 | {{{ |
| 148 | [[Color(Large red on yellow, red/yellow/150%)]] |
| 149 | [[Color(Red on yellow, red/yellow)]] |
| 150 | [[Color(Yellow background, /yellow)]] |
| 151 | [[Color(Large red, #f00/2em)]] |
| 152 | [[Color(Large on yellow, /yellow/20px)]] |
| 153 | [[Color(Text, can, have, commas, /yellow)]] |
| 154 | [[Color( Surrounding space is also decorated , white/red)]] |
| 155 | }}} |
| 156 | |
| 157 | To set the foreground color for a larger block, the processor variant can be used ''(background color and font size may not display as expected due to the mechanisms of cascading style sheets, be advised and use the ''color'' parameter only)'': |
| 158 | |
| 159 | {{{ |
| 160 | {{{#!Color color=green |
| 161 | ... |
| 162 | }}} |
| 163 | }}} |
| 164 | |