Template:RenameCategory View history

(updated category)
(fixed category)
Line 2: Line 2:
| type      = notice
| type      = notice
| text      = This category should be renamed to sentence case. This is done by editing each page linked to this one. Rename the category link (on the doc page for templates). If a doc page is updated, be sure to edit and save the main page with no changes. That will force the category name to be updated. When all links to this category are removed, delete this category, or add {{tl|ToDelete}} to the category page.
| text      = This category should be renamed to sentence case. This is done by editing each page linked to this one. Rename the category link (on the doc page for templates). If a doc page is updated, be sure to edit and save the main page with no changes. That will force the category name to be updated. When all links to this category are removed, delete this category, or add {{tl|ToDelete}} to the category page.
}}<noinclude>{{documentation}}</noinclude><!--
}}<noinclude>{{documentation}}</noinclude><includeonly><!--
This category is for the page on which this template sits.
This category is for the page on which this template sits.
-->[[Category:Categories needing attention]]
-->[[Category:Categories needing attention]]</includeonly>

Revision as of 19:30, 9 August 2014

This category should be renamed to sentence case. This is done by editing each page linked to this one. Rename the category link (on the doc page for templates). If a doc page is updated, be sure to edit and save the main page with no changes. That will force the category name to be updated. When all links to this category are removed, delete this category, or add {{ToDelete}} to the category page.
Documentation icon Template documentation[view] [edit] [history] [purge]

This template is placed on a category page that needs to be renamed. Reasons include typos, changing to sentence case, removing unnecessary plural form, etc.

Place {{RenameCategory}} on the category page to display the above message.

Parameters

There are two optional parameters.

Unnamed

When provided, the first unnamed parameter will display a link to the category for which this category should be renamed. Each page that includes the old named category should be updated with the new category name. If the parameter is not included, the template will say the category needs to be renamed to sentence case, but will not include a link, so it is better to always include the parameter.

Target

When |target=on is added, the template is used on the target category page to point back to the category page being renamed. At this time, the template is unable to determine the existence of a category page, so it will show up red after the source page is deleted. At that time the template can be removed.

When the |target= is used, the unnamed parameter becomes required, or the template will not make sense since the target category is hopefully already spelled correctly or in sentence case.

The above documentation is transcluded from Template:RenameCategory/doc.
Please add categories to the /doc subpage.
Subpages of this template.