Home
Categories
Dictionary
Download
Project Details
Changes Log
What Links Here
How To
Syntax
FAQ
License

Wiki status


There are several ways to show the status of the wiki:
  • It is possible to count the number of errors during the parsing by using the errors property
  • It is possible to count the number of TODO in the wikiby using the todo property
  • It is possible to show the list of TODOs by using the todolist element
It is even possible to use the condition element to customize the content of an article depending on the presence of errors or TODOs.

Example

The following content will show a "The wiki has no errors." if no errors have been detected during the parsing, and it will show the todolist only if there are TODOs.
  <condition property="errors" value="0" condition="notEqual">
     <if>
        The wiki has ${errors} errors.
     </if>
     <else>
        The wiki has no errors.
     </else>
  </condition>       
  <condition property="todo" value="0" condition="notEqual">
     <if>
        The wiki has ${todo} TODOs:
        <todolist />
     </if>
  </condition>

See also


Categories: general

docJGenerator Copyright (c) 2016-2023 Herve Girod. All rights reserved.