Template:R avoided double redirect/doc
This is a documentation subpage for Template:R avoided double redirect. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on many pages, and changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in a user subpage, and consider discussing changes at the talk page before implementing them. |
When used with the "Redirect category shell" (Rcat shell) template:
This page is a redirect:
|
- Template {{Redirect category shell}} may be used to add one or more rcat templates, along with their parameters and categories, to a redirect. For more information see the documentation page below.
When used by itself:
- From an avoided double redirect: This is a redirect from an alternative title for (redirect page name), another redirect to the same title. Because double redirects are disallowed, both pages currently point to (target article).
- If (redirect page name) is expanded into a separate article or it is retargeted, this redirect will be recategorized to be updated.
This template should not be substituted nor used to tag soft redirects. |
Because the saved version of a page is used to determine if it is a redirect, this template may incorrectly give an error in preview mode. Save the page to be sure if the error is true or not. |
Uses Lua: |
Purpose
Some redirects should target other redirects, but that is not allowed by TechInfoDepot software. A redirect that targets another redirect is called a "double redirect". This redirect category (rcat) template may be used to tag redirects from alternative forms (abbreviations, disambiguated titles, etc.) of titles that are themselves redirects to broader-topic articles (whether or not marked as redirects with possibilities). To avoid a double redirect, any alternative-title redirect must also target the same broader article, and must be updated if the redirect from the more specific title is converted to a separate article.
Usage
- This rcat template populates the following categories by default:
- Category:Avoided double redirects – if page specified in the unnamed parameter is still a redirect
- Category:Avoided double redirects to be updated – if specified page is no longer a redirect
- Add this rcat to a redirect page (not a talk-page redirect) in the following manner:
#REDIRECT [[(target article title)]]
{{Rcat shell|
{{R avoided double redirect|1=(specified page)}}
}}
- or the
1=
may be omitted:
#REDIRECT [[(target article title)]]
{{Rcat shell|
{{R avoided double redirect|(specified page)}}
}}
- The "(specified page)" is the other redirect that has possibilities of being converted into an article, and to which the tagged redirect may someday be retargeted.
- Template {{Rcat shell}} is an alias for the Redirect category shell template, which may be used to add as many appropriate rcats as needed, usually from one to seven, along with their parameters, to a redirect. For more information see the documentation on its template page. This rcat may also tag a redirect individually:
#REDIRECT [[(target article title)]]
{{R avoided double redirect|(specified page)}}
- This is in accord with instructions found at TechInfoDepot:REDCAT.
- Use this rcat to tag any mainspace redirect from a title that should target another redirect. For example, so far there is no article Template:Large yet, and that title is a redirect to [[Voyage to the Bottom of the Sea (TV series)|Template:Large]]. Alternate forms of that redirect, such as Template:Large, must also redirect to the "Voyage to the Bottom of the Sea (TV series)" article in order to avoid a double redirect. In this case the Admiral Harriman Nelson redirect should be tagged with this rcat template as follows:
#REDIRECT [[Voyage to the Bottom of the Sea (TV series)]]
{{Rcat shell|
{{R avoided double redirect|Harriman Nelson}}
{{R unprintworthy}}
}}
- or if applied individually:
#REDIRECT [[Voyage to the Bottom of the Sea (TV series)]]
{{R avoided double redirect|Harriman Nelson}}
- The individual usage on the Admiral Harriman Nelson redirect would display (without the border):
- From an avoided double redirect: This is a redirect from an alternative title for Harriman Nelson, another redirect to the same title.
- This is a broken redirect (its target does not exist).
- If a new article is later created at Harriman Nelson, then the template output on the Admiral Harriman Nelson redirect will automatically change to:
- From an avoided double redirect: This is a redirect from an alternative title for Harriman Nelson, a former redirect to the same title.
- This is a broken redirect (its target does not exist).
- In the first case above, the boldface From an avoided double redirect would actually link to the main category, Avoided double redirects, and in the second case the link would automatically be altered to Category:Avoided double redirects to be updated.
- Also use {{R with possibilities}} and {{R printworthy}} or {{R unprintworthy}} when appropriate.
Aliases
- Also known as... – list of templates that redirect here and may also be used
Printworthiness
- In main-article namespace, many redirects from avoided double redirects are considered printworthy; however, there are many others that are unprintworthy, so there is no default sort for printworthiness. In 2003, efforts were begun to support the Wikimedia Foundation's goal of increasing access and availability of TechInfoDepot articles in printed versions. Some rcats automatically populate either Category:Printworthy redirects or Category:Unprintworthy redirects by default. Others, like this rcat, do not, and that means it is up to editors to choose which of those categories, Printworthy or Unprintworthy, is appropriate and should be populated. The rcats that are used separately to populate those categories are:
{{R printworthy}}
and{{R unprintworthy}}
- Please click on each one for more details and guidance.
- Template {{Redirect category shell}} will accept these rcats just like any other.
- Examples:
{{Rcat shell|
{{R avoided double redirect|(specified page)}}
{{R printworthy}}
}}
{{Rcat shell|
{{R avoided double redirect|(specified page)}}
{{R unprintworthy}}
}}
- Either {{Redirect category shell}} or its alias/shortcut, {{Rcat shell}}, may be used.
TemplateData
See the monthly error report for this template.
TemplateData for R avoided double redirect
This redirect category (rcat) template may be used to tag redirects from alternative forms (abbreviations, disambiguated titles, etc.) of titles that are themselves redirects to broader-topic articles (whether or not marked as redirects with possibilities). To avoid a double redirect, any alternative-title redirect must also target the same broader article, and must be updated if the redirect from the more specific title is converted to a separate article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Redirect page name | 1 | The page this redirect would target if the page wasn't also a redirect. | Page | required |