]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/templates.mdwn
web commit by JoshTriplett: Fix bad if nesting.
[ikiwiki.git] / doc / templates.mdwn
index 5bdcbaab6e074468de8cf7c165f4f6ff22d0a894..bd8b2b6fe1b56eace8e68ed5fd3badc39274ad22 100644 (file)
@@ -1,13 +1,12 @@
-[[if test="enabled(template)" then="""
-This wiki has templates **enabled**.
+[[if test="enabled(template)"
+then="This wiki has templates **enabled**."
+else="This wiki has templates **disabled**."
+]]
 
-[[if test="enabled(inline)" then="""
+[[if test="enabled(template) and enabled(inline)" then="""
 These templates are available for inclusion onto other pages in this
 wiki:
 
 [[inline pages="templates/* and !*/discussion" feeds=no archive=yes
 sort=title template=titlepage]]
 """]]
-"""
-else="This wiki has templates **disabled**."
-]]