Difference between revisions of "Template:Todo"

From FSCONS wiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly><span style="{{#if:{{{done|}}}|text-decoration: line-through;background:#ccffcc;|background:yellow;color:red;}}">''' TODO:'''</span> {{{1}}}{{#if:{{{team|}}}|('''[[{{{team}}}]]''')|}}{{#set_internal:task defined in
+
<includeonly><span style="{{#if:{{{done|}}}|text-decoration: line-through;background:#ccffcc;|background:yellow;color:red;}}">''' TODO:'''</span> {{{1}}}{{#if:{{{team|}}}|('''[[{{{team}}}]]''')|}} {{#if:{{{assignedTo|}}}|([[User:{{{assignedTo|}}}]])|}}<!--
 +
 
 +
Semantic markup
 +
-->{{#if{{{example|}}}}||{{#set_internal:task defined in
 
  |Has description={{{1|}}}
 
  |Has description={{{1|}}}
 
  |has team={{{team|}}}
 
  |has team={{{team|}}}
 
  |has status={{#if:{{{done|}}}|done|todo}}
 
  |has status={{#if:{{{done|}}}|done|todo}}
  |assigned to={{#if:{{{assignedTo|}}}|User:{{{assignedTo|}}}|}}
+
  |assigned to={{#if:{{{assignedTo|}}}|User:{{{assignedTo|}}}|}}<!---->}}
 
}}</includeonly>
 
}}</includeonly>
 
<noinclude>
 
<noinclude>
Usage:
+
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]]
 +
 
 +
== Usage ==
 +
Basic usage is very simple, just insert the description of the task in the template like this:
 +
<nowiki>{{todo|Do something useful}}</nowiki>
 +
 
 +
=== Assigning a task to a team ===
 
<nowiki>{{todo|Do something useful
 
<nowiki>{{todo|Do something useful
 
| team = GreatTeam
 
| team = GreatTeam
 +
}}
 +
</nowiki>
 +
 +
=== Assigning a task to person ===
 +
<nowiki>{{todo|Do something useful
 
| assignedTo = Someone
 
| assignedTo = Someone
 +
}}
 +
</nowiki>
 +
 +
=== Marking a task as done ===
 +
<nowiki>{{todo|Do something useful
 
| done = ✔
 
| done = ✔
 
}}
 
}}
 
</nowiki>
 
</nowiki>
 +
 +
=== Example ===
 +
<nowiki>{{todo|Do something useful
 +
| team = WebTeam
 +
| assignedTo = Grégoire
 +
}}</nowiki>
 +
 +
{{todo|Do something useful
 +
| team = WebTeam
 +
| assignedTo = Grégoire
 +
| example = ✔
 +
}}
 +
 +
<nowiki>{{todo|Do something useful
 +
| team = WebTeam
 +
| assignedTo = Grégoire
 +
| done = ✔
 +
}}</nowiki>
 +
 +
{{todo|Do something useful
 +
| team = WebTeam
 +
| assignedTo = Grégoire
 +
| done = ✔
 +
| example = ✔
 +
}}
 +
 +
 
</noinclude>
 
</noinclude>

Revision as of 22:35, 8 June 2011


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

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 }}

Assigning a task to person

{{todo|Do something useful | assignedTo = Someone }}

Marking a task as done

{{todo|Do something useful | done = ✔ }}

Example

{{todo|Do something useful
 | team = WebTeam
 | assignedTo = Grégoire
 }}

TODO: Do something useful (WebTeam) (User:Grégoire){{#if✔}|| }}


{{todo|Do something useful
 | team = WebTeam
 | assignedTo = Grégoire
 | done = ✔
 }}

TODO: Do something useful (WebTeam) (User:Grégoire){{#if✔}|| }}