Difference between revisions of "Template:Todolist"

From FSCONS wiki
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 user if needed.
  
 
== usage ==
 
== usage ==
Line 11: Line 11:
  
  
=== Insert a team's todolist ===
+
=== Insert a user's todolist ===
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:
+
If you want to select only the task for a particular user, add the parameter to the template: <nowiki>{{todolist| user=UserName }}</nowiki>. For example, the todo list for [[User:Grégoire]] can be obtain with <nowiki>{{todolist| user=Grégoire }}</nowiki>. Producing the following output:
{{todolist| team=WebTeam }}
+
{{todolist| user=Grégoire }}
 
 
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}}}]]|}} {{#if:{{{user|}}}|[[Assigned to::User:{{{user}}}]]|}}
 
|?Has description=Task
 
|?Has description=Task
 
|?Has team=Team
 
|?Has team=Team
 
|limit=500
 
|limit=500
 
|?Assigned to
 
|?Assigned to
 +
|?Has deadline
 
|format=broadtable
 
|format=broadtable
 
|mainlabel=Defined in
 
|mainlabel=Defined in

Revision as of 17:13, 17 May 2012

This templates insert a automatic todo list in the page. The todolist can be customized for a particular user 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 user's todolist

If you want to select only the task for a particular user, add the parameter to the template: {{todolist| user=UserName }}. For example, the todo list for User:Grégoire can be obtain with {{todolist| user=Grégoire }}. Producing the following output: