]> sipb.mit.edu Git - ikiwiki.git/blobdiff - underlays/basewiki/directive/color.mdwn
add underlay files for listdirectives
[ikiwiki.git] / underlays / basewiki / directive / color.mdwn
diff --git a/underlays/basewiki/directive/color.mdwn b/underlays/basewiki/directive/color.mdwn
new file mode 100644 (file)
index 0000000..cdb9b6c
--- /dev/null
@@ -0,0 +1,23 @@
+The `color` directive is supplied by the [[!iki plugins/color]] plugin.
+
+This directive can be used to color a piece of text on a page.
+It can be used to set the foreground and/or background color of the text.
+
+You can use a color name (e.g. `white`) or HTML code (e.g. `#ffffff`)
+to define colors. 
+
+## examples
+
+Here the foreground color is defined as a word, while the background color
+is defined as a HTML color code:
+
+       \[[!color foreground=white background=#ff0000 text="White text on red background"]]
+
+The background color is missing, so the text is displayed on default
+background:
+
+       \[[!color foreground=white text="White text on default color background"]]
+
+The foreground is missing, so the text has the default foreground color:
+
+       \[[!color background=#ff0000 text="Default color text on red background"]]