Stiles Wiki:Categorizing redirects: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "{{pp-semi|small=yes}} {{redirect|WP:RCAT|how to redirect one category to another|Template:Category redirect}} {{subcat guideline|editing guideline|Categorization Redirects|WP:RCAT}} {{nutshell|Redirects are not articles and most should not be sorted into mainspace content categories; however, all redirects should be sorted into appropriate "maintenance" (non-article) categories whenever possible.}} This is a Wikipedia guideline for placing redirect pages...")
 
No edit summary
 
Line 1: Line 1:
{{pp-semi|small=yes}}
{{pp-semi|small=yes}}
{{redirect|WP:RCAT|how to redirect one category to another|Template:Category redirect}}
{{redirect|SW:RCAT|how to redirect one category to another|Template:Category redirect}}
{{subcat guideline|editing guideline|Categorization Redirects|WP:RCAT}}
{{subcat guideline|editing guideline|Categorization Redirects|SW:RCAT}}
{{nutshell|Redirects are not articles and most should not be sorted into mainspace content categories; however, all redirects should be sorted into appropriate "maintenance" (non-article) categories whenever possible.}}
{{nutshell|Redirects are not articles and most should not be sorted into mainspace content categories; however, all redirects should be sorted into appropriate "maintenance" (non-article) categories whenever possible.}}
This is a Wikipedia guideline for placing [[WP:redirect|redirect]] pages into [[WP:Categorization|categories]]. It is intended to document current practice and suggest best practice in other areas and indicate where categorization of redirects can be misleading.
This is a Stiles.casa Wiki guideline for placing [[SW:redirect|redirect]] pages into [[SW:Categorization|categories]]. It is intended to document current practice and suggest best practice in other areas and indicate where categorization of redirects can be misleading.


==When to categorize a redirect==
==When to categorize a redirect==
Normal ("hard") [[WP:Redirect|redirects]] should be placed in one of several [[Wikipedia:Template messages/Redirect pages|maintenance categories]] specifically for redirects.  This should be done using categorization templates (rcats) such as {{tl|Wikidata redirect}}.
Normal ("hard") [[SW:Redirect|redirects]] should be placed in one of several [[Stiles.casa Wiki:Template messages/Redirect pages|maintenance categories]] specifically for redirects.  This should be done using categorization templates (rcats) such as {{tl|Wikidata redirect}}.


[[WP:soft redirect|Soft redirect]]s usually should ''not'' be categorized by rcats.  Use of {{tl|Wikidata redirect}} and {{tl|R category with possibilities}} to tag soft-redirected categories are presently the only exceptions.
[[SW:soft redirect|Soft redirect]]s usually should ''not'' be categorized by rcats.  Use of {{tl|Wikidata redirect}} and {{tl|R category with possibilities}} to tag soft-redirected categories are presently the only exceptions.


Redirects are not usually sorted to ''article'' categories; however, there are exceptions, as described below.
Redirects are not usually sorted to ''article'' categories; however, there are exceptions, as described below.
Line 15: Line 15:
There are a series of categories that are used only for redirects. Redirects are placed in categories by templates. These categories explain why the redirect exists, for example {{tl|R from merge}} means it was created by a merge or {{tl|R from alternative name}} means that the redirect is an alternative name for the main title.
There are a series of categories that are used only for redirects. Redirects are placed in categories by templates. These categories explain why the redirect exists, for example {{tl|R from merge}} means it was created by a merge or {{tl|R from alternative name}} means that the redirect is an alternative name for the main title.


These categories are only intended to contain redirects, and are helpful in keeping track of redirects and further subcategorizing them as needed. They include both redirects within main namespace and in other namespaces. They are often applied using templates, though such categories can also be created and populated directly. This categorization is intended for Wikipedia editors, not readers.
These categories are only intended to contain redirects, and are helpful in keeping track of redirects and further subcategorizing them as needed. They include both redirects within main namespace and in other namespaces. They are often applied using templates, though such categories can also be created and populated directly. This categorization is intended for Stiles.casa Wiki editors, not readers.


For tables of redirect category templates, grouped both alphanumerically and by function, see [[Wikipedia:Template index/Redirect pages]]. For the categorical list of such templates, see {{Cat|Redirect templates}}. All the redirect categories are subcategories of {{Cat|Wikipedia redirects}}, which is ''not'' meant to contain any redirects directly and is purposely kept empty except for subcategories.
For tables of redirect category templates, grouped both alphanumerically and by function, see [[Stiles.casa Wiki:Template index/Redirect pages]]. For the categorical list of such templates, see {{Cat|Redirect templates}}. All the redirect categories are subcategories of {{Cat|Stiles.casa Wiki redirects}}, which is ''not'' meant to contain any redirects directly and is purposely kept empty except for subcategories.


===Article categories===
===Article categories===
Line 23: Line 23:


====Redirects having a target that is incompatible with the category====
====Redirects having a target that is incompatible with the category====
{{shortcut|WP:INCOMPATIBLE}}
{{shortcut|SW:INCOMPATIBLE}}
Alternative names should not look out of place on a category page.  This is often a way to satisfy disagreements over renaming an article when more than one name seems equally valid.  The alternative name(s) becomes a redirect and gets categorized the same way as its target. Another example is when a single article covers things known by multiple names, such as a person who is known in multiple fields of endeavour under different names, a merged article about three different newspapers, or a sketch comedy television show whose name exists on Wikipedia as a redirect to the comedy troupe that created it. In such a case, consideration needs to be given to which title should be reflected in an individual category.
Alternative names should not look out of place on a category page.  This is often a way to satisfy disagreements over renaming an article when more than one name seems equally valid.  The alternative name(s) becomes a redirect and gets categorized the same way as its target. Another example is when a single article covers things known by multiple names, such as a person who is known in multiple fields of endeavour under different names, a merged article about three different newspapers, or a sketch comedy television show whose name exists on Stiles.casa Wiki as a redirect to the comedy troupe that created it. In such a case, consideration needs to be given to which title should be reflected in an individual category.


Note that placing such a category on the target article, with the alternative title in pipetext, does ''not'' accomplish the desired purpose, as pipetext in a category link only affects how a title is ordered alphabetically, ''not'' how it actually appears.
Note that placing such a category on the target article, with the alternative title in pipetext, does ''not'' accomplish the desired purpose, as pipetext in a category link only affects how a title is ordered alphabetically, ''not'' how it actually appears.
Line 35: Line 35:


====Subtopic categorization====
====Subtopic categorization====
{{shortcut|WP:SUBTOPICCAT}}
{{shortcut|SW:SUBTOPICCAT}}
Some subtopics of articles have well-known names and, over time, may expand to become separate articles. Many articles cover several topics that have been combined. This can happen following a merge of several related articles.  Often there are redirects pointing to these subtopics. These redirects can be categorized.  In some cases, the categories for the redirects that point to the subtopics will be different than the categories for the entire article.
Some subtopics of articles have well-known names and, over time, may expand to become separate articles. Many articles cover several topics that have been combined. This can happen following a merge of several related articles.  Often there are redirects pointing to these subtopics. These redirects can be categorized.  In some cases, the categories for the redirects that point to the subtopics will be different than the categories for the entire article.
*''Example of similar categorization:''
*''Example of similar categorization:''
Line 48: Line 48:


====Categorization of list entries====
====Categorization of list entries====
{{Shortcut|WP:LISTRCAT}}
{{Shortcut|SW:LISTRCAT}}
Some well-organized lists have redirects pointing at their subsections. In such cases, categorization of the redirects can be an alternative way of browsing entries in a long list. It can also provide an alphabetical listing for lists that are not organised alphabetically, such as lists organised in a chronological order. Redirects to sections of minor character lists should generally only be categorized within that fictional setting, and not in the wider fictional categories.
Some well-organized lists have redirects pointing at their subsections. In such cases, categorization of the redirects can be an alternative way of browsing entries in a long list. It can also provide an alphabetical listing for lists that are not organised alphabetically, such as lists organised in a chronological order. Redirects to sections of minor character lists should generally only be categorized within that fictional setting, and not in the wider fictional categories.
*''Examples:''
*''Examples:''
Line 54: Line 54:


==How to categorize a redirect==
==How to categorize a redirect==
{{Redirect|WP:REDCAT|the guideline on red-linked categories|WP:REDNOT}}
{{Redirect|SW:REDCAT|the guideline on red-linked categories|SW:REDNOT}}
{{Shortcut|WP:REDCAT}}
{{Shortcut|SW:REDCAT}}


A redirect may be categorized in the same way as for any other page; however, when it is possible to use '''[[Wikipedia:Template messages/Redirect pages|redirect category templates]]''' (rcats), then these should be used. For clarity, ''all'' category links should be added at the end of the page on their own lines, after the redirect target link and rcat(s). Use of a blank line between the redirect target link and all rcats and category links promotes readability of the code.  
A redirect may be categorized in the same way as for any other page; however, when it is possible to use '''[[Stiles.casa Wiki:Template messages/Redirect pages|redirect category templates]]''' (rcats), then these should be used. For clarity, ''all'' category links should be added at the end of the page on their own lines, after the redirect target link and rcat(s). Use of a blank line between the redirect target link and all rcats and category links promotes readability of the code.  


<pre>
<pre>
Line 93: Line 93:
</pre>
</pre>


:When the title being redirected is a person's proper name, consensus is to modify the [[WP:SORTKEY|sort key]] from its default action, (usually sorted by {{code|<nowiki>{{PAGENAME}}</nowiki>}}, the redirect title in this case), to instead sort it by [[surname]]. The {{code|<nowiki>{{DEFAULTSORT:}}</nowiki>}} [[WP:PF#Behavior switches|behaviour switch]] is used for this; for example, on the edit page of the {{noredirect|George Walker Bush}} redirect, use {{code|<nowiki>{{DEFAULTSORT:Bush, George Walker}}</nowiki>}}, so that the page will appear alphabetized in the B's and not the G's of the various categories.  Similarly, for titles beginning with a definite or indefinite [[article (grammar)|article]], such as "the" or "a" – for example in redirect {{noredirect|The President of the United States}}, use {{code|<nowiki>{{DEFAULTSORT:President of the United States, The}}</nowiki>}}, so that the page will appear alphabetically in the P's (see [[Wikipedia:Categorization of people#Ordering names in a category]] for more information). As with non-redirect pages, it should be positioned [[WP:FOOTERS|immediately before the article content categories]]:
:When the title being redirected is a person's proper name, consensus is to modify the [[SW:SORTKEY|sort key]] from its default action, (usually sorted by {{code|<nowiki>{{PAGENAME}}</nowiki>}}, the redirect title in this case), to instead sort it by [[surname]]. The {{code|<nowiki>{{DEFAULTSORT:}}</nowiki>}} [[SW:PF#Behavior switches|behaviour switch]] is used for this; for example, on the edit page of the {{noredirect|George Walker Bush}} redirect, use {{code|<nowiki>{{DEFAULTSORT:Bush, George Walker}}</nowiki>}}, so that the page will appear alphabetized in the B's and not the G's of the various categories.  Similarly, for titles beginning with a definite or indefinite [[article (grammar)|article]], such as "the" or "a" – for example in redirect {{noredirect|The President of the United States}}, use {{code|<nowiki>{{DEFAULTSORT:President of the United States, The}}</nowiki>}}, so that the page will appear alphabetically in the P's (see [[Stiles.casa Wiki:Categorization of people#Ordering names in a category]] for more information). As with non-redirect pages, it should be positioned [[SW:FOOTERS|immediately before the article content categories]]:
:: For the {{-r|Bruce Jenner}} redirect:
:: For the {{-r|Bruce Jenner}} redirect:
<pre>
<pre>
Line 159: Line 159:
;Notes
;Notes
:# '''Crucial note''':  If the ''Redirect category shell'' (Rcat shell) template is placed on the first line, the same line as the redirect target, there are usually unexpected and peculiar results.  [[HTML Tidy]] may interfere with the templates and cause them to appear in abnormal and unexpected ways when saved.  Just be careful to put these templates on the third line beginning at the far left margin of the edit screen.
:# '''Crucial note''':  If the ''Redirect category shell'' (Rcat shell) template is placed on the first line, the same line as the redirect target, there are usually unexpected and peculiar results.  [[HTML Tidy]] may interfere with the templates and cause them to appear in abnormal and unexpected ways when saved.  Just be careful to put these templates on the third line beginning at the far left margin of the edit screen.
:# {{code|<nowiki>{{PAGENAME}}</nowiki>}} is one of several "[[Help:Magic words|magic word]]s" (magic words are different from [[WP:template|template]]s) in wikimarkup language.  It fills in the pagename (without the namespace) of the redirect ''unless'' the pagename of the target page (without namespace) is entered as its first parameter.  The first category parameter represented by {{code|<nowiki>|{{PAGENAME:Xxy Yzz}}</nowiki>}} (note that the colon ( ''':''' ) is used to pass parameters in magic words rather than the pipe ( '''|''' ) symbol that is used in templates) above is in fact the sort key used to group pages together in a category list.
:# {{code|<nowiki>{{PAGENAME}}</nowiki>}} is one of several "[[Help:Magic words|magic word]]s" (magic words are different from [[SW:template|template]]s) in wikimarkup language.  It fills in the pagename (without the namespace) of the redirect ''unless'' the pagename of the target page (without namespace) is entered as its first parameter.  The first category parameter represented by {{code|<nowiki>|{{PAGENAME:Xxy Yzz}}</nowiki>}} (note that the colon ( ''':''' ) is used to pass parameters in magic words rather than the pipe ( '''|''' ) symbol that is used in templates) above is in fact the sort key used to group pages together in a category list.
:# When the ''Redirect category shell'' (Rcat shell) template is used, each rcat can pass its own parameters, whether named or numbered, in the normal manner, and without concern for what position the rcat holds within the shell template.
:# When the ''Redirect category shell'' (Rcat shell) template is used, each rcat can pass its own parameters, whether named or numbered, in the normal manner, and without concern for what position the rcat holds within the shell template.
:# As shown above, [[WP:printworthiness|printworthiness]] is an important type of sort.  We are told in the style guide, "The ultimate goal of the guide is to have every redirect categorised in a standard format, as well as to have every [[WP:mainspace|main-namespace]] redirect categorised as either printworthy or unprintworthy."  It is important to note that this only applies to main article namespace redirects ''and not to redirects in any other namespace''.
:# As shown above, [[SW:printworthiness|printworthiness]] is an important type of sort.  We are told in the style guide, "The ultimate goal of the guide is to have every redirect categorised in a standard format, as well as to have every [[SW:mainspace|main-namespace]] redirect categorised as either printworthy or unprintworthy."  It is important to note that this only applies to main article namespace redirects ''and not to redirects in any other namespace''.
:# For more detailed information about how to categorize redirects please see the documentation for individual rcats, and the ''Redirect category shell'' template.
:# For more detailed information about how to categorize redirects please see the documentation for individual rcats, and the ''Redirect category shell'' template.


Line 168: Line 168:
<div style="width: 100%; background: lightyellow;">
<div style="width: 100%; background: lightyellow;">
; {{pad|6px}}General information note
; {{pad|6px}}General information note
: ALL the {{code|<nowiki>{{R from...}}, {{R to...}}</nowiki>}}, etc., templates have as their main purpose to populate a redirect subcategory (see {{cat|Wikipedia redirects}}) to aid in maintenance.  A second goal is to help editors with concise explanations for such sortings. Generally speaking, one such template categorizes redirect pages to the subcategory, though that template may be "aliased" by use of several alternative phrasings, themselves redirects to the template.  Common alias choices are: other vs. alternative, capitalization vs. capitalisation and other such spelling/phrasing variants like "R to singular" vs. "R from plural" and "R from singular" vs. "R to plural".</div>
: ALL the {{code|<nowiki>{{R from...}}, {{R to...}}</nowiki>}}, etc., templates have as their main purpose to populate a redirect subcategory (see {{cat|Stiles.casa Wiki redirects}}) to aid in maintenance.  A second goal is to help editors with concise explanations for such sortings. Generally speaking, one such template categorizes redirect pages to the subcategory, though that template may be "aliased" by use of several alternative phrasings, themselves redirects to the template.  Common alias choices are: other vs. alternative, capitalization vs. capitalisation and other such spelling/phrasing variants like "R to singular" vs. "R from plural" and "R from singular" vs. "R to plural".</div>


==Technical note==
==Technical note==
Line 174: Line 174:


==See also==
==See also==
* [[Wikipedia:WikiProject Redirect/Style guide]]
* [[Stiles.casa Wiki:WikiProject Redirect/Style guide]]
* [[Wikipedia:Template messages/Redirect pages]]
* [[Stiles.casa Wiki:Template messages/Redirect pages]]
* [[Wikipedia:Printability]]
* [[Stiles.casa Wiki:Printability]]
* [[:Category:Redirect templates]]
* [[:Category:Redirect templates]]
* [[User:Wugapodes/Capricorn|Capricorn]], a [[Wikipedia:User scripts|user script]] to assist in categorizing redirects
* [[User:Wugapodes/Capricorn|Capricorn]], a [[Stiles.casa Wiki:User scripts|user script]] to assist in categorizing redirects


{{R template index}}
{{R template index}}
{{Wikipedia categorization navbox}}
{{Stiles.casa Wiki categorization navbox}}


[[Category:Wikipedia categorization]]
[[Category:Stiles.casa Wiki categorization]]
[[Category:Wikipedia redirecting]]
[[Category:Stiles.casa Wiki redirecting]]


[[fr:Aide:Redirection (wikicode, avancé)#Catégoriser une redirection]]
[[fr:Aide:Redirection (wikicode, avancé)#Catégoriser une redirection]]

Navigation menu