• Trang chính
  • Ngẫu nhiên
  • Đăng nhập
  • Tùy chọn
  • Giới thiệu Wikipedia
  • Lời phủ nhận
Wikibeta, Bách khoa tri thức mở

Bản mẫu:Category series navigation/sandbox

  • Ngôn ngữ
  • Theo dõi
  • Xem mã nguồn
< Bản mẫu:Category series navigation
Đây là trang chỗ thử bản mẫu cho Bản mẫu:Category series navigation (khác).
Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]
Chú ýBản mẫu này được sử dụng ở khoảng 63.000 trang, vì thế những thay đổi đến nó sẽ hiện ra rõ ràng. Vui lòng thử nghiệm các thay đổi ở trang con /sandbox, /testcases của bản mẫu, hoặc ở không gian người dùng của bạn. Cân nhắc thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi.
Bản mẫu này sử dụng Lua:
  • Module:Category series navigation (chỗ thử)
  • Module:List (chỗ thử)
  • Module:ConvertNumeric
  • Module:Roman
  • Module:Check for unknown parameters
  • Module:Template redirect regex
Trang liên quan
  • Template (talk)
  • Template sandbox
  • Template testcases
  • Template doc
  • Template subpages
  • Module (talk)
  • Module sandbox
  • Module testcases
  • Module doc
  • Module subpages

Mục lục

  • 1 Thông tin
    • 1.1 Hành vi tìm kiếm
    • 1.2 Hạn chế
      • 1.2.1 Numerical limitations and AD/BC/E
      • 1.2.2 Condensation
      • 1.2.3 Work-arounds
  • 2 Sử dụng
  • 3 Kiểm thử & gỡ lỗi
  • 4 Thể loại theo dõi
    • 4.1 Cần bảo trì
    • 4.2 Có thể cần bảo trì
    • 4.3 Có thể cần bảo trì module
    • 4.4 Chỉ để theo dõi
  • 5 Xem thêm

Thông tin

{{Category series navigation}} is intended to be a minimal-input, near-universal template for automatically navigating most numerically adjacent categories.

Hành vi tìm kiếm

Most multi-year seasons/office terms/numerical ranges are acceptable, as long as the season duration/term length/range size is <= 10, and the gap between seasons is <= 6. For series exceeding either of these criteria, see/use {{Irregular category series navigation}}.

The length of each season is automatically determined from the originating category name, up to and including 10 years. CNBS:DATERANGE compliance is preferred, but some deviation is allowed and tracked for regular series with seasons > 1 year long. {{Category redirect}}s are followed, and tracked for either MOS contravention (to be corrected) or for navigational aid (no error). The gap size between successive seasons is also automatically determined, up to and including 6 years, and defaults to 0 (e.g. 1995–96 → 1996–97).

Automatically condensed years are supported for presidential categories only (but can be easily expanded as needed), for gaps up to and including 5 years, and defaults to 1. To skip gaps of up to 50 years in any year categories, use |skip-gaps=yes.

Hạn chế

Numerical limitations and AD/BC/E

  • Season/office term categories do not work for any years BC, which will be hidden, because no working examples were found.
  • Decade categories recognize BC, but not BCE, because no working examples were found.
  • Ordinal & numeral words do not work above the ninety-ninth & ninety-nine, because no working examples were found.

Condensation

  • Automatically condensed Olympics display is not supported due to peculiarities; use {{Winter Olympics by year category navigation}}, etc., instead.
  • Automatically condensed years are supported for US presidential categories only, due to their consistency; use |skip-gaps=yes as desired on other year categories.
  • |skip-gaps=yes currently only works when starting on a year category, and is not intended to find all hyphenated ranges, which allows it to span much larger gaps.

Work-arounds

  • Base-name changes: create at least 2 logically numbered {{R from category navigation}} (1 backward & 1 forward), to join both related series.
  • Unaccounted-for name+number conventions: where a fixed number is part of the prefix or suffix text, e.g. Chapter 11 bankruptcies, a non-breaking space may force the template to work. See this fix, where {{title year}} skipped over 11 as part of a word rather than a discrete number. (This case has been accounted for and is no longer required in this example.)
  • General: for large, permanent gaps† between successive categories, use {{Preceding category}}, {{Category pair}}, {{Succeeding category}}, as needed, in addition to {{Category series navigation}} on both sides, or in the middle, of the gap. Even if {{Category series navigation}} is isolated, it has the benefit of confirming the absence of nearby categories to the reader or maintainer.
    †Permanent gaps, where there is a confirmed permanent absence of data, and not just a temporary, yet to be filled, gap on Wikipedia.
  • |skip-gaps=: create {{R from category navigation}} from an appropriate year to the hyphenated category that was not found.

Sử dụng

Typical usage
  • {{Category series navigation}}
Specify a minimum and/or maximum year to display
  • {{Category series navigation|min=-100}}
  • {{Category series navigation|min=100 BC}}
  • {{Category series navigation|min=1753|max=1810}}
  • {{Category series navigation|max=2030}}
To skip gaps in year categories
  • {{Category series navigation|skip-gaps=yes}}
To not automatically follow {{Category redirect}}s
  • {{Category series navigation|follow-redirects=no}}
Exceptional cases
  • {{Category series navigation|cat=2010s albums}} — to behave as if placed on |cat=; consider using {{Category pair}} instead of |cat=

Kiểm thử & gỡ lỗi

To test the output of the template on a particular category name, use the |testcase= parameter, and |testcasegap= if necessary:

  • {{Category series navigation|testcase=1770s in the Province of Quebec (1763–1791)|min=1760}} →
  • TN 1720
  • TN 1730
  • TN 1740
  • TN 1750
  • TN 1760
  • TN 1770
  • TN 1780
  • TN 1790
  • TN 1800
  • TN 1810
  • TN 1820
  • {{Category series navigation|testcase=1770s in the Province of Quebec (1763–1791)|max=1790s}} →
  • TN 1720
  • TN 1730
  • TN 1740
  • TN 1750
  • TN 1760
  • TN 1770
  • TN 1780
  • TN 1790
  • TN 1800
  • TN 1810
  • TN 1820


To see all links produced and/or tested, and what effect each has on their display, use |list-all-links=yes:

  • {{Category series navigation|testcase=Nations at the 2013 World Athletics Championships|min=2008|skip-gaps=yes|list-all-links=yes}} →
  1. Thể loại:Nations at the 2006 World Athletics Championships (2006) (2006)
  2. Thể loại:Nations at the 2007 World Athletics Championships (2007) (2007)
  3. Thể loại:Nations at the 2008 World Athletics Championships (2008)
  4. Thể loại:Nations at the 2008–2009 World Athletics Championships (2008–2009) (tried; not displayed)2
  5. Thể loại:Nations at the 2008–09 World Athletics Championships (2008–09) (tried; not displayed)4
  6. Thể loại:Nations at the 2009 World Athletics Championships → Thể loại:Nations at the 2009 World Championships in Athletics (2009)
  7. Thể loại:Nations at the 2011 World Athletics Championships → Thể loại:Nations at the 2011 World Championships in Athletics (2011)
  8. Thể loại:Nations at the 2015 World Athletics Championships → Thể loại:Nations at the 2015 World Championships in Athletics (2015)
  9. Thể loại:Nations at the 2017 World Athletics Championships → Thể loại:Nations at the 2017 World Championships in Athletics (2017)
  10. Thể loại:Nations at the 2019 World Athletics Championships (2019)
  11. Thể loại:Nations at the 2020 World Athletics Championships (2020)
  12. Thể loại:Nations at the 2020–2021 World Athletics Championships (2020–2021) (tried; not displayed)2
  13. Thể loại:Nations at the 2020–21 World Athletics Championships (2020–21) (tried; not displayed)4
  14. Thể loại:Nations at the 2021 World Athletics Championships (2021)
  15. Thể loại:Nations at the 2021–2022 World Athletics Championships (2021–2022) (tried; not displayed)2
  16. Thể loại:Nations at the 2021–22 World Athletics Championships (2021–22) (tried; not displayed)4
  • All possible element types are shown above (blue, red/grey, hidden, and redirect), and would otherwise display as:
  • 2006
  • 2007
  • 2008
  • 2009
  • 2011
  • 2013
  • 2015
  • 2017
  • 2019
  • 2020
  • 2021

Thể loại theo dõi

Purge this page to update the totals

If the template encounters an issue, it displays an error message and/or places the category into one or more of the following tracking categories:

Cần bảo trì

  • Thể loại:Category series navigation tạo navbox không thành công (0)
  • Thể loại:Category series navigation có lỗi đổi hướng (0)
  • Thể loại:Category series navigation có khoảng viết tắt (CNBS) (0)
  • Thể loại:Category series navigation có khoảng là đổi hướng (CNBS) (0)
  • Thể loại:Category series navigation có khoảng kết thúc (trắng, CNBS) (0)
  • Thể loại:Category series navigation có khoảng không sử dụng en dash (0)
  • Thể loại:Category series navigation trong không gian tên chính (0)

Có thể cần bảo trì

  • Thể loại:Category series navigation cô lập (0)
  • Thể loại:Category series navigation có khoảng cách thời gian mặc định (0)
  • Thể loại:Category series navigation sử dụng tham số cat (0)
  • Thể loại:Category series navigation sử dụng tham số testcase (0)
  • Thể loại:Category series navigation sử dụng tham số không rõ (0)

Có thể cần bảo trì module

  • Thể loại:Category series navigation có năm đã đổi hướng (khác) (0)
  • Thể loại:Category series navigation có khoảng là đổi hướng (khác) (0)

Chỉ để theo dõi

  • Thể loại:Category series navigation có khoảng là đổi hướng (thay đổi gốc) (0)
  • Thể loại:Category series navigation có khoảng là đổi hướng (thay đổi var) (0)
  • Thể loại:Category series navigation có khoảng là đổi hướng (kết thúc) (0)
  • Thể loại:Category series navigation có khoảng với chu kỳ (0)
  • Thể loại:Category series navigation có khoảng bất thường (0)
  • Thể loại:Category series navigation có khoảng bất thường, độ dài 0 (0)
  • Thể loại:Category series navigation có khoảng kết thúc (hiện tại) (0)
  • Thể loại:Category series navigation về mùa truyền hình đã đổi hướng (0)
  • Thể loại:Category series navigation có thập niên đã đổi hướng (0)
  • Thể loại:Category series navigation có năm đã đổi hướng (thay đổi gốc) (0)
  • Thể loại:Category series navigation có năm đã đổi hướng (thay đổi var) (0)
  • Thể loại:Category series navigation có số La Mã đã đổi hướng (0)
  • Thể loại:Category series navigation có số thứ tự đã đổi hướng (0)
  • Thể loại:Category series navigation có từ thứ tự đã đổi hướng (0)
  • Thể loại:Category series navigation sử dụng tham số skip-gaps (0)
  • Thể loại:Category series navigation năm và khoảng (0)
  • Thể loại:Category series navigation năm và thập niên (0)
  • Thể loại:Category series navigation thập niên và thế kỷ (0)

Xem thêm

  • {{Irregular category series navigation}}—for use on categories
  • {{Irregular series navigation}}—for use outside categories
  • {{R from category navigation}}
  • {{Category TOC custom}}
Tài liệu bên trên được truyền tải từ Bản mẫu:Category series navigation/doc. (sửa | lịch sử)
Biên tập viên sửa đổi có thể thử nghiệm trong các trang chỗ thử (sửa | khác) và trường hợp kiểm thử (tạo) của bản mẫu này.
Xin hãy bổ sung các thể loại vào trang con /doc. Các trang con của bản mẫu này.
Lấy từ “https://wikibeta.org/index.php?title=Bản_mẫu:Category_series_navigation/sandbox&oldid=7800906”
Sửa đổi lần cuối lúc 15:42 vào ngày 1 tháng 1 năm 2025

Ngôn ngữ

    Trang này không có sẵn trong ngôn ngữ khác.

    Wikibeta, Bách khoa tri thức mở
    • Creative Commons Ghi công–Chia sẻ tương tự
    • Powered by MediaWiki
    • Trang này được sửa đổi lần cuối vào ngày 1 tháng 1 năm 2025, 15:42.
    • Nếu không có ghi chú khác, nội dung này được cấp phép Creative Commons Ghi công–Chia sẻ tương tự.
    • Chính sách quyền riêng tư
    • Giới thiệu Wikipedia
    • Lời phủ nhận
    • Phiên bản máy tính