X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9921a4a8a1a696ce69acce5e14943f0149d926ff..ae1857b43cf55a393a507b8434f172cbdb29d5b0:/doc/ikiwiki/directive/if.mdwn?ds=sidebyside diff --git a/doc/ikiwiki/directive/if.mdwn b/doc/ikiwiki/directive/if.mdwn index d6419b18b..492adf499 100644 --- a/doc/ikiwiki/directive/if.mdwn +++ b/doc/ikiwiki/directive/if.mdwn @@ -1,4 +1,4 @@ -The `if` directive is supplied by the [[!iki plugins/conditional]] plugin. +The `if` directive is supplied by the [[!iki plugins/conditional desc=conditional]] plugin. With this directive, you can make text be conditionally displayed on a page. For example: @@ -23,8 +23,8 @@ If you want the [[ikiwiki/PageSpec]] to only match against the page that contains the conditional, rather than matching against all pages in the wiki, set the "all" parameter to "no". -The regular [[ikiwiki/PageSpec]] syntax is expanded with the following -additional tests: +In an `if` directive, the regular [[ikiwiki/PageSpec]] syntax is expanded +with the following additional tests: * enabled(plugin) @@ -43,6 +43,8 @@ additional tests: * included() - Tests whether the page is being included onto another page. + Tests whether the page is being included onto another page, for example + via [[inline]] or [[map]]. Note that pages inserted into other pages + via [[template]] are not matched here. [[!meta robots="noindex, follow"]]