Difference between revisions of "Template:Maintenance"

From Twinsuniverse
Jump to: navigation, search
m (fixed renamed category)
m (implemented the templatelink)
Line 5: Line 5:
 
     |{{
 
     |{{
 
         #if:{{{doclink|}}}
 
         #if:{{{doclink|}}}
         |Template <nowiki>{{</nowiki>[[Template:{{{doclink}}}|{{{doclink}}}]]<nowiki>}}</nowiki> on this
+
         |Template {{Templatelink|{{{doclink}}}}} on this
 
         |This}} article raises some maintenance tasks. You may help by solving the following:<ul>{{{tasks}}}</ul>}}
 
         |This}} article raises some maintenance tasks. You may help by solving the following:<ul>{{{tasks}}}</ul>}}
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
Line 50: Line 50:
  
 
:{{mbox|class=cleanup
 
:{{mbox|class=cleanup
     |Template <nowiki>{{</nowiki>[[Template:Infobox Character|Infobox Character]]<nowiki>}}</nowiki> on this article raises some maintenance tasks. You may help by solving the following:<ul>
+
     |Template {{Templatelink|Infobox Character}} on this article raises some maintenance tasks. You may help by solving the following:<ul>
 
         <li>[[:Category:Characters of unknown race|Characters of unknown race]]: The race of this character is't specified</li></ul>}}
 
         <li>[[:Category:Characters of unknown race|Characters of unknown race]]: The race of this character is't specified</li></ul>}}
  

Revision as of 20:42, 17 January 2013

This template is used to render a maintenance message on an article, in case any maintenance tasks were raised.

Articles showing this message are not automatically categorized.

Parameters

  • tasks: A string containing <li>-elements for a list of tasks (case sensitive, defaults to nothing displayed)
  • doclink: The name of the template containing the documentation for the maintenance issues displayed in this message


Note: using the tasks parameter, multiple tasks may be listed in one message

Syntax

{{maintenance|tasks=value}}

Examples

One task may be specified like this:

{{maintenance|tasks=<li>The age of this character is't specified</li>}}
  This article raises some maintenance tasks. You may help by solving the following:
  • The age of this character is't specified


If multiple tasks are desired, it works like this:

{{maintenance|tasks=
    <li>[[:Category:Characters of unknown age|]]: The age of this character is't specified</li>
    <li>[[:Category:Characters of unknown size|]]: The size of this character is't specified</li>
    <li>[[:Category:Characters of unknown magicality|]]: This character doesn't specify whether it is magical</li>
}}
  This article raises some maintenance tasks. You may help by solving the following:


Use the doclink parameter to specify the documentation page of the tasks in this maintenance message, by specifying the name of the template:

{{maintenance|doclink=Infobox Character|tasks=
    <li>[[:Category:Characters of unknown race|]]: The race of this character isn't specified</li>
}}
  Template {{Infobox Character}} on this article raises some maintenance tasks. You may help by solving the following:


You may leave "tasks" unspecified, by not specifying a value for the parameter, so these all have the same result (nothing displayed):

{{maintenance}}
{{maintenance|}}
{{maintenance|tasks=}}
{{maintenance|boohoo=}}
{{maintenance|funfrock=not funny}}
{{maintenance|doclink=Infobox Character|dog=woof}}
{{maintenance|doclink=Nonexisting page|dog=woof}}