Difference between revisions of "Template:Todolist"
Line 18: | Line 18: | ||
<includeonly> | <includeonly> | ||
− | {{#ask: [[task defined in::+]] [[has status::todo]] {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}} | + | {{#ask: [[task defined in::+]] [[has status::todo]] {{ifexpr:{{#if:{{{team|}}} }} or {{{#if:{{{assignedTo|}}} }}|[[Has team::{{{team}}}]] [[Assigned to::{{{assignedTo}}}]]|}} |
|?Has description=Task | |?Has description=Task | ||
|?Has team=Team | |?Has team=Team | ||
Line 29: | Line 29: | ||
</includeonly> | </includeonly> | ||
[[Category:Planning 2011]] | [[Category:Planning 2011]] | ||
− | <nowiki>{{#if:{{{assignedTo|}}}|[[Assigned to::{{{assignedTo}}}]]|}}</nowiki> | + | <nowiki>{{#if:{{{assignedTo|}}}|[[Assigned to::{{{assignedTo}}}]]|}} {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}} </nowiki> |
Revision as of 14:54, 23 June 2011
This templates insert a automatic todo list in the page. The todolist can be customized for a particular team if needed.
usage
insert the full todo list
Inserting the list of all active todo items is really easy, just write {{todolist}} in the page source. This will produce the following output:
- The part "{{ifexpr: or {" of the query was not understood. Results might not be as expected.
- The part "|" of the query was not understood. Results might not be as expected.
- The part "}}" of the query was not understood. Results might not be as expected.
{{#if:{{{assignedTo|}}}|[[Assigned to::{{{assignedTo}}}]]|}} {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}}
Insert a team's todolist
If you want to select only the task for a particular team, add the parameter to the template: {{todolist| team=TeamName }}. For example, the todo list for the WebTeam can be obtain with {{todolist| team=WebTeam }}. Producing the following output:
- The part "{{ifexpr: or {" of the query was not understood. Results might not be as expected.
- The part "|" of the query was not understood. Results might not be as expected.
- The part "}}" of the query was not understood. Results might not be as expected.
{{#if:{{{assignedTo|}}}|[[Assigned to::{{{assignedTo}}}]]|}} {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}} {{#if:{{{assignedTo|}}}|[[Assigned to::{{{assignedTo}}}]]|}} {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}}