]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/ikiwiki/directive/color.mdwn
ikiwiki (3.20140916) unstable; urgency=low
[git.ikiwiki.info.git] / doc / ikiwiki / directive / color.mdwn
1 The `color` directive is supplied by the [[!iki plugins/color desc=color]] plugin.
3 This directive 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.
6 You can use a color name (e.g. `white`) or HTML code (e.g. `#ffffff`)
7 to define colors. 
9 ## examples
11 Here the foreground color is defined as a word, while the background color
12 is defined as a HTML color code:
14         \[[!color foreground=white background=#ff0000 text="White text on red background"]]
16 The background color is missing, so the text is displayed on default
17 background:
19         \[[!color foreground=white text="White text on default color background"]]
21 The foreground is missing, so the text has the default foreground color:
23         \[[!color background=#ff0000 text="Default color text on red background"]]
25 [[!meta robots="noindex, follow"]]