Difference between revisions of "Template:Maintenance task"

From Twinsuniverse
Jump to: navigation, search
m
(fixed a renamed category)
Line 39: Line 39:
 
Common use includes the '''category''', '''label''' and '''reason''' parameters:
 
Common use includes the '''category''', '''label''' and '''reason''' parameters:
 
  <nowiki>{{maintenance task
 
  <nowiki>{{maintenance task
  |category=Characters of unknown magic
+
  |category=Characters of unknown magicality
 
  |label=unknown
 
  |label=unknown
 
  |reason=The '''magical''' parameter for the [[Template:Infobox Character|character infobox]] isn't specified
 
  |reason=The '''magical''' parameter for the [[Template:Infobox Character|character infobox]] isn't specified
 
}}</nowiki>
 
}}</nowiki>
  
:{{categorizer|category=Characters of unknown magic|label=unknown|nocat=true}}
+
:{{categorizer|category=Characters of unknown magicality|label=unknown|nocat=true}}
 
The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):
 
The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):
{{maintenance|tasks=<li>[[:Category:Characters of unknown magic|Characters of unknown magic]]: The '''magical''' parameter for the [[Template:Infobox Character|character infobox]] isn't specified</li>}}
+
{{maintenance|tasks=<li>[[:Category:Characters of unknown magicality|Characters of unknown magicality]]: The '''magical''' parameter for the [[Template:Infobox Character|character infobox]] isn't specified</li>}}
  
  
 
You may leave "reason" undefined by not specifying a value, which would only show a link to the category in the maintenance message like this:
 
You may leave "reason" undefined by not specifying a value, which would only show a link to the category in the maintenance message like this:
  <nowiki>{{maintenance task|category=Characters of unknown magic|label=unknown}}</nowiki>
+
  <nowiki>{{maintenance task|category=Characters of unknown magicality|label=unknown}}</nowiki>
  
:{{categorizer|category=Characters of unknown magic|label=unknown|nocat=true}}
+
:{{categorizer|category=Characters of unknown magicality|label=unknown|nocat=true}}
 
The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):
 
The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):
{{maintenance|tasks=<li>[[:Category:Characters of unknown magic|Characters of unknown magic]]</li>}}
+
{{maintenance|tasks=<li>[[:Category:Characters of unknown magicality|Characters of unknown magicality]]</li>}}
  
 
[[Category:Categorizers| ]]
 
[[Category:Categorizers| ]]
 
</noinclude>
 
</noinclude>

Revision as of 22:10, 2 January 2013

This template is a way of categorizing an article under a maintenance category, and at the same time showing a message explaining the issue. Use this template as the default option for other article categorizers.

Parameters

  • category: The category name to use for the Template:Categorizer and maintenance task message (case sensitive, mandatory)
  • catlabel, article, label and display: Additional parameters for the Template:Categorizer.
  • reason: Details about the issue that this task should solve (case sensitive, defaults to displaying no reason)
  • doclink: Documentation page containing the explanation for this task (case sensitive, defaults to displaying no doclink)
  • nocat: Whether or not to suppress categorization under category (defaults to false, which means auto categorization).


Note: This template does not actually show the maintenance message itself, but stores it in a variable that is handled by the infobox of the article. It does show the result of the categorizer.

Syntax

{{maintenance task
 |category=
 |catlabel=
 |article=
 |label=
 |reason=
 |display=
 |nocat=
}}

Examples

Common use includes the category, label and reason parameters:

{{maintenance task
 |category=Characters of unknown magicality
 |label=unknown
 |reason=The '''magical''' parameter for the [[Template:Infobox Character|character infobox]] isn't specified
}}
unknown [list all]

The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):

  This article raises some maintenance tasks. You may help by solving the following:


You may leave "reason" undefined by not specifying a value, which would only show a link to the category in the maintenance message like this:

{{maintenance task|category=Characters of unknown magicality|label=unknown}}
unknown [list all]

The infobox of the article will then bump the task in it's maintenance message like this (if there aren't any others):

  This article raises some maintenance tasks. You may help by solving the following: