Difference between revisions of "Template:Todo"
Jump to navigation
Jump to search
(Correcting a bug when a new line apear after the description) |
|||
Line 1: | Line 1: | ||
− | <includeonly><span style="{{#if:{{{done|}}}|text-decoration: line-through;background:#ccffcc;|background:yellow;color:red;}}">''' TODO:'''</span> {{trim|{{{1|}}} }} {{#if:{{{team|}}}|('''[[{{{team}}}]]''')|}} {{#if:{{{assignedTo|}}}| ([[User:{{{assignedTo|}}}]])|}}<!-- | + | <includeonly><span style="{{#if:{{{done|}}}|text-decoration: line-through;background:#ccffcc;|background:yellow;color:red;}}">''' TODO:'''</span> {{trim|{{{1|}}} }} {{#if:{{{team|}}}|('''[[{{{team}}}]]''')|}} {{#if:{{{assignedTo|}}}| ([[User:{{{assignedTo|}}}]])|}}{{#if:{{{deadline|}}}| '''{{{deadline|}}}'''|}}<!-- |
Semantic markup | Semantic markup | ||
Line 7: | Line 7: | ||
|has status={{#if:{{{done|}}}|done|todo}} | |has status={{#if:{{{done|}}}|done|todo}} | ||
|assigned to={{#if:{{{assignedTo|}}}|User:{{{assignedTo|}}}|}} | |assigned to={{#if:{{{assignedTo|}}}|User:{{{assignedTo|}}}|}} | ||
+ | |has deadline={{#if:{{{deadline|}}}|{{{deadline|}}}|}} | ||
}}}}</includeonly> | }}}}</includeonly> | ||
<noinclude> | <noinclude> | ||
Line 18: | Line 19: | ||
<nowiki>{{todo|Do something useful | <nowiki>{{todo|Do something useful | ||
| team = GreatTeam | | team = GreatTeam | ||
+ | }} | ||
+ | </nowiki> | ||
+ | |||
+ | === Task with a deadline === | ||
+ | <nowiki>{{todo|Do something useful | ||
+ | | deadline = 2012-03-18 | ||
}} | }} | ||
</nowiki> | </nowiki> | ||
Line 37: | Line 44: | ||
| team = WebTeam | | team = WebTeam | ||
| assignedTo = Grégoire | | assignedTo = Grégoire | ||
+ | | deadline = 2012-04-23 | ||
}}</nowiki> | }}</nowiki> | ||
Revision as of 17:09, 17 May 2012
This template insert a TODO item in the page. It will be displayed inline but also marked as task in the database, allowing easy gathering of task using the Template:Todolist todolist template
Contents
Usage
Basic usage is very simple, just insert the description of the task in the template like this: {{todo|Do something useful}}
Assigning a task to a team
{{todo|Do something useful | team = GreatTeam }}
Task with a deadline
{{todo|Do something useful | deadline = 2012-03-18 }}
Assigning a task to person
{{todo|Do something useful | assignedTo = Someone }}
Marking a task as done
{{todo|Do something useful | done = ✔ }}
Examples
{{todo|Do something useful | team = WebTeam | assignedTo = Grégoire | deadline = 2012-04-23 }}
TODO: Template:Trim (WebTeam) (User:Grégoire)
{{todo|Do something useful | team = WebTeam | assignedTo = Grégoire | done = ✔ }}
TODO: Template:Trim (WebTeam) (User:Grégoire)