]> sipb.mit.edu Git - ikiwiki.git/commitdiff
move example back to plugin
authorJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 21:29:08 +0000 (17:29 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Thu, 11 Sep 2008 21:29:08 +0000 (17:29 -0400)
doc/plugins/fortune.mdwn
underlays/basewiki/directive/fortune.mdwn

index 854d13364957253142f32e24f545dca48f1d2aab..9966f456da05b35a00fba722b338d8eb8edfffdb 100644 (file)
@@ -3,3 +3,11 @@
 
 This plugin implements the [[ikiwiki/directive/fortune]] [[ikiwiki/directive]].
 This directive  uses the `fortune` program to insert a fortune into the page.
 
 This plugin implements the [[ikiwiki/directive/fortune]] [[ikiwiki/directive]].
 This directive  uses the `fortune` program to insert a fortune into the page.
+
+[[!if test="enabled(fortune)" then="""
+Here's a fortune for you:
+
+----
+
+[[!fortune ]]
+"""]]
index 36e0b5733aec0480cbf112a33e32700b5be147ec..8d07be5dfe910562d8cdabe99d359e0fc3954e88 100644 (file)
@@ -1,14 +1,6 @@
 The `fortune` directive is supplied by the [[!iki plugins/fortune]] plugin.
 
 The `fortune` directive is supplied by the [[!iki plugins/fortune]] plugin.
 
-This just uses the `fortune` program to insert a fortune into the page.
+This just uses the `fortune` program to insert a fortune cookie into the page.
 Usage:
 
        \[[!fortune ]]
 Usage:
 
        \[[!fortune ]]
-
-[[!if test="enabled(fortune)" then="""
-Here's a fortune for you:
-
-----
-
-[[!fortune ]]
-"""]]