Template:DecadeCategoryNav/doc
Jump to navigation
Jump to search
This is a documentation subpage for Template:DecadeCategoryNav. It contains usage information, categories and other content that is not part of the original template page. |
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:
- REDIRECT Template:Navseasoncats
- From a merge: This is a redirect from a page that was merged into another page. This redirect was kept in order to preserve this page's edit history after its content was merged into the target page's content. Please do not remove the tag that generates this text (unless the need to recreate content on this page has been demonstrated) or delete this page.
- For redirects with substantive page histories that did not result from page merges use {{R with history}} instead.
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.