Template:Category series navigation: Difference between revisions

Source: Wikipedia, the free encyclopedia.
Content deleted Content added
mNo edit summary
Finalise version 2.1 with decades
Line 9: Line 9:
| {{#ifexpr: {{str len|{{Navseasoncats/var season}}}} =4
| {{#ifexpr: {{str len|{{Navseasoncats/var season}}}} =4
|{{Navseasoncats/navyear|{{Navseasoncats/var firsthalf}}|{{str left|{{Navseasoncats/var season}}|4}}|{{Navseasoncats/var lasthalf}}}}
|{{Navseasoncats/navyear|{{Navseasoncats/var firsthalf}}|{{str left|{{Navseasoncats/var season}}|4}}|{{Navseasoncats/var lasthalf}}}}
| {{#ifexpr: ({{str len|{{Navseasoncats/var season}}}} =5) and {{#ifeq: {{str mid|{{Navseasoncats/var season}}|4|2}} | 0s | 1 | 0}} = 1 |{{Navseasoncats/navdecade||1940|in Scotland}}<br>|Failed to generate navbox}}}}}}<br></includeonly>
| {{#ifexpr: ({{str len|{{Navseasoncats/var season}}}} =5) and {{#ifeq: {{str mid|{{Navseasoncats/var season}}|4|2}} | 0s | 1 | 0}} = 1 |{{Navseasoncats/navdecade|{{Navseasoncats/var firsthalf}}|{{str left|{{Navseasoncats/var season}}|4}}|{{Navseasoncats/var lasthalf}}|{{str left|{{CURRENTYEAR}}|3}}0}}<br>|***Navseasoncats failed to generate navbox***}}}}}}<br></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {},
"params": {},
"description": "***UNDER DEVELOPMENT*** 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 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 so it can cope with eg 2016 in Scotland and Austrian football clubs 1999-2000 season.",
"description": "***UNDER DEVELOPMENT*** 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 so it can cope with eg 2016 in Scotland and Austrian football clubs 1999-2000 season. It now also works with decades. It only works from 1000AD onwards.",
"format": "block"
"format": "block"
}
}

Revision as of 03:35, 3 March 2017


***UNDER DEVELOPMENT*** 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 so it can cope with eg 2016 in Scotland and Austrian football clubs 1999-2000 season. It now also works with decades. It only works from 1000AD onwards.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
No parameters specified