diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-13 18:51:21 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-13 18:51:21 +0000 |
commit | 19c58ac7c139eb3509f190e9ce746bd9f6237c90 (patch) | |
tree | e5dfa2240314fddbfa23bac68a777d8fe177eb5c /doc/templates | |
parent | 716b0486f4d5b9b60103f2cbca059aa198640f88 (diff) |
simplified plugin definitions
Diffstat (limited to 'doc/templates')
-rw-r--r-- | doc/templates/discussion.mdwn | 2 | ||||
-rw-r--r-- | doc/templates/plugin.mdwn | 2 |
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> |