]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/polygen.mdwn
web commit from 63.252.84.66: poll vote (It's fast enough)
[ikiwiki.git] / doc / plugins / polygen.mdwn
index d04708e2a26ec1e6abcd824b7f88e0413146784e..8d6794073ae9063d4c2f759466c722e331decf19 100644 (file)
@@ -1,3 +1,6 @@
+[[template id=plugin name=polygen author="Enrico Zini"]]
+[[tag type/fun]]
+
 This plugin allows inserting text generated by polygen into a wiki page.
 For example:
 
@@ -6,13 +9,10 @@ For example:
 It's also possible to specify a starting nonterminal for the grammar by
 including `symbol="text"` in the directive.
 
-This plugin is included in ikiwiki, but not enabled by default.
-It was contributed by Enrico Zini.
-
+[[if test="enabled(polygen)" then="""
 ----
 
-If this plugin is enabled, and polygen is installed, here are a few notes
-about ikiwiki.
+Here are a few notes about ikiwiki, courtesy of polygen:
 
 Ikiwiki is internally based on a [[polygen grammar="designpatterns"]]
 coupled to a [[polygen grammar="designpatterns"]], as described in
@@ -26,4 +26,4 @@ Ikiwiki reviews:
 <li>[[polygen grammar="reviews"]]</li>
 </ul>
 
-[[tag type/fun]]
+"""]]