Difference between revisions of "Template:Todolist"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
− | + | This templates insert a automatic todo list in the page. The todolist can be customized for a particular team if needed. | |
− | |||
− | This templates insert a automatic todo list in the page. The todolist can be customized for a particular | ||
== usage == | == usage == | ||
Line 13: | Line 11: | ||
− | === Insert a | + | === Insert a team's todolist === |
− | If you want to select only the task for a particular | + | If you want to select only the task for a particular team, add the parameter to the template: <nowiki>{{todolist| team=TeamName }}</nowiki>. For example, the todo list for the [[WebTeam]] can be obtain with <nowiki>{{todolist| team=WebTeam }}</nowiki>. Producing the following output: |
− | {{todolist|user= | + | {{todolist| team=WebTeam }} |
+ | |||
+ | Likewise, if you want to list the tasks for a specific user, you can write <nowiki>{{todolist| team=UserName }}</nowiki>, where UserName is a User, e.g. Rikard. That would list Rikard's tasks like so: | ||
+ | {{todolist|assignedTo=Rikard}} | ||
+ | </noinclude> | ||
<includeonly> | <includeonly> | ||
{{#ask: [[task defined in::+]] [[has status::todo]] {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}} {{#if:{{{assignedTo|}}}|[[Assigned to::User:{{{assignedTo}}}]]|}} | {{#ask: [[task defined in::+]] [[has status::todo]] {{#if:{{{team|}}}|[[Has team::{{{team}}}]]|}} {{#if:{{{assignedTo|}}}|[[Assigned to::User:{{{assignedTo}}}]]|}} | ||
|?Has description=Task | |?Has description=Task | ||
+ | |?Has team=Team | ||
+ | |limit=500 | ||
|?Assigned to | |?Assigned to | ||
− | |||
− | |||
|format=broadtable | |format=broadtable | ||
|mainlabel=Defined in | |mainlabel=Defined in | ||
Line 28: | Line 30: | ||
}} | }} | ||
</includeonly> | </includeonly> | ||
+ | [[Category:Planning 2011]] |
Revision as of 16:27, 17 May 2012
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:
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:
Likewise, if you want to list the tasks for a specific user, you can write {{todolist| team=UserName }}, where UserName is a User, e.g. Rikard. That would list Rikard's tasks like so: