Template:Navseasoncats

Lua error in Module:Category_series_navigation at line 1897: attempt to call local 'eng2ord' (a nil value).

Template documentation[view · edit · history · purge]
This documentation is transcluded from Template:Navseasoncats/doc.
Category:Main message boxesCategory:Lua-based templates

Template:Lua sidebar

About

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

Recognized category types
Type Example category BC(E)? Example output
Season2001–02 FA CupNoTemplate:Category series navigation
TV seasonFuturama season 1 episodesTemplate:Category series navigation
Office term (regular)MEPs 2004–2009NoTemplate:Category series navigation
Office term (irregular)Wales AMs 2003–2007NoTemplate:Category series navigation
Numerical rangeTaxonbars with 30–34 taxon IDs Page Module:Category series navigation/styles.css has no content.
Decade1990s in ScotlandBCTemplate:Category series navigation
Year1999 in ScotlandBC(E)Template:Category series navigation
Year (auto-condensed)Candidates in the 2000 US presidential electionTemplate:Category series navigation
Year (|skip-gaps=yes)Amusement parks opened in 1877Template:Category series navigation
Ordinal (temporal)2nd-century rabbisBC(E)Template:Category series navigation
Ordinal (numeric)9th Lok SabhaTemplate:Category series navigation
Ordinal (word)First Dynasty of EgyptTemplate:Category series navigation
Roman numeralDeputies of Legislature X of the Kingdom of ItalyTemplate:Category series navigation
Mixed decade1760s in the Province of Quebec (1763–1791)Template:Category series navigation
Mixed year1778 establishments in the Province of Quebec (1763–1791)Template:Category series navigation

Searching behavior

Most multi-year seasons/office terms/numerical ranges are acceptable, as long as the season duration/term length/range size is <= Template:Category series navigation, and the gap between seasons is <= Template:Category series navigation. 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 Template:Category series navigation years. 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 Template:Category series navigation years, and defaults to 0 (e.g. 1995–961996–97).

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

Limitations

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

Usage

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=

Testing & debugging

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)}}

Template:Category series navigation
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. Category:Nations at the 2006 World Athletics Championships (2006) (2006)
  2. Category:Nations at the 2007 World Athletics Championships (2007) (2007)
  3. Category:Nations at the 2008 World Athletics Championships (2008)
  4. Category:Nations at the 2008–2009 World Athletics Championships (2008–2009) (tried; not displayed)2
  5. Category:Nations at the 2008–09 World Athletics Championships (2008–09) (tried; not displayed)4
  6. Category:Nations at the 2009 World Athletics ChampionshipsCategory:Nations at the 2009 World Championships in Athletics (2009)
  7. Category:Nations at the 2011 World Athletics ChampionshipsCategory:Nations at the 2011 World Championships in Athletics (2011)
  8. Category:Nations at the 2015 World Athletics ChampionshipsCategory:Nations at the 2015 World Championships in Athletics (2015)
  9. Category:Nations at the 2017 World Athletics ChampionshipsCategory:Nations at the 2017 World Championships in Athletics (2017)
  10. Category:Nations at the 2019 World Athletics Championships (2019)
  11. Category:Nations at the 2020 World Athletics Championships (2020)
  12. Category:Nations at the 2020–2021 World Athletics Championships (2020–2021) (tried; not displayed)2
  13. Category:Nations at the 2020–21 World Athletics Championships (2020–21) (tried; not displayed)4
  14. Category:Nations at the 2021 World Athletics Championships (2021)
  15. Category:Nations at the 2021–2022 World Athletics Championships (2021–2022) (tried; not displayed)2
  16. Category: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:


If |list-all-links=yes is used on a hyphenated category, then all tested categories will also be shown:

  • {{Category series navigation|cat=2018–19 NHL season|list-all-links=yes}}
Extended content
Page Module:Category series navigation/styles.css has no content.

Tracking categories

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:

See also

This template may meet the criteria for speedy deletion.

The given reason is: CSD T2 (unused template)


Appeal: If you disagree with this template's speedy deletion, replace this tag with a regular deletion request.

Note: To speed up the speedy deletion process and help administrators, consider using one of these more specific templates:
  • {{copyvio|reason or source}} for clear copyright violations
  • {{bad name|correct name}} for badly named categories (only when they are empty)
  • {{duplicate|other file}} for files that are exactly the same as other files
  • {{SD|F10}} for personal files and {{SD|G10}} for promotional files
See Commons:Deletion policy for more information.

Category:Other speedy deletions#20250605174309

Category:Category series navigation range gaps Category:Category series navigation range irregular Category:Category series navigation range redirected (base change) Category:Chronology category templates Category:Lua-based templates Category:Main message boxes Category:Noindexed pages Category:Other speedy deletions Category:Pages with TemplateStyles errors Category:Pages with script errors