Mô đun:Navseasoncats/tài liệu
![]() | Đây là một trang con tài liệu sử dụng bản mẫu dành cho Mô đun:Navseasoncats. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang mô đun gốc. |
![]() | Bản mẫu này sử dụng Lua: |
Liên kết liên quan |
---|
![]() | Mô đun Lua này được sử dụng ở khoảng 50.000 trang. Để tránh gây lỗi trên quy mô lớn, tất cả thay đổi cần được thử nghiệm ở trang con /sandbox, /testcases của mô đun, hoặc ở chỗ thử mô đun. Các thay đổi đã được thử nghiệm có thể thêm vào mô đun bằng một sửa đổi duy nhất. Xin hãy thảo luận các thay đổi tại trang thảo luận trước khi áp dụng sửa đổi. |
Thông tin
sửa{{Navseasoncats}} is intended to be a minimal-input, near-universal template for navigating most sequential categories.
Kiểu | Thể loại ví dụ | BC(E)? | Đầu ra ví dụ | |
---|---|---|---|---|
Mùa | 2001–02 FA Cup | No |
| |
Mùa chương trình truyền hình | Futurama (season 1) episodes | – | Error! Function find_var can't find the variable text in category "Futurama (season 1) episodes".***Navseasoncats failed to generate navbox*** | |
Nhiệm kỳ cơ quan (regular) | MEPs 2004–2009 | No |
| |
Nhiệm kỳ cơ quan (irregular) | Wales AMs 2003–2007 | No |
| |
Khoảng số | Taxonbars with 30–34 taxon IDs | – |
| |
Thập niên | Việt Nam thập niên 1990 | BC |
| |
Năm | Việt Nam năm 1999 | BC(E) |
| |
Năm (auto-condensed) | Candidates in the 2000 United States presidential election | – |
| |
Năm (|skip-gaps=yes ) |
Amusement parks opened in 1880 | – |
| |
Số thứ tự (temporal) | 2nd-century rabbis | BC(E) | Error! Function find_var can't find the variable text in category "2nd-century rabbis".***Navseasoncats failed to generate navbox*** | |
Số thứ tự (bằng số) | 9th Lok Sabha | – | Error! Function find_var can't find the variable text in category "9th Lok Sabha".***Navseasoncats failed to generate navbox*** | |
Số thứ tự (bằng chữ) | First Dynasty of Egypt | – | Error! Function find_var can't find the variable text in category "First Dynasty of Egypt".***Navseasoncats failed to generate navbox*** | |
Số La Mã | Deputies of Legislature X of the Kingdom of Italy | – |
| |
Nhiều thập kỷ | 1760s in the Province of Quebec (1763–1791) | – |
| |
Nhiều năm | 1778 establishments in the Province of Quebec (1763–1791) | – |
|
Hành vi tìm kiếm
sửaMost 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 navseasoncats}}.
The length of each season is automatically determined from the originating category name, up to and including 10 years. MOS: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 5 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 25 years in any year categories, use |skip-gaps=yes
.
Giới hạn
sửa- Numerical limitations & 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 presidential categories only, due to their consistency; use
|skip-gaps=yes
as desired elsewhere.
- Work-arounds
- Base-name changes: create at least 2 logically numbered {{R from category navigation}} (1 forward & 1 backward), to join both related series.
- Unaccounted-for name+number conventions: where a fixed number is part of the prefix 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 has been accounted for and is no longer required in this example.)
- General: for large, permanent gaps† between successive categories, use {{Succeeding category}}, {{Preceding category}}, {{Category pair}}, as needed, in addition to {{Navseasoncats}} on both sides, or in the middle, of the gap. Even if {{Navseasoncats}} is isolated, it has the benefit of confirming the absence of nearby categories to the reader or maintainer.
†Permanent gaps, where there is confirmed to be an absence of data, and not just a current, yet to be filled, gap on Wikipedia.
Các thảo luận liên quan
sửaCách sử dụng
sửa- Typical usage
{{Navseasoncats}}
- Specify a minimum and/or maximum year to display
{{Navseasoncats|min=-100}}
{{Navseasoncats|min=100 BC}}
{{Navseasoncats|min=1753|max=1810}}
{{Navseasoncats|max=2025}}
- To skip gaps in year categories
{{Navseasoncats|skip-gaps=yes}}
- To not automatically follow {{Category redirect}}s
{{Navseasoncats|follow-redirects=no}}
- Exceptional cases
{{Navseasoncats|cat=2010s albums}}
— to behave as if placed on|cat=
; consider using {{Category pair}} instead of|cat=
Thử nghiệm và sửa lỗi
sửaTo test the output of the template on a particular category name, use the |testcase=
parameter, and |testcasegap=
if necessary:
{{Navseasoncats |testcase=1770s in the Province of Quebec (1763–1791) |min=1760}}
→
|
{{Navseasoncats |testcase=1770s in the Province of Quebec (1763–1791) |max=1970s}}
→
|
To see all links produced and/or tested, and what effect each has on their display, use |list-all-links=yes
:
{{Navseasoncats |testcase=Nations at the 2013 World Athletics Championships |min=2008 |skip-gaps=yes |list-all-links=yes}}
→
- Category:Nations at the 2008 World Athletics Championships (2008)
- Category:Nations at the 2009 World Athletics Championships (2009)
- Category:Nations at the 2010 World Athletics Championships (2010)
- Category:Nations at the 2011 World Athletics Championships (2011)
- Category:Nations at the 2012 World Athletics Championships (2012)
- Category:Nations at the 2014 World Athletics Championships (2014)
- Category:Nations at the 2015 World Athletics Championships (2015)
- Category:Nations at the 2016 World Athletics Championships (2016)
- Category:Nations at the 2017 World Athletics Championships (2017)
- Category:Nations at the 2018 World Athletics Championships (2018)
- All possible element types are shown above (blue, red/grey, hidden, and redirect), and would otherwise display as:
|
Thể loại theo dõi
sửaIf the template encounters an issue, it displays an error message and/or places the category into one or more of the following tracking categories:
Chắc chắn cần dọn dẹp
sửa- Thể loại:Navseasoncats failed to generate navbox (0)
- Thể loại:Navseasoncats redirection error (0)
- Thể loại:Navseasoncats range abbreviated (MOS) (0)
- Thể loại:Navseasoncats range redirected (MOS) (0)
- Thể loại:Navseasoncats range ends (blank, MOS) (0)
- Thể loại:Navseasoncats range not using en dash (0)
- Thể loại:Navseasoncats in mainspace (0)
Có thể cần dọn dẹp
sửa- Thể loại:Navseasoncats isolated (0)
- Thể loại:Navseasoncats default season gap size (26)
- Thể loại:Navseasoncats using cat parameter (0)
- Thể loại:Navseasoncats using testcase parameter (0)
- Thể loại:Navseasoncats using unknown parameter (0)
Có thể cần dọn dẹp mô đun
sửaChỉ phục vụ theo dõi
sửa- Thể loại:Navseasoncats range redirected (base change) (0)
- Thể loại:Navseasoncats range redirected (var change) (0)
- Thể loại:Navseasoncats range redirected (end) (0)
- Thể loại:Navseasoncats range gaps (0)
- Thể loại:Navseasoncats range irregular (0)
- Thể loại:Navseasoncats range irregular, 0-length (0)
- Thể loại:Navseasoncats range ends (present) (0)
- Thể loại:Navseasoncats TV season redirected (0)
- Thể loại:Navseasoncats decade redirected (0)
- Thể loại:Navseasoncats year redirected (base change) (0)
- Thể loại:Navseasoncats year redirected (var change) (0)
- Thể loại:Navseasoncats roman numeral redirected (0)
- Thể loại:Navseasoncats nordinal redirected (0)
- Thể loại:Navseasoncats wordinal redirected (0)
- Thể loại:Navseasoncats using skip-gaps parameter (0)
- Thể loại:Navseasoncats year and range (0)
- Thể loại:Navseasoncats year and decade (0)
- Thể loại:Navseasoncats decade and century (0)
Xem thêm
sửa