]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/fortune.mdwn
po(change): fix uninitialized variables when running IkiWiki::refresh()
[ikiwiki.git] / doc / plugins / fortune.mdwn
index f4c45a921de8731c8f6b5857101d7e42437f4e53..9966f456da05b35a00fba722b338d8eb8edfffdb 100644 (file)
@@ -1,14 +1,13 @@
-This just uses the `fortune` program to insert a fortune into the page.
-Usage:
+[[!template id=plugin name=fortune author="[[Joey]]"]]
+[[!tag type/fun]]
 
-       \[[fortune ]]
+This plugin implements the [[ikiwiki/directive/fortune]] [[ikiwiki/directive]].
+This directive  uses the `fortune` program to insert a fortune into the page.
 
-This plugin is included in ikiwiki, but not enabled by default.
-
-If this plugin is enabled, here's a fortune for you:
+[[!if test="enabled(fortune)" then="""
+Here's a fortune for you:
 
 ----
 
-[[fortune ]]
-
-[[tag type/fun]]
+[[!fortune ]]
+"""]]