Template talk:Category redirect

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
WikiProject Categories
WikiProject iconThis template is within the scope of WikiProject Categories, a collaborative effort to improve the coverage of categories on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
WikiProject Redirect (Rated Template-class)
WikiProject iconThis page is within the scope of WikiProject Redirect, a collaborative effort to improve the standard of redirects and their categorization on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Note: This banner should be placed on the talk pages of project, template and category pages that exist and operate to maintain redirects.
This banner is not designed to be placed on the talk pages of most redirects and never on the talk pages of mainspace redirects. For more information see the template documentation.
 Template  This template does not require a rating on the quality scale.

The template gives error message[edit]

See Category:Language articles with undated speaker data. The page shows a red error text: Expression error: Unrecognised punctuation character ",".. When I remove this template and preview, it disappears (so it is not from a regular, listed page, I think). Possibly related: at this moment the category is not empty though does not show in Category:Wikipedia non-empty soft redirected categories. Last week, there have been edits in the template that autofills this category, also wrt this cat name (into and out of). Can someone take a look? -DePiep (talk) 16:32, 31 March 2012 (UTC)

Found: {{PAGESINCATEGORY:{{PAGENAME}}}} produces 1,523 at the moment. Self-solving. -DePiep (talk) 16:50, 31 March 2012 (UTC)
It can be fixed by changing to {{PAGESINCATEGORY:{{PAGENAME}}|R}}. Peter James (talk) 19:31, 9 August 2012 (UTC)

Avoid this template appearing in the category it is manipulating[edit]

Please add <includeonly/> around the default category this template is adding so it doesn't appear in the category. I.e. change

}}[[Category:Wikipedia soft redirected categories]]


}}<includeonly>[[Category:Wikipedia soft redirected categories]]</includeonly>

as I have in the sandbox. Mark Hurd (talk) 06:57, 12 April 2013 (UTC)

OK, Done --Redrose64 (talk) 12:42, 12 April 2013 (UTC)
To avoid {{Category redirect/testcases}} showing up in Category:Wikipedia soft redirected categories, I've changed the sandbox version line
}}<includeonly>[[Category:Wikipedia soft redirected categories]]</includeonly>
}}<includeonly>{{#ifeq:{{NAMESPACE}}|Category|[[Category:Wikipedia soft redirected categories]]}}</includeonly>, for your consideration. --Slivicon (talk) 16:53, 4 August 2015 (UTC)
 Done with a twist that allows capture by CAT:WRONG of all incorrect usages. – Paine  19:18, 4 August 2015 (UTC)

Allow for flexibility in parameter passing[edit]

It would be enormously helpful if this template accepted both the current parameter (the name of the category to which to redirect, e.g. "People," sans the "Category:" namespace) but also the full name of the category, including namespace (e.g. "Category:People"). In other words, I want to be able to use this template with either of the two following calls:

  • {{Category redirect|People}}
  • {{Category redirect|Category:People}}

It's not immediately intuitive which form to use, so it would be nice for the template to accept both.

Furthermore, I often have something like "Category:People" on my clipboard and I'd like to just copy and paste it into the template when I use it. As it stands, I have to delete the word "Category:", or else accidentally save the redirect in a malformed way (so it will redirect to something like "Category:Category:People"). Thank you. CaseyPenk (talk) 03:40, 2 September 2013 (UTC)

I've put some mods into the sandbox which should do what is suggested above. --Redrose64 (talk) 09:50, 2 September 2013 (UTC)
Please wait 48 hours on this so I can check how it will affect the category redirect bot. Thanks. --R'n'B (call me Russ) 13:22, 2 September 2013 (UTC)
The sandbox revisions may produce undesired results if, for example, someone creates a redirect to Category:Wikipedia:Trolls. (Try {{Category redirect/sandbox|Wikipedia:Trolls}}. In fact, now that I think about it, I think this was the reason that previous efforts to modify the template to allow including the "Category:" prefix were unsuccessful. --R'n'B (call me Russ) 18:38, 2 September 2013 (UTC)
This is why we sandbox proposed changes to templates. Anyway, try it now --Redrose64 (talk) 19:21, 2 September 2013 (UTC)
Yes, that seems to do the trick. Very nice! But I still need to check the bot code to make sure it will work with this version. --R'n'B (call me Russ) 00:30, 3 September 2013 (UTC)
  • I've checked the bot code and we should be fine. It already recognizes redirects of the form {{Category redirect|Category:Foo}} and changes them to {{Category redirect|Foo}} on the assumption that they are invalid. With the new template code, it will still change them, but they will be valid either way. I don't want to change this because the script is designed to work on any wiki, and other wikis may not accept the first form as valid. --R'n'B (call me Russ) 13:52, 4 September 2013 (UTC)
OK, Done --Redrose64 (talk) 15:09, 4 September 2013 (UTC)

Template protection[edit]

Can this template be converted to use template protection instead of full protection? Thanks. mc10 (t/c) 01:08, 28 October 2013 (UTC)

Not done: requests for changes to the page protection level should be made at Wikipedia:Requests for page protection. Jackmcbarn (talk) 01:46, 28 October 2013 (UTC)
Alright, thanks for the notice. mc10 (t/c) 01:58, 28 October 2013 (UTC)

Do robots patroll automatically the redirect categories?[edit]

Hello there, I just changed a few categories into redirect categories (for example this one) and I wonder if there are robots that hunt for "Category:Wikipedia non-empty soft redirected categories" and move the articles in the right categories automatically. Thanks. —  Ark25  (talk) 06:03, 5 December 2014 (UTC)

  • There is such a bot. But this is not its intended use. If you want to rename a category, you should follow the process at WP:CFD. --R'n'B (call me Russ) 11:09, 5 December 2014 (UTC)

Change to include a speedy tag when target doesn't exist?[edit]

I think that we should add, to this template, a speedy tag which appears if the target category is deleted. The template {{db-redirnone}}, which applies to "a redirect to itself, or to a page which does not exist, has been deleted, or is itself currently tagged for speedy deletion" should apply here if the target is deleted. עוד מישהו Od Mishehu 07:18, 15 December 2015 (UTC)

We should consider the case if there is a rename. I am also concerned as to who is responsible for the placement of the speedy delete tag (no one but it should be the target deleter. And also any notification that would not occur). It would be even better to notify the deleter at the time of deletion that there are these redirects pointing to the just deleted target. This would apply to other things apart from category redirects. Graeme Bartlett (talk) 09:42, 15 December 2015 (UTC)
Technically, the soft redirects are nothing but incoming links, so it would probably be nearly impossible to have the software notify the deleter about these. We do have warnings about incoming links, but since there nearly always are incoming links for other reasons, this warning would tend to be useless. עוד מישהו Od Mishehu 11:45, 15 December 2015 (UTC)

Can we redirect one category to multiple categories?[edit]

I think it may be useful to redirect one category to several other categories so that they can be automatically placed in those categories. This would be a useful way to automate the cleanup of WP:Overcategorization, which now seems to require a tedious and time-consuming cleanup process.

Of course, this might not be the best solution to this problem. Can anyone suggest a better way to automatically split categories? Jarble (talk) 08:35, 11 January 2016 (UTC)

Not sure what you mean by this - do you mean you want every entry in Category:A to become members of Category:B and Category:C (B and C are existing categories), then deprecate Category:A? Deryck C. 17:19, 20 February 2016 (UTC)

@Deryck Chan: Yes, that's what I am proposing. For example, {{category redirect|B|C}} would redirect a page to Category:B and Category:C. It would be a very reasonable way to solve the problem of overcategorization. Jarble (talk) 22:33, 14 November 2016 (UTC)

Could you give a real, specific example as an illustration? In the abstract, I can't see what benefit you're hoping to accomplish. Particularly given that OC is generally about having an article be placed in too many categories rather than too few. Unless you're trying to automate how to split up overly specific intersection categories...don't we already have tools for that? postdlf (talk) 22:18, 30 May 2017 (UTC)
@Postdlf and Deryck Chan: I haven't yet found any tools to split overly-specific intersection categories like this one. A "category intersection" feature was proposed several years ago, but it has not been implemented yet. Jarble (talk) 14:54, 18 May 2018 (UTC)

Template-protected edit request on 19 August 2016[edit]

Could you please wrap the <small>'''[[Wikipedia:Administrators|Administrators]]''': If this category name is unlikely to be entered on new pages, [{{fullurl:{{FULLPAGENAME}}|wpReason={{urlencode:This category is located at [[{{{1}}}]]. }}}}&action=delete click here to delete].</small> part in <span class="sysop-show">s, so that that text isn't visible for non-admins.

Pppery (talk) 01:13, 19 August 2016 (UTC)

Done — Andy W. (talk ·ctb) 01:43, 19 August 2016 (UTC)