When editing this navbox template itself

sửa

Avoid double redirects in the navbox

sửa

As with all navbox templates, if you edit the contents of the nest box template itself, please do not use aliases (titles of redirects) Use a direct link to the title, in either plain or piped format. In any navbox, redirects are not any audience's friend.

If the title of the target page of the redirect page, that is, the title of the non-redirect subject page is used in the navbox, then the title will appear not as a link, but as a bold, unclickable entry that's easy to find when the navbox is placed on that entry's page.

However, a redirect listed in the same navbox on the same page will not appear in unclickable bold text but as a link, which could send an editor on a confusing runaround if they click the redirect's title.

When looking through this navbox or adding its template to other pages

sửa

Purpose of this navbox template

sửa

Bản mẫu:Linking and page manipulation You can use this navbox (navigation box) template to quickly find the redirect category templates (rcats or, much more rarely, redcats) to add near the bottom of a redirect page that you are creating or editing. The rcats are organized by function. For information on placing these rcats on redirects (redirect pages; a Wikipedia page that sends the browser to a different article, project page, or other type of English Wikipedia page), see the rcat's own documentation page or WP:REDCAT.

For an expanded index (not a navbox) with examples and a complete alphanumerical listing of redirect category templates, see Wikipedia:Template index/Redirect pages. The links on this page's navbox template lead either to sections on that expanded index page or less often to other explanatory pages associated with rcats.

Usage

sửa

This navbox belongs at the bottom of template documentation pages (above the categories). Add either {{R template index}} or its shortcut, {{Rcats}}, in the following manner:

{{R template index}}

Visibility parameter |state= and its options

sửa

Trạng thái hiển thị ban đầu: hiện tại mặc định là collapsed

Để thiết lập trạng thái hiển thị ban đầu của bản mẫu, sử dụng tham số |state= như sau:

  • |state=collapsed: {{R template index|state=collapsed}} để hiển thị bản mẫu ở trạng thái đóng, nghĩa là thu gọn về thanh tiêu đề
  • |state=expanded: {{R template index|state=expanded}} để hiển thị bản mẫu ở trạng thái mở, nghĩa là hiện ra đầy đủ
  • |state=autocollapse: {{R template index|state=autocollapse}}
    • hiển thị bản mẫu thu gọn về thanh tiêu đề nếu có một hoặc nhiều {{hộp điều hướng}}, {{thanh bên}}, hay các bảng khác trên trang cũng có thuộc tính đóng mở
    • hiển thị bản mẫu đầy đủ nếu không có mục nào khác trên trang có thuộc tính đóng mở

Nếu tham số không được chỉ định, trạng thái hiển thị mặc định ban đầu của bản mẫu sẽ là collapsed (xem tham số |state= trong mã bản mẫu).

See also

sửa
Note: Additions made to the above functional index must also be added to this navbox, and vice versa.

Bản mẫu:Bản mẫu Wikipedia