Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Category series navigation/doc
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}} {{High-use}} {{Lua|Module:Category series navigation|Module:List|Module:ConvertNumeric|Module:Roman|Module:Check for unknown parameters|Module:Template redirect regex}} {{Lua sidebar}} ==About== {{tl|Category series navigation}} is intended to be a minimal-input, near-universal template for automatically navigating ''most'' numerically adjacent categories. {{Clear}} {| class="wikitable" |+ Recognized category types ! style="background: #CCCCCC;" | Type ! style="background: #CCCCCC; width: 25%;" | Example category ! style="background: #CCCCCC;" | BC(E)? ! style="background: #CCCCCC;" | Example output |- | Season || {{c|2001β02 FA Cup}} || No || {{Category series navigation|testcase=2001β02 FA Cup}} |- | TV season || {{c|Futurama season 1 episodes}} || β || {{Category series navigation|testcase=Futurama season 1 episodes}} |- | Office term (regular) || {{c|MEPs 2004β2009}} || No || {{Category series navigation|testcase=MEPs 2004β2009}} |- | Office term (irregular) || {{c|Wales AMs 2003β2007}} || No || {{Category series navigation|testcase=Wales AMs 2003β2007}} |- | Numerical range || {{c|Taxonbars with 30β34 taxon IDs}} || β || <!--{{Category series navigation|testcase=Taxonbars with 20β24 taxon IDs}}'s EPFC = 129--> <templatestyles src="Module:Category series navigation/styles.css"></templatestyles><div class="categorySeriesNavigation" role="navigation" aria-label="Range"> <div class="toccolours categorySeriesNavigation-range"> <templatestyles src="Hlist/styles.css"></templatestyles><div class="hlist"><ul><li><span class="categorySeriesNavigation-item-inactive">15β19</span></li><li>[[:Category:Taxonbars with 20β24 taxon IDs|20β24]]</li><li>[[:Category:Taxonbars with 25β29 taxon IDs|25β29]]</li><li><b>30β34</b></li><li>[[:Category:Taxonbars with 35β39 taxon IDs|35β39]]</li><li>[[:Category:Taxonbars with 40β44 taxon IDs|40β44]]</li><li>[[:Category:Taxonbars with 45+ taxon IDs|45β49]]</li></ul></div> </div>[[Category:Category series navigation range redirected (base change)]][[Category:Category series navigation range gaps]][[Category:Category series navigation range irregular]] </div> |- | Decade || {{c|1990s in Scotland}} || BC || {{Category series navigation|testcase=1990s in Scotland}} |- | Year || {{c|1999 in Scotland}} || BC(E) || {{Category series navigation|testcase=1999 in Scotland}} |- | Year (auto-condensed) || {{c|Candidates in the 2000 United States presidential election|Candidates in the 2000 US presidential election}} || β || {{Category series navigation|testcase=Candidates in the 2000 United States presidential election}} |- | Year ({{para|skip-gaps|yes}}) || {{c|Amusement parks opened in 1877|skip-gaps=yes}} || β || {{Category series navigation|testcase=Amusement parks opened in 1877|skip-gaps=yes}} |- | Ordinal (temporal) || {{c|2nd-century rabbis}} || BC(E) || {{Category series navigation|testcase=2nd-century rabbis}} |- | Ordinal (numeric) || {{c|9th Lok Sabha}} || β || {{Category series navigation|testcase=9th Lok Sabha}} |- | Ordinal (word) || {{c|First Dynasty of Egypt}} || β || {{Category series navigation|testcase=First Dynasty of Egypt}} |- | Roman numeral || {{c|Deputies of Legislature X of the Kingdom of Italy}} || β || {{Category series navigation|testcase=Deputies of Legislature X of the Kingdom of Italy}} |- |colspan="4" style="background:#CCCCCC"| |- | Mixed decade || {{c|1760s in the Province of Quebec (1763β1791)}} || β || {{Category series navigation|testcase=1760s in the Province of Quebec (1763β1791)}} |- | Mixed year || {{c|1778 establishments in the Province of Quebec (1763β1791)}} || β || {{Category series navigation|testcase=1778 establishments in the Province of Quebec (1763β1791)}} |} ===Searching behavior=== Most multi-year seasons/office terms/numerical ranges are acceptable, as long as the season duration/term length/range size is <= {{Category series navigation|show=term-limit}}, ''and'' the gap between seasons is <= {{Category series navigation|show=hgap-limit}}. For series exceeding either of these criteria, see/use {{tl|Irregular category series navigation}}. The length of each season is automatically determined from the originating category name, up to and including {{Category series navigation|show=term-limit}} years. [[MOS:DATERANGE]] compliance is preferred, but some deviation is allowed and [[:Category:Category series navigation range abbreviated (MOS)|tracked]] for regular series with seasons > 1 year long. {{tl|Category redirect}}s are followed, and tracked for either [[:Category:Category series navigation range redirected (MOS)|MOS contravention]] (to be corrected) or for [[:Category:Category series navigation range redirected (base change)|navigational aid]] (no error). The gap size between successive seasons is ''also'' automatically determined, up to and including {{Category series navigation|show=hgap-limit}} years, and defaults to 0 (e.g. {{nowrap|1995β96}} β {{nowrap|1996β97}}). Automatically condensed years are supported for ''presidential'' categories only (but can be easily expanded as needed), for gaps up to and including {{Category series navigation|show=ygap-limit}} years, and defaults to 1. To skip gaps of up to {{Category series navigation|show=skip-gaps}} years in any ''year'' categories, use {{para|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 {{tl|Winter Olympics by year category navigation}}, etc., instead. * Automatically condensed ''years'' ''are'' supported for ''US presidential'' categories only, due to their consistency; use {{para|skip-gaps|yes}} as desired on other ''year'' categories. * {{para|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 {{tl|R from category navigation}} (1 [[Special:Permalink/1040103249|backward]] & 1 [[Special:Permalink/1040102736|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. ''{{c|Companies that filed for Chapter 11 bankruptcy in 2020|Chapter 11 bankruptcies}}'', a non-breaking space may force the template to work. See [[Special:Diff/948223374|this fix]], where {{tl|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<sup>β </sup> between successive categories, use {{tl|Preceding category}}, {{tl|Category pair}}, {{tl|Succeeding category}}, as needed, in addition to {{tl|Category series navigation}} on both sides, or in the middle, of the gap. Even if {{tl|Category series navigation}} is [[:Category:Category series navigation isolated|isolated]], it has the benefit of confirming the absence of nearby categories to the reader or maintainer.<br/><sup>β </sup>''Permanent gaps'', where there is a confirmed permanent absence of data, and not just a temporary, yet to be filled, gap on Wikipedia. * {{para|skip-gaps}}: create {{tl|R from category navigation}} from an appropriate year to the hyphenated category that was not found. ===Related CfDs=== * [[Wikipedia:Categories for discussion/Log/2019 June 8#Category:Northern Ireland MLAs 2016β17]] * [[Wikipedia:Categories for discussion/Log/2019 May 29#Category:MEPs 1952β58]] * [[Wikipedia:Categories for discussion/Log/2019 April 19#Category:Aircraft piston engines 1900β1909]] ==Usage== ;Typical usage * <syntaxhighlight inline lang="wikitext">{{Category series navigation}}</syntaxhighlight> ;Specify a minimum and/or maximum year to display * <syntaxhighlight inline lang="wikitext">{{Category series navigation|min=-100}}</syntaxhighlight> * <syntaxhighlight inline lang="wikitext">{{Category series navigation|min=100 BC}}</syntaxhighlight> * <syntaxhighlight inline lang="wikitext">{{Category series navigation|min=1753|max=1810}}</syntaxhighlight> * <syntaxhighlight inline lang="wikitext">{{Category series navigation|max=2030}}</syntaxhighlight> ;To skip gaps in year categories * <syntaxhighlight inline lang="wikitext">{{Category series navigation|skip-gaps=yes}}</syntaxhighlight> ;To ''not'' automatically follow {{tl|Category redirect}}s * <syntaxhighlight inline lang="wikitext">{{Category series navigation|follow-redirects=no}}</syntaxhighlight> ;Exceptional cases * <syntaxhighlight inline lang="wikitext">{{Category series navigation|cat=2010s albums}}</syntaxhighlight> — to behave as if placed on {{para|cat}}; consider using {{tl|Category pair}} instead of {{para|cat}} ==Testing & debugging== To test the output of the template on a particular category name, use the {{para|testcase}} parameter, and {{para|testcasegap}} if necessary: * <syntaxhighlight lang="wikitext" inline>{{Category series navigation|testcase=1770s in the Province of Quebec (1763β1791)}}</syntaxhighlight> β {{Category series navigation | testcase=1770s in the Province of Quebec (1763β1791)}} <br /> To see all links produced and/or tested, and what effect each has on their display, use {{para|list-all-links|yes}}: * <syntaxhighlight lang="wikitext" inline>{{Category series navigation|testcase=Nations at the 2013 World Athletics Championships|min=2008|skip-gaps=yes|list-all-links=yes}}</syntaxhighlight> β # [[:Category:Nations at the 2006 World Athletics Championships]] (<span style="color:#888">2006</span>) (<span style="visibility:hidden">2006</span>) # [[:Category:Nations at the 2007 World Athletics Championships]] (<span style="color:#888">2007</span>) (<span style="visibility:hidden">2007</span>) # [[:Category:Nations at the 2008 World Athletics Championships]] (<span style="color:#888">2008</span>) # [[:Category:Nations at the 2008β2009 World Athletics Championships]] (<span style="color:#888">2008β2009</span>) (tried; not displayed)<sup>2</sup> # [[:Category:Nations at the 2008β09 World Athletics Championships]] (<span style="color:#888">2008β09</span>) (tried; not displayed)<sup>4</sup> # [[:Category:Nations at the 2009 World Athletics Championships]] β [[:Category:Nations at the 2009 World Championships in Athletics]] ([[:Category:Nations at the 2009 World Championships in Athletics|2009]]) # [[:Category:Nations at the 2011 World Athletics Championships]] β [[:Category:Nations at the 2011 World Championships in Athletics]] ([[:Category:Nations at the 2011 World Championships in Athletics|2011]]) # [[:Category:Nations at the 2015 World Athletics Championships]] β [[:Category:Nations at the 2015 World Championships in Athletics]] ([[:Category:Nations at the 2015 World Championships in Athletics|2015]]) # [[:Category:Nations at the 2017 World Athletics Championships]] β [[:Category:Nations at the 2017 World Championships in Athletics]] ([[:Category:Nations at the 2017 World Championships in Athletics|2017]]) # [[:Category:Nations at the 2019 World Athletics Championships]] ([[:Category:Nations at the 2019 World Athletics Championships|2019]]) # [[:Category:Nations at the 2020 World Athletics Championships]] (<span style="color:#888">2020</span>) # [[:Category:Nations at the 2020β2021 World Athletics Championships]] (<span style="color:#888">2020β2021</span>) (tried; not displayed)<sup>2</sup> # [[:Category:Nations at the 2020β21 World Athletics Championships]] (<span style="color:#888">2020β21</span>) (tried; not displayed)<sup>4</sup> # [[:Category:Nations at the 2021 World Athletics Championships]] (<span style="color:#888">2021</span>) # [[:Category:Nations at the 2021β2022 World Athletics Championships]] (<span style="color:#888">2021β2022</span>) (tried; not displayed)<sup>2</sup> # [[:Category:Nations at the 2021β22 World Athletics Championships]] (<span style="color:#888">2021β22</span>) (tried; not displayed)<sup>4</sup> * All possible element types are shown above (blue, red/grey, hidden, and redirect), and would otherwise display as: {| class="toccolours hlist" style="text-align: center; margin: auto;" | *<span style="visibility:hidden">2006</span> *<span style="visibility:hidden">2007</span> *<span style="color:#888">2008</span> *[[:Category:Nations at the 2009 World Championships in Athletics|2009]] *[[:Category:Nations at the 2011 World Championships in Athletics|2011]] *'''2013''' *[[:Category:Nations at the 2015 World Championships in Athletics|2015]] *[[:Category:Nations at the 2017 World Championships in Athletics|2017]] *[[:Category:Nations at the 2019 World Athletics Championships|2019]] *<span style="color:#888">2020</span> *<span style="color:#888">2021</span> |} <br /> If {{para|list-all-links|yes}} is used on a hyphenated category, then all tested categories will also be shown: * <syntaxhighlight lang="wikitext" inline>{{Category series navigation|cat=2018β19 NHL season|list-all-links=yes}}</syntaxhighlight> β {{Collapse top}} <templatestyles src="Module:Category series navigation/styles.css"></templatestyles><div class="categorySeriesNavigation" role="navigation" aria-label="Range"> <span class="error mw-ext-cite-error"><b>Error!</b> The <b><code>|list-all-links=yes</code></b> parameter/utility should not be saved in category space, only previewed.</span>***Category series navigation failed to generate navbox*** # [[:Category:2018 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2018 NHL season</span>) # [[:Category:2017 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2017 NHL season</span>) # [[:Category:2016 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2016 NHL season</span>) # [[:Category:2015 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2015 NHL season</span>) # [[:Category:2019 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2019 NHL season</span>) # [[:Category:2020 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2020 NHL season</span>) # [[:Category:2021 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2021 NHL season</span>) # [[:Category:2022 NHL season]] (<span class="categorySeriesNavigation-item-inactive">2022 NHL season</span>) # [[:Category:2014β15 NHL season]] ([[:Category:2014β15 NHL season|2014β15]]) # [[:Category:2015β16 NHL season]] ([[:Category:2015β16 NHL season|2015β16]]) # [[:Category:2016β17 NHL season]] ([[:Category:2016β17 NHL season|2016β17]]) # [[:Category:2017β18 NHL season]] ([[:Category:2017β18 NHL season|2017β18]]) # [[:Category:2019β20 NHL season]] ([[:Category:2019β20 NHL season|2019β20]]) # [[:Category:2020β21 NHL season]] ([[:Category:2020β21 NHL season|2020β21]]) # [[:Category:2021β22 NHL season]] ([[:Category:2021β22 NHL season|2021β22]]) # [[:Category:2022β23 NHL season]] ([[:Category:2022β23 NHL season|2022β23]]) backward search: # [<span style="color:green">j, g, k = -4, 0, 0</span>] 2018 NHL season # [<span style="color:green">j, g, k = -4, 0, 1</span>] 2017β2018 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = -4, 0, 1</span>] 2017β18 NHL season</span> (found) # [<span style="color:green">j, g, k = -3, 0, 0</span>] 2017 NHL season # [<span style="color:green">j, g, k = -3, 0, 1</span>] 2016β2017 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = -3, 0, 1</span>] 2016β17 NHL season</span> (found) # [<span style="color:green">j, g, k = -2, 0, 0</span>] 2016 NHL season # [<span style="color:green">j, g, k = -2, 0, 1</span>] 2015β2016 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = -2, 0, 1</span>] 2015β16 NHL season</span> (found) # [<span style="color:green">j, g, k = -1, 0, 0</span>] 2015 NHL season # [<span style="color:green">j, g, k = -1, 0, 1</span>] 2014β2015 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = -1, 0, 1</span>] 2014β15 NHL season</span> (found) forward search: # [<span style="color:green">j, g, k = 1, 0, -2</span>] 2019 NHL season # [<span style="color:green">j, g, k = 1, 0, -1</span>] 2019βpresent NHL season # [<span style="color:green">j, g, k = 1, 0, 0</span>] 2019β NHL season # [<span style="color:green">j, g, k = 1, 0, 1</span>] 2019β2020 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = 1, 0, 1</span>] 2019β20 NHL season</span> (found) # [<span style="color:green">j, g, k = 2, 0, -2</span>] 2020 NHL season # [<span style="color:green">j, g, k = 2, 0, -1</span>] 2020βpresent NHL season # [<span style="color:green">j, g, k = 2, 0, 0</span>] 2020β NHL season # [<span style="color:green">j, g, k = 2, 0, 1</span>] 2020β2021 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = 2, 0, 1</span>] 2020β21 NHL season</span> (found) # [<span style="color:green">j, g, k = 3, 0, -2</span>] 2021 NHL season # [<span style="color:green">j, g, k = 3, 0, -1</span>] 2021βpresent NHL season # [<span style="color:green">j, g, k = 3, 0, 0</span>] 2021β NHL season # [<span style="color:green">j, g, k = 3, 0, 1</span>] 2021β2022 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = 3, 0, 1</span>] 2021β22 NHL season</span> (found) # [<span style="color:green">j, g, k = 4, 0, -2</span>] 2022 NHL season # [<span style="color:green">j, g, k = 4, 0, -1</span>] 2022βpresent NHL season # [<span style="color:green">j, g, k = 4, 0, 0</span>] 2022β NHL season # [<span style="color:green">j, g, k = 4, 0, 1</span>] 2022β2023 NHL season # <span style="color:blue">[<span style="color:green">j, g, k = 4, 0, 1</span>] 2022β23 NHL season</span> (found) </div> {{Collapse bottom}} ==Tracking categories== :<small>''{{Purge|Purge this page to update the totals}}''</small> 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: {{Columns-start}} ===Maintenance required=== * {{Category link with count|Category series navigation failed to generate navbox}} * {{Category link with count|Category series navigation redirection error}} * {{Category link with count|Category series navigation range abbreviated (MOS)}} * {{Category link with count|Category series navigation range redirected (MOS)}} * {{Category link with count|Category series navigation range ends (blank, MOS)}} * {{Category link with count|Category series navigation range not using en dash}} * {{Category link with count|Category series navigation in mainspace}} ===Maintenance possible=== * {{Category link with count|Category series navigation isolated}} * {{Category link with count|Category series navigation default season gap size}} * {{Category link with count|Category series navigation using cat parameter}} * {{Category link with count|Category series navigation using testcase parameter}} * {{Category link with count|Category series navigation using unknown parameter}} ===Module maintenance possible=== * {{Category link with count|Category series navigation year redirected (other)}} * {{Category link with count|Category series navigation range redirected (other)}} {{Column}} ===Tracking only=== * {{Category link with count|Category series navigation range redirected (base change)}} * {{Category link with count|Category series navigation range redirected (var change)}} * {{Category link with count|Category series navigation range redirected (end)}} * {{Category link with count|Category series navigation range gaps}} * {{Category link with count|Category series navigation range irregular}} * {{Category link with count|Category series navigation range irregular, 0-length}} * {{Category link with count|Category series navigation range ends (present)}} * {{Category link with count|Category series navigation TV season redirected}} * {{Category link with count|Category series navigation decade redirected}} * {{Category link with count|Category series navigation year redirected (base change)}} * {{Category link with count|Category series navigation year redirected (var change)}} * {{Category link with count|Category series navigation roman numeral redirected}} * {{Category link with count|Category series navigation nordinal redirected}} * {{Category link with count|Category series navigation wordinal redirected}} * {{Category link with count|Category series navigation using skip-gaps parameter}} * {{Category link with count|Category series navigation year and range}} * {{Category link with count|Category series navigation year and decade}} * {{Category link with count|Category series navigation decade and century}} {{Columns-end}} ==See also== * {{tl|Irregular category series navigation}}—for use on categories * {{tl|Irregular series navigation}}—for use outside categories * {{tl|R from category navigation}} * {{tl|Category TOC custom}} <includeonly>{{sandbox other|| [[Category:Chronology category templates]] }}</includeonly>
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:C
(
edit
)
Template:Category link with count
(
edit
)
Template:Category link without namespace
(
edit
)
Template:Category series navigation
(
edit
)
Template:Clear
(
edit
)
Template:Collapse bottom
(
edit
)
Template:Collapse top
(
edit
)
Template:Collapse top/styles.css
(
edit
)
Template:Column
(
edit
)
Template:Columns-end
(
edit
)
Template:Columns-start
(
edit
)
Template:Documentation subpage
(
edit
)
Template:High-use
(
edit
)
Template:Hlist/styles.css
(
edit
)
Template:Ifsubst
(
edit
)
Template:Lua
(
edit
)
Template:Lua sidebar
(
edit
)
Template:Main other
(
edit
)
Template:Mbox
(
edit
)
Template:Nowrap
(
edit
)
Template:Para
(
edit
)
Template:Purge
(
edit
)
Template:Sidebar
(
edit
)
Template:Strongbad
(
edit
)
Template:Template link
(
edit
)
Template:Tl
(
edit
)
Module:Category series navigation/styles.css
(
edit
)
Module:Lua banner
(
edit
)
Module:Message box
(
edit
)
Module:String
(
edit
)