Template:To do/doc: Difference between revisions
«new: +(75 words)» |
«162 words changed» from Template talk:Todo |
||
Line 2: | Line 2: | ||
Use the <code>target</code> parameter for accessing another article's to-do list, e.g. from a [[Wikipedia:WikiProject|WikiProject]] page (can be seen in action at [[WP:TBA]]). |
Use the <code>target</code> parameter for accessing another article's to-do list, e.g. from a [[Wikipedia:WikiProject|WikiProject]] page (can be seen in action at [[WP:TBA]]). |
||
==Documentation== |
|||
<code>{{[[Template:{{PAGENAME}}|{{lcfirst:{{PAGENAME}}}}]]}}</code> adds a todo list for a page |
|||
== Usage == |
|||
<!-- Abstract usage of the template --> |
|||
:{{tlx|todo}} gives a normal todo list |
|||
:{{tlx|todo|N}} where <tt>N</tt> is a number from 1 to 9 to define it's priority |
|||
:{{tlx|todo|small=yes}} formats the todo list small |
|||
:{{tlx|todo|nocats=yes}} don't include categories |
|||
:{{tlx|todo|nopreload=yes}} don't include preloaded text |
|||
:{{tlx|todo|list=./TODO}} use the subpage ''./TODO'' as todo list instead of subpage ''./to do'' |
|||
:{{tlx|todo|target=Foo}} use the todo list of page ''Foo'' instead |
|||
== Example == |
|||
<!-- for the documentation don't subst the result --> |
|||
{| |
|||
| '''Code''' |
|||
| '''Result''' |
|||
|- |
|||
| valign="top" | {{tlx|todo}} |
|||
| {{todo}} |
|||
|- |
|||
| valign="top" | {{tlx|todo|9}} |
|||
| {{todo|9}} |
|||
|- |
|||
| valign="top" | {{tlx|todo|small=yes}} |
|||
| {{todo|small=yes}} |
|||
|- |
|||
| valign="top" | {{tlx|todo|small=yes|9}} |
|||
| {{todo|small=yes|9}} |
|||
|- |
|||
| valign="top" | {{tlx|todo|list=./to do2}} |
|||
| {{todo|list=./to do2}} |
|||
|- |
|||
| valign="top" | {{tlx|todo|target=Talk:Britney Spears|1}} |
|||
| {{todo|target=Talk:Britney Spears|1}} |
|||
|} |
|||
== See also == |
|||
<!-- self-listing for quick access on edit history --> |
|||
* {{Lts|{{PAGENAME}}}} |
|||
* <!-- links to relevant pages --> |
|||
<includeonly> |
<includeonly> |
Revision as of 11:09, 23 April 2007
This template adds pages to Category:To do, and Category:To do, priority undefined unless priority is defined. If priority is defined, it will be added in appropriate category instead. See Category:To do, by priority for instructions on how to perform prioritization.
Use the target
parameter for accessing another article's to-do list, e.g. from a WikiProject page (can be seen in action at WP:TBA).
Documentation
{{to do/doc}}
adds a todo list for a page
Usage
{{todo}}
gives a normal todo list{{todo|N}}
where N is a number from 1 to 9 to define it's priority{{todo|small=yes}}
formats the todo list small{{todo|nocats=yes}}
don't include categories{{todo|nopreload=yes}}
don't include preloaded text{{todo|list=./TODO}}
use the subpage ./TODO as todo list instead of subpage ./to do{{todo|target=Foo}}
use the todo list of page Foo instead
Example
Code | Result | ||
{{todo}}
|
| ||
{{todo|9}}
|
| ||
{{todo|small=yes}}
|
| ||
{{todo|small=yes|9}}
|
|||
{{todo|list=./to do2}}
|
| ||
{{todo|target=Talk:Britney Spears|1}}
|
|
See also