Template:Navseasoncats with decades below year

Documentation icon Template documentation[view] [edit] [history] [purge]

This is a helper template for building navigation boxes in by-year chronology templates.

It uses the {{Navseasoncats}}, and adds a row below of links to decades

This template uses intricate syntax, so it should not be deployed directly on categories. It should be used only in category header templates, such as {{Year in country category}}

Usage

This template relies on the category title already having been parsed and split. These split components are then used to build the navbox.

{{Navseasoncats with decades below year|prefix|year|suffix}}

  • prefix = the text before the year
  • year = the year
  • suffix = the text before the year

Note that spaces must be reproduced exactly as per the page title. The template will not add or remove any spaces.

Examples

{{Navseasoncats with decades below year||1857| in New York (state)}}
  • 1852
  • 1853
  • 1854
  • 1855
  • 1856
  • 1857
  • 1858
  • 1859
  • 1860
  • 1861
  • 1862
{{Navseasoncats with decades below year|Organizations established in |1903|}}
  • 1898
  • 1899
  • 1900
  • 1901
  • 1902
  • 1903
  • 1904
  • 1905
  • 1906
  • 1907
  • 1908

Example errors

{{Navseasoncats with decades below year||1968|in Northern Ireland}}
  • 1963
  • 1964
  • 1965
  • 1966
  • 1967
  • 1968
  • 1969
  • 1970
  • 1971
  • 1972
  • 1973

This example breaks because there should be a space before the word "in".

Here it is done properly

{{Navseasoncats with decades below year||1968| in Northern Ireland}}
  • 1963
  • 1964
  • 1965
  • 1966
  • 1967
  • 1968
  • 1969
  • 1970
  • 1971
  • 1972
  • 1973

See also