Difference between revisions of "Template:DecadeCategoryNav"
Jump to navigation
Jump to search
imported>BrownHairedGirl (Listed for merging with Template:Navseasoncats; see Wikipedia:Templates for discussion/Log/2019 August 23#Template:DecadeCategoryNav. (TW)) |
imported>JJMC89 (Per Wikipedia:Templates for discussion/Log/2019 August 23#Template:DecadeCategoryNav, added {{being deleted}} (XFDcloser)) |
||
| Line 1: | Line 1: | ||
| − | {{ | + | <noinclude>{{Being deleted|2019 August 23|Template:DecadeCategoryNav|merge=Template:Navseasoncats}}</noinclude><includeonly>{{portal|{{#ifexist:Portal:{{{topic}}}|{{ucfirst:{{{topic}}}}}}} |History|{{#ifexpr:{{{decade|}}}>1910|{{#ifexpr:{{{decade|}}}<2010|{{#ifexist:Portal:{{{decade|}}}s|{{{decade|}}}s }}}}}}}} |
| − | <includeonly>{{portal|{{#ifexist:Portal:{{{topic}}}|{{ucfirst:{{{topic}}}}}}} |History|{{#ifexpr:{{{decade|}}}>1910|{{#ifexpr:{{{decade|}}}<2010|{{#ifexist:Portal:{{{decade|}}}s|{{{decade|}}}s }}}}}}}} | ||
{| class="toc" | {| class="toc" | ||
|- | |- | ||
Revision as of 01:01, 1 September 2019
| This template is currently being merged with Template:Navseasoncats. This template is being merged with another template, according to the specific instructions at Wikipedia:Templates for discussion/Holding cell, after which it will be redirected or deleted. The decision to merge this template was made following [[Wikipedia:Templates for discussion/Log/2019 August 23#Template:DecadeCategoryNav|this discussion initiated on Template:YMD to ISO]] at Templates for discussion. Note: Please review this template's instructions at Wikipedia:Templates for discussion/Holding cell before proceeding with any type of merging. |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
{{DecadeCategoryNav|decade=|topic=}} Parameters:
- decade - The first year of the decade to form the "center" of the navigation (e.g. 1980)
- topic - (optional) The topic for the "DECADE in TOPIC" line (e.g. rail transport)
Example: {{DecadeCategoryNav|decade=1980|topic=rail transport}} results in:
| Decades in rail transport: | 1950s • 1960s • 1970s • 1980s • 1990s • 2000s • 2010s |
| Decades: | 1950s • 1960s • 1970s • 1980s • 1990s • 2000s • 2010s |
Error checking
This template should be capable of operating without parameters, by deriving them from the page title. Tracking categories have been set up to test whether there are any valid exceptions:
- Category:DecadeCategoryNav where topic param ≠ title topic (population: 0)
- Category:DecadeCategoryNav where decade param ≠ title decade (population: 0)
Valid use are tracked at:
- Category:DecadeCategoryNav where topic param = title topic (population: 0)
- Category:DecadeCategoryNav where decade param = title decade (population: 0)
Script error: No such module "Purge".
Valid exceptions include cases where the centre decade is intentionally different from the title decade, in order to link both backwards and forwards where there are currently long gaps between decade categories.
| The above documentation is transcluded from Template:DecadeCategoryNav/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |