]> sipb.mit.edu Git - ikiwiki.git/blobdiff - underlays/basewiki/directive/fortune.mdwn
add underlay files for listdirectives
[ikiwiki.git] / underlays / basewiki / directive / fortune.mdwn
diff --git a/underlays/basewiki/directive/fortune.mdwn b/underlays/basewiki/directive/fortune.mdwn
new file mode 100644 (file)
index 0000000..36e0b57
--- /dev/null
@@ -0,0 +1,14 @@
+The `fortune` directive is supplied by the [[!iki plugins/fortune]] plugin.
+
+This just uses the `fortune` program to insert a fortune into the page.
+Usage:
+
+       \[[!fortune ]]
+
+[[!if test="enabled(fortune)" then="""
+Here's a fortune for you:
+
+----
+
+[[!fortune ]]
+"""]]