web commit by JoshTriplett: Remove leading slash from sourcepage.
[ikiwiki] / doc / templates / plugin.mdwn
1 <span class="infobox">
2 Plugin: <TMPL_VAR name><br />
3 Author: <TMPL_VAR author><br />
4 Included in ikiwiki: [[if test="sourcepage(plugins/contrib/*)" then="""no""" else="""yes"""]]<br />
5 Enabled by default: <TMPL_IF core>yes<TMPL_ELSE>no</TMPL_IF><br />
6 Included in [[/plugins/goodstuff]]: [[if test="backlink(plugins/goodstuff) and /plugins/<TMPL_VAR name> and !sourcepage(plugins/contrib/*)" then="""yes""" else="""no"""]]<br />
7 Currently enabled: [[if test="enabled(<TMPL_VAR name>)" then="yes" else="no"]]<br />
8 </span>
9 [[if test="sourcepage(plugins/contrib/*)" then="""[[meta title="<TMPL_VAR name> (third party plugin)"]]"""]]
10 <TMPL_IF core>[[tag type/core]]</TMPL_IF>
11 <TMPL_UNLESS NAME="name">
12 This template is used to create an infobox for an ikiwiki plugin. It uses
13 these parameters:
14 <ul>
15 <li>name - the name of the plugin
16 <li>author - the author of the plugin
17 <li>core - set to a true value if the plugin is enabled by default
18 </ul>
19 </TMPL_UNLESS>