Template:R to anchor/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:R to anchor. It contains usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 43,000 pages, so changes to it will be widely noticed. Please test any changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Please consider discussing changes on the talk page before implementing them. |
This template should not be substituted nor used to tag soft redirects. |
Template:Twinkle standard installation
Usage
- This redirect category (rcat) template populates Category:Redirects to embedded anchors. Add this rcat to a redirect in the following manner:
#REDIRECT [[(target page name)#(target anchor name)]] {{Rcat shell| {{R to anchor}} }}
- and when the redirect is in article mainspace, printworthiness should also be tagged:
#REDIRECT [[(target page name)#(target anchor name)]] {{Rcat shell| {{R to anchor}} {{R unprintworthy}} }}
- 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 page name)#(target anchor name)]] {{R to anchor}}
- This is in accord with instructions found at Wikipedia:REDCAT.
- This rcat is used whenever a redirect targets an embedded {{anchor}} or {{vanchor}} on a page, a
<span id=(anchor)> ... </span>
html element or theid=
attribute within tables. A redirect may target an anchor that covers a particular term that has insufficient independent scope and notability to warrant its own section, much less an entire article, and the term is nonetheless important within the field and is useful to link from other articles in the field of expertise. Such redirects allow a reader to search and find useful information about the term and similar related material in the defining article. - Also use this rcat to tag redirects that target old section headers that have been replaced and anchored to prevent broken internal and external links. This template should not be used to categorize redirects to existing section headers. Use {{R to section}} instead.
- Please use the following rcats when more appropriate:
{{R to list entry}}
, which populates Category:Redirects to list entries{{R to section}}
, which populates Category:Redirects to sections
Aliases
- Also known as... – list of templates that redirect here and may also be used
Printworthiness
Please do not alter the printworthy settings of this rcat without first notifying the Version 1.0 Editorial Team, who are responsible for any and all materials, including redirects, that go into a printed version of Wikipedia. |
- In main-article namespace, many redirects to embedded anchors are considered printworthy, perhaps even with the possibility to become a separate article, project page, etc.; however, there are many other such redirects 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 Wikipedia articles in Template:Diff. 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 to anchor}} {{R printworthy}} }} {{Rcat shell| {{R to anchor}} {{R unprintworthy}} }}
- Either {{Redirect category shell}} or its alias/shortcut, {{Rcat shell}}, may be used.