]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/polygen.mdwn
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / doc / plugins / polygen.mdwn
index 240edc961ca0b1a52c898ea0d5f6f0d37a29c682..09195e6948ef93480987c81f317144e1be6a8206 100644 (file)
@@ -1,27 +1,29 @@
-[[template id=plugin name=polygen included=1 author="Enrico Zini"]]
-[[tag type/fun]]
+[[!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:
 
-       \[[polygen grammar="genius"]]
+       \[[!polygen grammar="genius"]]
 
 It's also possible to specify a starting nonterminal for the grammar by
 including `symbol="text"` in the directive.
 
+[[!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
-"[[polygen grammar="paper"]]" by [[polygen grammar="nipponame"]] of
-[[polygen grammar="boyband"]].
+Ikiwiki is internally based on a [[!polygen grammar="designpatterns"]]
+coupled to a [[!polygen grammar="designpatterns"]], as described in
+"[[!polygen grammar="paper"]]" by [[!polygen grammar="nipponame"]] of
+[[!polygen grammar="boyband"]].
 
 Ikiwiki reviews:
 <ul>
-<li>[[polygen grammar="reviews"]]</li>
-<li>[[polygen grammar="reviews"]]</li>
-<li>[[polygen grammar="reviews"]]</li>
+<li>[[!polygen grammar="reviews"]]</li>
+<li>[[!polygen grammar="reviews"]]</li>
+<li>[[!polygen grammar="reviews"]]</li>
 </ul>
+
+"""]]