Open main menu
Home
Random
Log in
Settings
About Chabadpedia
Chabadpedia
Search
Editing
Chabadpedia:Categorizing redirects
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
Advanced
Special characters
Help
Heading
Level 2
Level 3
Level 4
Level 5
Format
Insert
Latin
Latin extended
IPA
Symbols
Greek
Greek extended
Cyrillic
Arabic
Arabic extended
Hebrew
Bangla
Tamil
Telugu
Sinhala
Devanagari
Gujarati
Thai
Lao
Khmer
Canadian Aboriginal
Runes
Á
á
À
à
Â
â
Ä
ä
Ã
ã
Ǎ
ǎ
Ā
ā
Ă
ă
Ą
ą
Å
å
Ć
ć
Ĉ
ĉ
Ç
ç
Č
č
Ċ
ċ
Đ
đ
Ď
ď
É
é
È
è
Ê
ê
Ë
ë
Ě
ě
Ē
ē
Ĕ
ĕ
Ė
ė
Ę
ę
Ĝ
ĝ
Ģ
ģ
Ğ
ğ
Ġ
ġ
Ĥ
ĥ
Ħ
ħ
Í
í
Ì
ì
Î
î
Ï
ï
Ĩ
ĩ
Ǐ
ǐ
Ī
ī
Ĭ
ĭ
İ
ı
Į
į
Ĵ
ĵ
Ķ
ķ
Ĺ
ĺ
Ļ
ļ
Ľ
ľ
Ł
ł
Ń
ń
Ñ
ñ
Ņ
ņ
Ň
ň
Ó
ó
Ò
ò
Ô
ô
Ö
ö
Õ
õ
Ǒ
ǒ
Ō
ō
Ŏ
ŏ
Ǫ
ǫ
Ő
ő
Ŕ
ŕ
Ŗ
ŗ
Ř
ř
Ś
ś
Ŝ
ŝ
Ş
ş
Š
š
Ș
ș
Ț
ț
Ť
ť
Ú
ú
Ù
ù
Û
û
Ü
ü
Ũ
ũ
Ů
ů
Ǔ
ǔ
Ū
ū
ǖ
ǘ
ǚ
ǜ
Ŭ
ŭ
Ų
ų
Ű
ű
Ŵ
ŵ
Ý
ý
Ŷ
ŷ
Ÿ
ÿ
Ȳ
ȳ
Ź
ź
Ž
ž
Ż
ż
Æ
æ
Ǣ
ǣ
Ø
ø
Œ
œ
ß
Ð
ð
Þ
þ
Ə
ə
Formatting
Links
Headings
Lists
Files
References
Discussion
Description
What you type
What you get
Italic
''Italic text''
Italic text
Bold
'''Bold text'''
Bold text
Bold & italic
'''''Bold & italic text'''''
Bold & italic text
==How to categorize a redirect== {{Redirect|WP:REDCAT|the guideline on red-linked categories|WP:REDNOT}} {{Shortcut|WP:REDCAT}} A redirect may be categorized in the same way as for any other page. When it is possible, use '''[[Chabadpedia:Template messages/Redirect pages|redirect category templates]]''' (rcats). 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> #REDIRECT [[Xxy Yzz]] {{Redirect category shell| {{R from move}} {{R printworthy}} }} {{DEFAULTSORT:Yzz, Xxy}} [[Category:Aaa]] </pre> The {{code|<nowiki>#REDIRECT [[Article title]]</nowiki>}} ''must come first, on the top line, and must start from the left margin''. {{code|<nowiki>[[Category:...]]</nowiki>}}-type links may be placed ''on their own lines after the redirect target link''. Redirect category (rcat) templates, {{code|<nowiki>{{R from...}}, {{R to ...}}</nowiki>}}, etc., the {{tl|Redirect category shell}} (Rcat shell) template may be placed anywhere after the redirect ''on another line or lines'', preferably the third line for readability. Those are usually placed before (above) content categories and empty lines are left between the types for readability. The {{code|<nowiki>{{DEFAULTSORT:}}</nowiki>}} [[Help:Magic words|magic word]] can also be placed on redirects, for example, to ensure that a redirect title that begins with a person's given name will be sorted to their surname: {{code|<nowiki>{{DEFAULTSORT:Sprat, Jack}}</nowiki>}} The {{tl|Redirect category shell}} (Rcat shell) template may be used to group redirect categories. That template automatically senses protection levels and promotes a faster learning curve for new editors. See its documentation page and the [[Template:Redirect category shell/Comparison|comparison]] page for more information. The redirect will appear in the specified categories in a style format that is different than non-redirects (by default, redirects appear in ''italics'' type, while non-redirects do not – see [[#Technical note|Technical note]] below). Note that in the case of a [[WP:R#Module redirects|Module redirect]] the Rcats should be added to the documentation page like regular categories per [[WP:CAT#T]] since adding templates directly to a [[WP:module|module]] without breaking the redirect is impossible.{{Efn|<syntaxhighlight lang=lua inline>require('Module:Module wikitext')._addText([[{{Rcat shell|{{R from move}}}}]]);</syntaxhighlight> won't work since placing it above the return disables the redirect. Invoking the module still works but opening its page no longer redirects to the target. Placing it below the return causes an error.}} See [[Special:Diff/1232623740|this edit]] for an example. {{Collapse top|title=Further examples}} ; Example 1 : – a redirect that targets page ''Xxy Yzz'', which uses the {{tlx|R from former name}} and {{tlx|R printworthy}} rcats, and which is also sorted to article content categories ''Aaa'' and ''Bbb'', may appear as follows: <pre> #REDIRECT [[Xxy Yzz]] {{Rcat shell| {{R from former name}} {{R printworthy}} }} {{DEFAULTSORT:Yzz, Xxy}} [[Category:Aaa]] [[Category:Bbb]] </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 {{no redirect|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 {{no redirect|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 [[Chabadpedia: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]]: :: For the {{no redirect|Bruce Jenner}} redirect: <pre> #REDIRECT [[Caitlyn Jenner]] {{Rcat shell| {{R from birth name}} {{R printworthy}} }} {{DEFAULTSORT:Jenner, Bruce}} [[Category:Athletes (track and field) at the 1975 Pan American Games]] [[Category:Athletes (track and field) at the 1976 Summer Olympics]] </pre> :: ''Category:Redirects from birth names'' is a subcategory of ''Category:Redirects from former names''. Normally, the most specific subcategory is used on redirects rather than their parent categories. ;Example 2 : – a redirect to an article subsection titled "Header": <pre> #REDIRECT [[Xxy Yzz#Header]] {{Redirect category shell| {{R to section}} {{R printworthy}} }} </pre> : ''also'', when the above shell template is used, all its contents can be entered on one line as follows: <pre> #REDIRECT [[Xxy Yzz#Header]] {{Redirect category shell|{{R to section}}{{R printworthy}}}} </pre> : There are often very good reasons to choose to use ''Rcat shell'' rather than using rcats by themselves; these reasons are detailed on its documentation and comparison pages. ;Example 3 : – a redirect to an article that has an anchor titled "Anchor this" (see templates {{tl|Anchor}}, {{tl|Visible anchor}}, and {{tls|Anchor comment}}): <pre> #REDIRECT [[Xxy Yzz#Anchor this]] {{Redirect category shell| {{R to anchor}} {{R unprintworthy}} }} </pre> ;Example 4 : – one common redirect need to a geology page titled ''Xxy Yzz'', which uses the ''R to section'' rcat to point to the article and section where the common term is defined, and which should be in categories ''Aaa'', ''Bbb'', ''Ccc'' and ''Ddd'' (the parent article may be sorted to a few more, such as ''Eee'', ''Fff'', etc.), all of which are categories usually found in the parent article. Here is how this example would appear: <pre> #REDIRECT [[Xxy Yzz#Section header]] {{Rcat shell| {{R to section}} {{R to related topic}} {{R printworthy}} }} [[Category:Aaa|{{PAGENAME:Xxy Yzz}}]] [[Category:Bbb|{{PAGENAME:Xxy Yzz}}]] [[Category:Ccc|{{PAGENAME:Xxy Yzz}}]] [[Category:Ddd|{{PAGENAME:Xxy Yzz}}]] </pre> ;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. :# {{code|<nowiki>{{PAGENAME}}</nowiki>}} is one of several "[[Help:Magic words|magic words]]" (magic words are different from [[WP:template|templates]]) 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. :# 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''. :# For more detailed information about how to categorize redirects please see the documentation for individual rcats, and the ''Redirect category shell'' template. {{Collapse bottom}} <div style="width: 100%; background: lightyellow;"> ; {{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|Chabadpedia 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>
Edit summary
(Briefly describe your changes)
Please note that all contributions to Chabadpedia are considered to be released under the GNU Free Documentation License 1.3 or later (see
Chabadpedia:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Category:Chabadpedia pages with incorrect protection templates
Category:Pages with missing files
Category:Pages with script errors
Close
Loading editor…