Difference between revisions of "Template:Cfd main page banner/doc"

From blackwiki
Jump to navigation Jump to search
imported>Svick
m (actually used date format)
imported>Primefac
 
(14 intermediate revisions by 9 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
+
{{Subst only}}
  
 
When nominating a category on [[WP:CFD]], add this template to the '''main article's talk page''' to notify users of the category's nomination.
 
When nominating a category on [[WP:CFD]], add this template to the '''main article's talk page''' to notify users of the category's nomination.
  
 
=== Usage ===
 
=== Usage ===
 +
On the '''talk page''' add:
  
On the '''talk page''' add:
+
{{in5}}<code>{{tlps|{{TEMPLATENAME}}|<var>category name</var>|date{{=}}<var>yyyy Month dd</var>}}</code>
:'''<nowiki>{{subst:Cfdnotice|</nowiki>''category name''<nowiki>|date=</nowiki>''yyyy Month dd''<nowiki>}}</nowiki>'''
+
 
 +
If the CfD section name is different from the category name (e.g. when nominating several categories at once), add this:
 +
 
 +
{{in5}}<code>{{tlps|{{TEMPLATENAME}}|<var>category name</var>|date{{=}}<var>yyyy Month dd</var>|<var>CfD section name</var>}}</code>
  
 
Example:
 
Example:
:<nowiki>{{subst:Cfdnotice|Example category|date=</nowiki>{{#time:Y F j}}<nowiki>}}</nowiki>
 
  
Will produce:
+
{{in5}}{{in5}}<code>{{tlps|{{TEMPLATENAME}}|Example category|date{{=}}{{#time:Y F j}}}}</code>
 +
 
 +
will produce:
  
 
{{Tmbox
 
{{Tmbox
 
| small    =  
 
| small    =  
 
| type      = delete
 
| type      = delete
| text      = The related '''[[:Category:Example category]]''' has been nominated for '''deletion, merging, or renaming[[Template:Cfdnotice|.]]''' You are encouraged to join the '''[[Wikipedia:Categories for discussion{{#if:9999 Month 99|/Log/9999 Month 99}}#{{#if:|{{{2}}}|Category:Example category}}|discussion]]'''  on the [[Wikipedia:Categories for discussion|Categories for Discussion]] page. <!-- Generated by Template:Cfdnotice -->
+
| text      = The related '''[[:Category:Example category]]''' has been nominated for '''{{#switch:{{TEMPLATENAME}}
 +
|Cfrnotice=renaming
 +
|Cfmnotice=merging
 +
|#default=deletion, merging, or renaming
 +
}}'''[[Template:Cfdnotice|.]] You are encouraged to join the '''[[Wikipedia:Categories for discussion|discussion]]'''  on the [[Wikipedia:Categories for discussion|Categories for Discussion]] page.
 
}}
 
}}
  
Also, will add the article to [[:Category:Categories for discussion notices]].
+
Also will add the article to [[:Category:Categories for discussion notices]].
 +
 
 +
You can be more specific (which helps reduce some editors' feeling of alarm, if it's just a rename or merge!) by using one of the following:
 +
* {{para|type|renaming}}
 +
* {{para|type|merging}}
 +
* {{para|type|deletion}}
 +
 
 +
Template wrappers {{tlx|cfrnotice}} and {{tlx|cfmnotice}} do this for you automatically.
 +
 
 +
You can also specify the target of a rename or merge (just the category name without the "Category:" part (this can't handle complex cases like a three-way merge):
 +
 
 +
* {{para|type|renaming}}, {{para|target|{{var|New category name}}}}
 +
* {{para|type|merging}}, {{para|target|{{var|Redundant category name}}}}
 +
 
 +
{{tlx|cfrnotice}} and {{tlx|cfmnotice}} will also pass this parameter, and have mnemonic {{para|to}} and {{para|with}} aliases for them, respectively:
 +
* {{tlsx|cfrnotice|Foo|target{{=}}bar}}
 +
* {{tlsx|cfrnotice|Foo|to{{=}}bar}}
 +
* {{tlsx|cfmnotice|Foo|target{{=}}bar}}
 +
* {{tlsx|cfmnotice|Foo|with{{=}}bar}}
  
<includeonly>
+
===See also===
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
* [[Template:Cfd notice]] – template to notify any involved editor, page, or project of the nomination.
  
{{DEFAULTSORT:Cfdnotice}}
+
<includeonly>{{Sandbox other||
 
[[Category:Categories for discussion templates]]
 
[[Category:Categories for discussion templates]]
 
[[Category:Deletion notification templates]]
 
[[Category:Deletion notification templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 00:13, 11 October 2020

When nominating a category on WP:CFD, add this template to the main article's talk page to notify users of the category's nomination.

Usage

On the talk page add:

     Template:Tlps

If the CfD section name is different from the category name (e.g. when nominating several categories at once), add this:

     Template:Tlps

Example:

          Template:Tlps

will produce:

Also will add the article to Category:Categories for discussion notices.

You can be more specific (which helps reduce some editors' feeling of alarm, if it's just a rename or merge!) by using one of the following:

  • |type=renaming
  • |type=merging
  • |type=deletion

Template wrappers {{cfrnotice}} and {{cfmnotice}} do this for you automatically.

You can also specify the target of a rename or merge (just the category name without the "Category:" part (this can't handle complex cases like a three-way merge):

  • |type=renaming, |target=New category name
  • |type=merging, |target=Redundant category name

{{cfrnotice}} and {{cfmnotice}} will also pass this parameter, and have mnemonic |to= and |with= aliases for them, respectively:

See also

  • Template:Cfd notice – template to notify any involved editor, page, or project of the nomination.