Difference between revisions of "Template:TODO"

From wiki
(Remove line returns to avoid that the template create empty paragraphs)
(Document category)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
<templatedata>
 
<templatedata>
 
{
 
{
"description": "Show a TODO",
+
"description": "Show a TODO. Pages using this template will be automatically added to the TODO category.",
 
"params": {
 
"params": {
 
"msg": {
 
"msg": {
Line 18: Line 18:
 
}
 
}
 
</templatedata>
 
</templatedata>
 
+
<!-- Parameter nocategory is undocumented on purpose. It is only intended to be used here and by in actual template users. -->
 
== Example ==
 
== Example ==
  
 
  <nowiki>{{TODO|Find the Ultimate Question of Life, the Universe, and Everything}}</nowiki>
 
  <nowiki>{{TODO|Find the Ultimate Question of Life, the Universe, and Everything}}</nowiki>
{{TODO|Find the Ultimate Question of Life, the Universe, and Everything}}
+
{{TODO|Find the Ultimate Question of Life, the Universe, and Everything|nocategory=true}}
  
 
  <nowiki>{{TODO}}</nowiki>
 
  <nowiki>{{TODO}}</nowiki>
{{TODO}}
+
{{TODO|nocategory=true}}
  
</noinclude><includeonly><div style="background-color: #fff0f0; border: 1px dashed blue; margin: 0.0em; padding: 0.2em 0.5em; display: table">'''TODO'''{{#if: {{{msg|{{{1|}}}}}}|<nowiki>:</nowiki> {{{msg|{{{1|}}}}}}}}</div>[[Category:TODO]]</includeonly>
+
</noinclude><includeonly><div style="background-color: #fff0f0; border: 1px dashed blue; margin: 0.0em; padding: 0.2em 0.5em; display: table">'''TODO'''{{#if: {{{msg|{{{1|}}}}}}|<nowiki>:</nowiki> {{{msg|{{{1|}}}}}}}}</div>{{#ifeq: {{{nocategory|}}} | true | | [[Category:TODO]] }}</includeonly>

Latest revision as of 21:54, 5 March 2016

Description

Show a TODO. Pages using this template will be automatically added to the TODO category.

Template parameters

ParameterDescriptionTypeStatus
Messagemsg 1

Message to be displayed

Example
Find the Ultimate Question of Life, the Universe, and Everything
Contentsuggested

Example

{{TODO|Find the Ultimate Question of Life, the Universe, and Everything}}
TODO: Find the Ultimate Question of Life, the Universe, and Everything
{{TODO}}
TODO