Difference between revisions of "Template:Maintenance"

From Twinsuniverse
Jump to: navigation, search
(Created page with "<includeonly>{{ #if: {{{tasks|}}} |{{mbox |class=cleanup |This article has some maintenance tasks:<ul>{{{tasks}}}</ul>}} }}</includeonly><noinclude> This template is u...")
 
(added infobox)
 
(12 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
|{{mbox
 
|{{mbox
 
     |class=cleanup
 
     |class=cleanup
     |This article has some maintenance tasks:<ul>{{{tasks}}}</ul>}}
+
     |{{
}}</includeonly><noinclude>
+
        #if:{{{doclink|}}}
 +
        |Template {{Templatelink|{{{doclink}}}}} on this
 +
        |This}} article raises some maintenance tasks. You may help by solving the following:<ul>{{{tasks}}}</ul>}}
 +
}}</includeonly><noinclude>{{Infobox Template
 +
|purpose=messagebox
 +
|singletag=no
 +
|multiline=yes
 +
|gamerelated=no
 +
|suppressible=
 +
|choice=
 +
|cat1=
 +
|var1=
 +
}}
 +
 
 
This template is used to render a maintenance message on an article, in case any maintenance tasks were raised.
 
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.
+
This template does not automatically categorize articles itself.
  
 
==Parameters==
 
==Parameters==
 
* '''tasks''': A string containing <tt><nowiki><li></nowiki></tt>-elements for a list of tasks (case sensitive, defaults to nothing displayed)
 
* '''tasks''': A string containing <tt><nowiki><li></nowiki></tt>-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 this parameter, multiple tasks may be listed in one message''
+
'''''Note''': using the '''tasks''' parameter, multiple tasks may be listed in one message''
  
 
==Syntax==
 
==Syntax==
 
  <nowiki>{{maintenance|tasks=value}}</nowiki>
 
  <nowiki>{{maintenance|tasks=value}}</nowiki>
  
==Example==
+
==Examples==
 
One task may be specified like this:
 
One task may be specified like this:
  <nowiki>{{maintenance|tasks=<li>The age of this character is't specified</li>}}</nowiki>
+
  <nowiki>{{maintenance|tasks=<li>The age of this character isn't specified</li>}}</nowiki>
  
 
:{{mbox|class=cleanup
 
:{{mbox|class=cleanup
     |This article has some maintenance tasks:<ul><li>The age of this character is't specified</li></ul>}}
+
     |This article raises some maintenance tasks. You may help by solving the following:<ul><li>The age of this character isn't specified</li></ul>}}
  
  
Line 30: Line 44:
 
     <li>[[:Category:Characters of unknown age|]]: The age of this character is't specified</li>
 
     <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 size|]]: The size of this character is't specified</li>
     <li>[[:Category:Characters of unknown magic|]]: This character doesn't specify whether it is magical</li>
+
     <li>[[:Category:Characters of unknown magicality|]]: This character doesn't specify whether it is magical</li>
 
}}</nowiki>
 
}}</nowiki>
  
 
:{{mbox|class=cleanup
 
:{{mbox|class=cleanup
     |This article has some maintenance tasks:<ul>
+
     |This article raises some maintenance tasks. You may help by solving the following:<ul>
 
         <li>[[:Category:Characters of unknown age|Characters of unknown age]]: The age of this character is't specified</li>
 
         <li>[[:Category:Characters of unknown age|Characters of unknown age]]: The age of this character is't specified</li>
 
         <li>[[:Category:Characters of unknown size|Characters of unknown size]]: The size of this character is't specified</li>
 
         <li>[[:Category:Characters of unknown size|Characters of unknown size]]: The size of this character is't specified</li>
         <li>[[:Category:Characters of unknown magic|Characters of unknown magic]]: This character doesn't specify whether it is magical</li></ul>}}
+
         <li>[[:Category:Characters of unknown magicality|Characters of unknown magicality]]: This character doesn't specify whether it is magical</li></ul>}}
 +
 
 +
 
 +
Use the '''doclink''' parameter to specify the documentation page of the tasks in this maintenance message, by specifying the name of the template:
 +
<nowiki>{{maintenance|doclink=Infobox Character|tasks=
 +
    <li>[[:Category:Characters of unknown race|]]: The race of this character isn't specified</li>
 +
}}</nowiki>
 +
 
 +
:{{mbox|class=cleanup
 +
    |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>}}
  
  
Line 46: Line 70:
 
  <nowiki>{{maintenance|boohoo=}}</nowiki>
 
  <nowiki>{{maintenance|boohoo=}}</nowiki>
 
  <nowiki>{{maintenance|funfrock=not funny}}</nowiki>
 
  <nowiki>{{maintenance|funfrock=not funny}}</nowiki>
 +
<nowiki>{{maintenance|doclink=Infobox Character|dog=woof}}</nowiki>
 +
<nowiki>{{maintenance|doclink=Nonexisting page|dog=woof}}</nowiki>
  
[[Category:Mbox Templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:35, 4 June 2014

Maintenance
Purpose

Messagebox [list all]

Single tag

No [list all]

Multi-line

Yes [list all]

Protected

No [list all]

Game related

No [list all]

Categorization
Categories

none [list all]

Variables
Names

none [list all]

Subpages

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

This template does not automatically categorize articles itself.

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 isn't specified</li>}}
  This article raises some maintenance tasks. You may help by solving the following:
  • The age of this character isn'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}}