Jump to content

Template:Category series navigation/doc: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Testing: +|testcase=
m Update; rem stale 2 year old notice, currently stable and in high-use (45k)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
{{High-use|40917}}
{{High-use|44686}}
{{Improve documentation}}
{{Improve documentation}}
{{Lua|Module:Navseasoncats/navyear}}
{{Lua|Module:Navseasoncats/navyear}}


==About==
==About==
<nowiki>***UNDER DEVELOPMENT***</nowiki> Following a major upgrade there may be some glitches in this template. Please let [[User talk:Le Deluge|User:Le Deluge]] know if you find any pages with problems. This template is for categories only - originally intended for football seasons etc which span two years but the new version is much more flexible. Automatically creates a navbox linking to 3 seasons either side assuming that PAGENAME is of the form \"(foo) 2015(-16) (bar)\". Foo, bar and -16 are all now optional and it now works with decades so it can cope with eg {{cl|1999 in Scotland}}, {{cl|Austrian football clubs 1999–2000 season}} and {{cl|Novels set in the 1990s}}. It only works from 1000AD onwards, and it can only handle nnnn-nn in consecutive years, so 2000-01 works but not 2000-05 which you get in eg parliament categories.
This template is for categories only - originally intended for football seasons etc which span two years but the new version is much more flexible. Automatically creates a navbox linking to 3 seasons either side assuming that PAGENAME is of the form \"(foo) 2015(-16) (bar)\". Foo, bar and -16 are all now optional and it now works with decades so it can cope with eg {{cl|1999 in Scotland}}, {{cl|Austrian football clubs 1999–2000 season}} and {{cl|Novels set in the 1990s}}. It only works from 1000AD onwards, and it can only handle nnnn-nn in consecutive years, so 2000-01 works but not 2000-05 which you get in eg parliament categories.


==Usage==
==Usage==

Revision as of 12:30, 28 February 2019

About

This template is for categories only - originally intended for football seasons etc which span two years but the new version is much more flexible. Automatically creates a navbox linking to 3 seasons either side assuming that PAGENAME is of the form \"(foo) 2015(-16) (bar)\". Foo, bar and -16 are all now optional and it now works with decades so it can cope with eg Category:1999 in Scotland, Category:Austrian football clubs 1999–2000 season and Category:Novels set in the 1990s. It only works from 1000AD onwards, and it can only handle nnnn-nn in consecutive years, so 2000-01 works but not 2000-05 which you get in eg parliament categories.

Usage

Typical usage
Specify a minimum year to display
Specify a minimum and maximum year to display
Specify a maximum year to display

Testing

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

Errors

If the template fails to generate a navbox, it displays an error message and places the page in a tracking category:

See also