]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/else_parameter_for_map_plugin.mdwn
asking for clarification
[ikiwiki.git] / doc / todo / else_parameter_for_map_plugin.mdwn
index e6cd1adc7d0c4bf34005358e8f34b51cdf7dc4bc..bd93c41e9fd2a827f01072030b24982e6ca8ad0a 100644 (file)
@@ -2,8 +2,20 @@
 
 [[plugins/map]] (and I) could benefit from a bonus parameter:
 
-       else="Display this if no page matches the [[ikiwiki/PageSpec]]"
+       else="Display this if no page matches the PageSpec"
 
 This was quite simple, so I implemented this (branch "map" in my
 ikiwiki repo, see my user page for the up-to-date URL). Not patched the
 documentation yet, I'm waiting for feedback first, but I'll do it for sure. -- [[intrigeri]]
+
+> Can't a [[plugins/conditional]] be for this?
+> --[[Joey]]
+
+>> Hmmm, what do you mean? Adding a syntax such as the one below?
+>> Or something else?
+
+        \[[if test="map(" then="..." else="..."]]
+
+>> What would you write in the `then` clause?
+>> I'm not opposed at all to rewrite my two-liner, but I don't understand.
+>> --[[intrigeri]]