articleCondition
element. The article will be present in the wiki only if the condition is evaluated as true.
condition
element.condition
element has the following children:<ul> <li>the first item</li> <condition property="prop" condition="hasProperty"> <if> <li>the second item</li> </if> </condition> </ul>
<table> <row> <cell> <code>name</code> <code>value</code> </cell> </row> <condition property="prop" condition="hasProperty"> <if> <row> <cell> <code>name2</code> <code>value2</code> </cell> </row> </if> </condition> </table>
articleCondition
and condition
elements can have the following attributes:<article desc="an article"> <articleCondition condition="myPack" /> The article content </article>Example with "property" and "value": the article will only be present if "myProperty" exists:
<article desc="an article"> <articleCondition property="myProperty" /> The article content </article>
<article desc="an article"> <condition condition="myPack"> <if> The text inside the if for myPack (will be added if "myPack" is present). </if> <else> The text inside the else for myPack (will be added if "myPack" is absent). </else> </condition> </article>Example with "property":
<article desc="an article"> <condition property="myProperty"> <if> The text inside the if, will be added if "myProperty" exists. </if> <else> The text inside the else, will be added if "myProperty" does not exist. </else> </condition> </article>Example with "property" and "value":
<article desc="an article"> <condition property="myProperty" value="true"> <if> The text inside the if, will be added if "myProperty" exists and its value is "true". </if> <else> The text inside the else, will be added if "myProperty" does not exist or its value is not "true". </else> </condition> </article>Another example with "property" and "value":
<article desc="an article"> <condition property="myProperty" value="true"> <if> The text inside the if, will be added if "myProperty" exists and its value is "true". </if> <else> The text inside the else, will be added if "myProperty" does not exist or its value is not "true". </else> </condition> </article>
docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.