aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/polygen.mdwn
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-12 02:44:47 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-12 02:44:47 +0000
commit479c7a1ea62d8fce3ef54f9deae89230d0b52a5d (patch)
treef8932f522aa856e9cf35d7db3420d491dd05518e /doc/plugins/polygen.mdwn
parentfe62c0ff209bbf01a3e5eb4a7b9f3b3d99acebca (diff)
downloadikiwiki-479c7a1ea62d8fce3ef54f9deae89230d0b52a5d.tar
ikiwiki-479c7a1ea62d8fce3ef54f9deae89230d0b52a5d.tar.gz
* Allow plugins to add new types of tests that can be used in PageSpecs.
* Add a "conditional" plugin, which allows displaying text if a condition is true. It is enabled by default so conditional can be used in the basewiki. * Use conditionals in the template for plugins, so that plugin pages say if they're currently enabled or not, and in various other places in the wiki.
Diffstat (limited to 'doc/plugins/polygen.mdwn')
-rw-r--r--doc/plugins/polygen.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/plugins/polygen.mdwn b/doc/plugins/polygen.mdwn
index 240edc961..5cd2f41d2 100644
--- a/doc/plugins/polygen.mdwn
+++ b/doc/plugins/polygen.mdwn
@@ -9,10 +9,10 @@ For example:
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
@@ -25,3 +25,5 @@ Ikiwiki reviews:
<li>[[polygen grammar="reviews"]]</li>
<li>[[polygen grammar="reviews"]]</li>
</ul>
+
+"""]]