Difference between revisions of "Template:Maintenance category/doc"

From blackwiki
Jump to navigation Jump to search
(sl:Predloga:Projektna kategorija)
imported>DB1729
(Reverted 1 edit by 96.237.137.143 (talk): Unexplained blanking)
 
(66 intermediate revisions by 41 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{Substitution|not}}
+
{{High-risk| ≈ 29615 }}
 +
{{nosubst}}
  
==Usage==
+
== Usage ==
This template should be used at the top of categories that are needed for Wikipedia administrative purposes, but are not part of the encyclopedia itself, for example [[:Category:Wikipedia administration]].
+
{{Template redirect|Wikipedia category}}
  
Adding <code>|container=yes</code> will produce a message similar to {{tl|Container category}} and add the page to [[:Category:Container categories]] if the page is the category namespace. Categorising into [[:Category:Container categories]] is disabled in [[:Category:Container categories]] itself with <code>|container_category=no</code>.
+
This template should be placed at the top of categories used in the maintenance of Wikipedia rather than as part of the encyclopedia&nbsp;– for example, at the top of [[:Category:Wikipedia administration]].
  
Adding <code>|hidden=yes</code> to the template will hide the category, produce a message similar to {{tl|Hidden category}} and add the page to [[:Category:Hidden categories]] if the page is the category namespace.
+
===Parameters===
 +
The following descriptions assume the template is [[Wikipedia:Transclusion|transcluded]] on a page in the [[Wikipedia:Category namespace|Category namespace]].
  
Adding <code>|tracking=yes</code> to the template will produce a message similar to {{tl|Tracking category}} and add the page to [[:Category:Tracking categories]] if the page is the category namespace. Categorising into [[:Category:Tracking categories]] is disabled in [[:Category:Tracking categories]] itself and [[:Category:Contents]] with <code>|tracking_category=no</code>.
+
{{Aligned table
 +
|col1style=line-height:1.4em;padding-right:1.5em;padding-bottom:0.5em;
 +
|col2style=line-height:1.4em;padding-bottom:0.5em;
  
Adding <code>|description=text</code> will add a new paragraph under the tracking category message. Replace "text" with a short description of the tracking category. (A longer description can be entered after the parameters or outside this template.)
+
| {{para|shortcut}}
 +
| Enables a [[WP:Shortcut|shortcut]] to the category to be displayed by the template.<br />Multiple shortcuts are supported: {{para|shortcut1}} up to {{para|shortcut5}}.
  
Text entered after the parameters will appear below the message box under the heading '''Description:'''.
+
| {{para|tracking|true/yes/on}}
 +
| Causes the template to add the page (the category) to [[:Category:Tracking categories]] and include a {{tlx|Tracking category}}-style message.{{smallsup|1}}<br />To add a short explanation of the tracking category after the message, use {{para|purpose|<var>Short explanation.</var>}}
 +
 +
| {{para|hidden|true/yes/on}}
 +
| Causes the template to hide the page (the category), add it to [[:Category:Hidden categories]] and to include a {{tlx|Hidden category}}-style message. Can only be used if {{para|tracking}} is false since tracking categories are always hidden.
  
===Example===
+
| {{para|container|false/off}}
<code><nowiki>{{Wikipedia category|hidden=yes|tracking=yes|description=This category tracks pages tagged with {{tl|Citation needed}}.|</nowiki><br>
+
| Causes the template to add the page (the category) to [[:Category:Container categories]] and include a {{tlx|Container category}}-style message.{{smallsup|2}}
<br>
 
<nowiki>This is a detailed description of the category.</nowiki><br>
 
<nowiki>}}</nowiki></code>
 
  
produces:
+
| {{para|empty|false/off}}
 +
| Include a {{tlx|Possibly empty category}}-style message.<br />To add a short explanation of the empty category after the message, use {{para|empty_text|<var>Short explanation.</var>}}
  
{{Wikipedia category|hidden=yes|tracking=yes|description=This category tracks pages tagged with {{tl|Citation needed}}.|
+
| {{para|polluted|false/off}}
 +
| Exclude categories that legitimately contain pages in both the (Main) [[Wikipedia:Namespace|namespace]] and the user namespace from [[Wikipedia:Database reports/Polluted categories]].
 +
 +
| {{para|desc}} or {{para|1}} or {{!}} (first [[Help:Template#Parameters|unnamed parameter]])
 +
| Text supplied will be placed below the template with a boldfaced header of "Description:".<br />(The word "Description" can be replaced by something else, with {{para|alt|Something else}}).
 +
}}
 +
{{ublist |style=font-size:95%;padding:0.5em;
 +
| {{sup|1}} [[:Category:Contents]] categorisation and [[:Category:Tracking categories]] self-categorisation is prevented by setting {{para|tracking_category|true/on}}.
 +
| {{sup|2}} [[:Category:Container categories]] self-categorisation is prevented by setting {{para|container_category|true/on}}.
 +
}}
 +
 
 +
== Example ==
 +
 
 +
{{center|{{big|'''Code'''}}}}
 +
<pre style="position:relative;bottom:9px;">
 +
{{Maintenance category
 +
|shortcut=CAT:WCAT
 +
|hidden=true
 +
|tracking=false
 +
|purpose=This category tracks pages tagged with {{tl|Citation needed}}.<!-- This text will not display since "tracking" is set to "false"-->
 +
|desc=Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the {{tlx|Citation needed}} template. Does not include discussion pages tagged with {{tlx|Talkfact}}.
 +
}}
 +
</pre>
 +
{{Maintenance category
 +
|shortcut=CAT:WCAT
 +
|hidden=true
 +
|tracking=false
 +
|purpose=This category tracks pages tagged with {{tl|Citation needed}}.
 +
|desc=Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the {{tlx|Citation needed}} template. Does not include discussion pages tagged with {{tlx|Talkfact}}.
 +
|tracking_category=no|container_category=no
 +
}}
 +
 
 +
{{center|{{big|'''Code'''}}}}
 +
<pre style="position:relative;bottom:9px;">
 +
{{Maintenance category
 +
|tracking=true
 +
|purpose=This category tracks pages that use {{tlx|albumchart|Billboard200}}.
 +
}}
 +
</pre>
 +
{{Maintenance category
 +
|tracking=true
 +
|purpose=This category tracks pages that use {{tlx|albumchart|Billboard200}}.
 +
|tracking_category=no|container_category=no
 +
}}
  
This is a detailed description of the category.
+
{{center|{{big|'''Code'''}}}}
 +
<pre style="position:relative;bottom:9px;">
 +
{{Maintenance category
 +
|empty=true
 +
|empty_text =This category is tracking [[academic journal]]s by the {{para|frequency}} parameter of their {{tl|Infobox journal}}.  This category should ideally be empty, but will be populated when non-standard {{para|frequency}} parameters are used.
 +
}}
 +
</pre>
 +
{{Maintenance category
 +
|empty=true
 +
|empty_text =This category is tracking [[academic journal]]s by the {{para|frequency}} parameter of their {{tl|Infobox journal}}.  This category should ideally be empty, but will be populated when non-standard {{para|frequency}} parameters are used.
 +
|tracking_category=no|container_category=no
 
}}
 
}}
  
{{Namespace category}}
+
== See also ==
  
<includeonly>
+
{{Other category-header templates}}
<!-- ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE -->
+
 
 +
<includeonly>{{Sandbox other||
 +
<!----ADD CATEGORIES BELOW THIS LINE, PLEASE:---->
 
[[Category:Category namespace templates]]
 
[[Category:Category namespace templates]]
 
[[Category:Tracking templates]]
 
[[Category:Tracking templates]]
 
+
}}</includeonly>
[[ar:قالب:تصنيف ويكيبيديا]]
 
[[as:Template:Wikipedia category]]
 
[[bn:Template:Wikipedia category]]
 
[[ca:Plantilla:Categoria no enciclopèdica]]
 
[[is:Snið:Wikipedia-flokkar]]
 
[[ja:Template:Wikipedia category]]
 
[[no:Mal:Wikipedia-kategori]]
 
[[mk:Шаблон:Категорија за Википедија]]
 
[[pt:Predefinição:Categoria de administração]]
 
[[sl:Predloga:Projektna kategorija]]
 
[[sv:Mall:Wikipedia-kategori]]
 
[[zh:Template:Wikipedia category]]
 
</includeonly>
 

Latest revision as of 13:20, 4 March 2021

Usage

Template:Template redirect

This template should be placed at the top of categories used in the maintenance of Wikipedia rather than as part of the encyclopedia – for example, at the top of Category:Wikipedia administration.

Parameters

The following descriptions assume the template is transcluded on a page in the Category namespace.

Script error: No such module "aligned table". Template:Ublist

Example

Code
{{Maintenance category
|shortcut=CAT:WCAT
|hidden=true
|tracking=false
|purpose=This category tracks pages tagged with {{tl|Citation needed}}.<!-- This text will not display since "tracking" is set to "false"-->
|desc=Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the {{tlx|Citation needed}} template. Does not include discussion pages tagged with {{tlx|Talkfact}}.
}}


Description: Category for articles (and other pages, such as portals and mainspace-intended templates) tagged as needing or more citations for verification, using the {{Citation needed}} template. Does not include discussion pages tagged with {{Talkfact}}.
Code
{{Maintenance category
|tracking=true
|purpose=This category tracks pages that use {{tlx|albumchart|Billboard200}}.
}}
Code
{{Maintenance category
|empty=true
|empty_text =This category is tracking [[academic journal]]s by the {{para|frequency}} parameter of their {{tl|Infobox journal}}.  This category should ideally be empty, but will be populated when non-standard {{para|frequency}} parameters are used.
}}

See also

Other category-header templates