Bước tới nội dung

Bản mẫu:R to anchor

Bách khoa toàn thư mở Wikipedia

Khi được sử dụng với bản mẫu "Redirect category shell" (Rcat shell):

Bản mẫu {{Redirect category shell}} có thể được sử dụng để thêm một hoặc nhiều bản mẫu rcat, cùng với các tham số và thể loại của chúng, để đổi hướng. Để biết thêm thông tin xem trang tài liệu dưới đây.

Khi được sử dụng bởi chính nó:

  • Đến một anchor được nhúng: Trang này là trang đổi hướng từ một chủ đề không có trang riêng của nó đến một anchor được nhúng trên trang mục tiêu của trang đổi hướng này.
    • Một bản mẫu {{anchor|(tên anchor)}} hoặc {{visible anchor}}, một phần tử HTML với id="(tên anchor)", hoặc một tham số |id=(tên anchor) có thể đã được thêm vào đầu đoạn văn bản, bên trong hoặc gần tiêu đề đề mục hoặc bên trong một bảng. Anchor cũng có thể là một tiêu đề của đề mục cũ mà đã được sửa đổi và được anchor bên trong hoặc gần với tiêu đề mới nhằm tránh việc phá vỡ liên kết trong và ngoài.
    • Mặc dù các tiêu đề đề mục theo cách thông thường ==(Tên tiêu đề)== thì bản thân chúng đã là một loại anchor, nhưng với trường hợp này hãy sử dụng {{R to section}} để thay thế.
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]


#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 Thể loại:Redirects to list entries
{{R to section}}, which populates Thể loại:Redirects to sections

Printworthiness

[sửa mã nguồn]
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.