image button) and 'done' (represented by a [[%TOPIC%ChecklistItemState]]If you have installed the Spread Sheet Plugin you can find a statistics on this item state topic. And if you have installed the Edit Table Plugin you can edit the states directly on this topic.
| You type: | You get: (simulated) | ||||||||
Example 1: Create a simple checklist:
| |||||||||
%CHECKLISTSTART% 1 first step 1 second step 1 last step %CHECKLISTEND% |
| ||||||||
Example 2: Create a simple freehand checklist:
| |||||||||
1 first step %CLI% 1 second step %CLI% 1 last step %CLI% |
| ||||||||
Example 3: Create a checklist with three states and own icons:
| |||||||||
%CHECKLISTSTART{states="todo|doing|done" stateicons=":no:|:-I|8-)"}%
1 first step
1 second step
1 third step
%CHECKLISTEND%
|
| ||||||||
| Example 4: Create two checklists on a topic: ( %CHECKLIST% and every %CLI% tag needs a name attribute) | |||||||||
%CHECKLISTSTART{name="first checklist"}%
1 first step
1 second step
%CHECKLISTEND%
%CHECKLIST{name="second checklist"}%
1 first step %CLI{name="second checklist"}%
1 next step %CLI{name="second checklist"}%
|
| ||||||||
| Example 5: Create a checklist in a table: | |||||||||
| *state* | *todo* | | %CLI% | first step | | %CLI% | second step | |
| ||||||||
Example 6: Create multiple lists with tables and hard linked item states to allow add/insert/remove items: %EDITTABLE% and %CHECKLISTSTART% tag have to stay in the same line. | |||||||||
ķITTABLE{changerows="on" format="|label,0,#%SERVERTIME{$year$month$day$hour$min$sec}%|text,50|"}%%CHECKLISTSTART{name="list1"}%
| *STATUS<br/>(click to change)* | *Item* |
| #2007Feb07093710 | testitem |
%CHECKLISTEND%
ķITTABLE{changerows="on" format="|label,0,#%SERVERTIME{$year$month$day$hour$min$sec}%|text,50|"}%%CHECKLISTSTART{name="list2"}%
| *STATUS<br/>(click to change)* | *Item* |
| #2007Feb07093712 | second |
%CHECKLISTEND%
|
ķITTABLE{changerows="off" format="|label, 0, #2012May22053623 |text, 50|"}%
|
||||||||
Example 7: Create a legend and a reset button:
| |||||||||
%CHECKLISTSTART{showlegend="on" reset=":-I Reset"}%
1 first step
1 next step
%CHECKLISTEND%
|
- todo Reset
| ||||||||
Example 8: Create a button to set all states in a checklist to done:
| |||||||||
1 first step %CLI%
1 next step %CLI%
%CHECKLIST{reset=":ok: set all done @done"}%
|
| ||||||||
Example 9: Insert new items in an existing checklist without state lost:
| |||||||||
%CHECKLISTSTART%
1 first step
1 first new inserted item #MyFirstInsertedItem
1 second step
1 second new inserted item %CLI{id="MySecondInsertedItem"}%
%CHECKLISTEND%
|
| ||||||||
%CHECKLIST{showlegend="on" reset=":-I Reset checklist"}%
%CLI{id="i1"}%
| Attribute | Usable in Tag(s) | Comment | Example |
|---|---|---|---|
| anchors | %CLI% %CHECKLIST% %CHECKLISTSTART% |
enables/disables link anchors (default: yes); if enabled a state change will scroll your topic to the clicked checklist item; useful for long checklists (useless if useajax is on) |
anchors="yes" |
| clipos | %CLI% %CHECKLISTSTART% |
determines the position of the checklist item icon (default: right); if you use another value than "left" the checklist item icon will be appended to a ordered or bullet list item |
clipos="left" |
| descr | %CLI% | a description for a checklist item used in the [[%TOPIC%ChecklistItemState]] topic; you can use it as a default option (without descr), e.g: %CLI{"my description"}% |
descr="" |
| descrcharlimit | %CLI% %CHECKLIST% %CHECKLISTSTART% |
character limit for a description (useful if no description was given and therefore it is stripped from the text before and after a checklist item) | descrcharlimit="100" |
| id | %CLI% | unique id of a checklist item (default: autogenerated); useful and recommended if you insert new checklist items in an existing checklist with states | id="myfirstownid" |
| name | %CLI% %CHECKLIST% %CHECKLISTSTART% |
a naming context (default: _default) - useful and recommended if you define more than one checklist on a topic (%CHECKLIST% you must use it in all related %CLI% tags too) |
name="mychecklist1" |
| notify | %CLI% %CHECKLIST% %CHECKLISTSTART% |
enables/disables mail notification if a item state was changed | notify="off" |
| pos | %CHECKLISTSTART% | defines the reset button and legend position (default: bottom); if you use another value than "top" the button position falls back to default |
pos="bottom" |
| reset | %CHECKLIST% %CHECKLISTSTART% |
it enables a reset image button with a given text or icon (default: undefined); if you put a @reset="@done :ok: set all done"; if you put a @STATESEL into the reset value you get a state selection popup with all states |
reset="Reset all @STATESEL" |
| showlegend | %CHECKLIST% %CHECKLISTSTART% |
if you set it to "on" a states legend with icons will be displayed (default: off),e.g: ( - todo |
showlegend="off" |
| states | %CLI% %CHECKLIST% %CHECKLISTSTART% |
all known states (default: todo¦done; a list separated by a '¦') |
states="todo¦done" |
| stateicons | %CLI% %CHECKLIST% %CHECKLISTSTART% |
icons for all states separated by a '¦' (default: :-I¦:ok:); if you use common variables like %Y% in stateicons you have to use the tag after the first %, e.g: %Y% |
stateicons=":-I¦:ok:" |
| statesel | %CLI% %CHECKLIST% %CHECKLISTSTART% |
enables/disables state selection popup (default: off) | statesel="on" |
| statetopic | %CLI% %CHECKLIST% %CHECKLISTSTART% |
set the checklist item state topic (default: <YourTopicName>ChecklistItemState) | statetopic="MyItemStateTopic" |
| static | %CLI% %CHECKLIST% %CHECKLISTSTART% |
allow/disallow state changes of checklist items (usefull if you create summary pages of some items of different checklists) | static="off" |
| template | %CLI% %CHECKLIST% %CHECKLISTSTART% |
template name (see Plugin settings / Templates ) | template="patchday" |
| text | %CLI% | text will be attached to the item and will be clickable | text="my first step" |
| tooltip | %CLI% %CHECKLIST% %CHECKLISTSTART% |
sets the tooltip of the state icons (substituted variables: %STATE% - current state; %NEXTSTATE% - next state; %STATEICON% - state icon; %NEXTSTATEICON% - next state icon; %STATES% - comma separated list of all states; %STATECOUNT% - number of states; %LEGEND% - a legend of all states and state icons) | tooltip="%STATE%" |
| tooltipbgcolor | %CLI% %CHECKLIST% %CHECKLISTSTART% |
tooltip background color ( statesel popup background color is also effected) |
tooltipbgcolor="%WEBBGCOLOR%" |
| tooltipfixleft | %CLI% %CHECKLIST% %CHECKLISTSTART% |
offset to fix horizontal tooltip position | tooltipfixleft="-163" |
| tooltipfixtop | %CLI% %CHECKLIST% %CHECKLISTSTART% |
offset to fix vertical tooltip position | tooltipfixtop="0" |
| useajax | %CLI% %CHECKLIST% %CHECKLISTSTART% |
enables/disables JavaScript/AJAX based item state changes (default: on) |
useajax="1" |

| State | TODO |
|---|---|
| Click me to change my state from 'todo' to 'done' |
first step |
| Click me to change my state from 'todo' to 'done' |
next step |
to patched
.
- notpatched
- patched
- reboot
- done )
System 1
to done
.
- notpatched
- patched
- reboot
- done )
System 2