summaryrefslogtreecommitdiff
path: root/doc/templates
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-13 18:51:21 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-13 18:51:21 +0000
commit19c58ac7c139eb3509f190e9ce746bd9f6237c90 (patch)
treee5dfa2240314fddbfa23bac68a777d8fe177eb5c /doc/templates
parent716b0486f4d5b9b60103f2cbca059aa198640f88 (diff)
simplified plugin definitions
Diffstat (limited to 'doc/templates')
-rw-r--r--doc/templates/discussion.mdwn2
-rw-r--r--doc/templates/plugin.mdwn2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/templates/discussion.mdwn b/doc/templates/discussion.mdwn
index 33e187e2c..cbf56fa81 100644
--- a/doc/templates/discussion.mdwn
+++ b/doc/templates/discussion.mdwn
@@ -12,3 +12,5 @@ john
Couldn't the [[templates/plugin]] template replace the "included" parameter
with the same check used for "third-party plugin"? Don't "third-party plugin"
and "included in ikiwiki" form precisely complementary sets? --[[JoshTriplett]]
+
+> Yes, can be done..
diff --git a/doc/templates/plugin.mdwn b/doc/templates/plugin.mdwn
index 1db37e5c2..6715614df 100644
--- a/doc/templates/plugin.mdwn
+++ b/doc/templates/plugin.mdwn
@@ -1,7 +1,7 @@
<span class="infobox">
Plugin: <TMPL_VAR name><br />
Author: <TMPL_VAR author><br />
-Included in ikiwiki: <TMPL_IF included>yes<TMPL_ELSE>no</TMPL_IF><br />
+Included in ikiwiki: [[if test="sourcepage(plugins/contrib/*)" then="""no""" else="""yes"""]]<br />
Enabled by default: <TMPL_IF core>yes<TMPL_ELSE>no</TMPL_IF><br />
Currently enabled: [[if test="enabled(<TMPL_VAR name>)" then="yes" else="no"]]<br />
</span>