]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
Merge remote-tracking branch 'anarcat/dev/syslog_utf8'
[ikiwiki.git] / doc / bugs / argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
index 70af505c124ac6ddb6e987c2625f92629de4690b..ff98ba55f02c086c2bc5bd6c5d596ffdf4f336b4 100644 (file)
@@ -46,8 +46,7 @@ A workaround is to move the template outside of the srcdir into the external tem
 
     \[[!template id=all_entry.tmpl year=2010 current=true]]
 
-An alternative fix is to wrap the entire template inside a test to see whether the page is included or not. E.g.
-
+I believed (until I tested) that the [[ikiwiki/directive/if]] directive, with the `included()` test, would be an option here, E.g.
 
     \[[!if test="included()" then="""
     ...template...
@@ -55,4 +54,9 @@ An alternative fix is to wrap the entire template inside a test to see whether t
     Nothing to see here.
     """]]
 
-In fact, this is probably best practice for in-srcdir templates.  I'd consider this done if the documentation for the directive suggested it. -- [[Jon]]
+However this doesn't work.  I assume "included" in this context means e.g. via an `inline` or `map`, not template trans-clusion. -- [[Jon]]
+
+> As far as I know, this bug was fixed in
+> 4a75dee651390b79ce4ceb1d951b02e28b3ce83a on October 20th. [[done]] --[[Joey]]
+
+>> Sorry Joey, I'll make sure to reproduce stuff against master in future. [[Jon]]