Difference between revisions of "Template:Todo"

From FSCONS wiki
Jump to navigation Jump to search
 
(10 intermediate revisions by 2 users not shown)
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}}}]]''')|}} } {{#if{{{example|}}}}||{{#set_internal:task defined in
+
<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: {{{deadline|}}}'''|}}<!--
 +
 
 +
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>
+
|has deadline={{#if:{{{deadline|}}}|{{{deadline|}}}|}}
 +
}}}}</includeonly>
 
<noinclude>
 
<noinclude>
 
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]]
 
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]]
Line 12: Line 16:
 
<nowiki>{{todo|Do something useful}}</nowiki>
 
<nowiki>{{todo|Do something useful}}</nowiki>
  
=== Assigning a task to a team ===
+
=== Task with a deadline ===
 
<nowiki>{{todo|Do something useful
 
<nowiki>{{todo|Do something useful
| team = GreatTeam
+
| deadline = 2012-03-18
 
}}
 
}}
 
</nowiki>
 
</nowiki>
Line 30: Line 34:
 
</nowiki>
 
</nowiki>
  
=== Example ===
+
== Examples ==
 
  <nowiki>{{todo|Do something useful
 
  <nowiki>{{todo|Do something useful
| team = WebTeam
 
 
  | assignedTo = Grégoire
 
  | assignedTo = Grégoire
 +
| deadline = 2012-04-23
 
  }}</nowiki>
 
  }}</nowiki>
  
 
{{todo|Do something useful
 
{{todo|Do something useful
| team = WebTeam
 
 
| assignedTo = Grégoire
 
| assignedTo = Grégoire
 +
| deadline = 2012-04-23
 
| example = ✔
 
| example = ✔
 
}}
 
}}
  
 
  <nowiki>{{todo|Do something useful
 
  <nowiki>{{todo|Do something useful
| team = WebTeam
 
 
  | assignedTo = Grégoire
 
  | assignedTo = Grégoire
 
  | done = ✔
 
  | done = ✔
Line 49: Line 52:
  
 
{{todo|Do something useful
 
{{todo|Do something useful
| team = WebTeam
 
 
| assignedTo = Grégoire
 
| assignedTo = Grégoire
 
| done = ✔
 
| done = ✔

Latest revision as of 17:11, 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

Usage

Basic usage is very simple, just insert the description of the task in the template like this: {{todo|Do something useful}}

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
 | assignedTo = Grégoire
 | deadline = 2012-04-23
 }}

TODO: Template:Trim (User:Grégoire) deadline: 2012-04-23


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

TODO: Template:Trim (User:Grégoire)