blob: 68bd2fc0c9f7beaa7525af9f10ad3ab29439d5ef (
plain)
- [[!meta author="""http://jmtd.livejournal.com/"""]]
- [[!meta authorurl="""http://jmtd.livejournal.com/"""]]
- [[!meta title="""change to bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date on ikiwiki"""]]
- [[!meta permalink="http://ikiwiki.info/recentchanges/#change-5430d5dc3bc37df92eb01cd65382c0f2be78b8e7"]]
- <div id="change-5430d5dc3bc37df92eb01cd65382c0f2be78b8e7" class="metadata">
- <span class="desc"><br />Changed pages:</span>
- <span class="pagelinks">
- <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn;h=83093895b37a4fb3be524cd237fc5ce8f5b2169d;hp=5485bba9ca2244260ae4ecb0894e935817bf377d;hb=5430d5dc3bc37df92eb01cd65382c0f2be78b8e7;hpb=62fc5d0c3cfdde0ae87c5364db6f6ebfa6794b14" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=bugs%2Fargument_isn__39__t_numeric%3A_mixing_templates_and_creation__95__date&do=goto" rel="nofollow">bugs/argument isn't numeric: mixing templates and creation_date</a>
- </span>
- <span class="desc"><br />Changed by:</span>
- <span class="committer">
- <a href="http://jmtd.livejournal.com/" rel="nofollow">jmtd [livejournal.com]</a>
- </span>
- <span class="desc"><br />Commit type:</span>
- <span class="committype">web</span>
- <span class="desc"><br />Date:</span>
- <span class="changedate"><span class="relativedate" title="Mon, 15 Nov 2010 10:43:35 -0400">10:43:35 11/15/10</span></span>
- <span class="desc"><br /></span>
- </div>
- <span class="revert">
- <a href="http://ikiwiki.info/ikiwiki.cgi?rev=5430d5dc3bc37df92eb01cd65382c0f2be78b8e7&do=revert" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
- </span>
- <div class="changelog">
- not quite done yet: if/included() doesn't work that way.<br />
- </div>
- <div class="diff">
- <pre>
- diff --git a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
- index 5485bba..8309389 100644
- --- a/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
- +++ b/doc/bugs/argument_isn__39__t_numeric:_mixing_templates_and_creation__95__date.mdwn
- @@ -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,6 +54,4 @@ 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]]
- -
- -> [[done]] with <http://git.ikiwiki.info/?p=ikiwiki;a=commitdiff;h=da9e1ea667f82d5fca9168dbed19be08040570ff> -- [[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]]
- </pre>
- </div>
- <!-- 5430d5dc3bc37df92eb01cd65382c0f2be78b8e7 -->
|