#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 the id= 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 ප්‍රවර්ගය:Redirects to list entries
{{R to section}}, which populates ප්‍රවර්ගය:Redirects to sections
Please click on each one for more details and guidance.
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.
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:R_to_anchor/doc&oldid=584931" වෙතින් සම්ප්‍රවේශනය කෙරිණි