color: New plugin from ptecza.
[ikiwiki] / doc / plugins / color.mdwn
1 \[[!template id=plugin name=color core=0 author="[[ptecza]]"]]
2
3 This plugin can be used to color a piece of text on a page.
4 It can be used to set the foreground and/or background color of the text.
5
6 You can use a color name (e.g. `white`) or HTML code (e.g. `#ffffff`)
7 to define colors. 
8
9 ## examples
10
11 Here the foreground color is defined as a word, while the background color
12 is defined as a HTML color code:
13
14         \[[!color foreground=white background=#ff0000 text="White text on red background"]]
15
16 The background color is missing, so the text is displayed on default
17 background:
18
19         \[[!color foreground=white text="White text on default color background"]]
20
21 The foreground is missing, so the text has the default foreground color:
22
23         \[[!color background=#ff0000 text="Default color text on red background"]]