Template:Year nav topic2/doc

From Wikipedia, the free encyclopedia

This is a documentation subpage for Template:Year nav topic2 (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

[edit] Usage

Format:   {{Year nav topic2|year#|subject}}
Format:   {{Year nav topic2|year#|subject|subj2}}
Format:   {{Year nav topic2|year#|subj1|subj2|subj3|subj4}}

Takes multiple parameters: the year# (year 101 or higher), followed by the main subject (such as: music), followed by optional related subjects, separated by vertical bars:

  • The year# becomes the bolded center of the 20-year range for the main subject, and any (optional) related subjects are displayed with a 6-year selection range.
  • For the first subject "xxx" there should be an article (or redirection) using the name "List_of_years_in_xxx" (which is the top line displayed in the navigation-box).
  • For the first subject "xxx" there should be a specific all-years navigation article using the name "Table_of_years_in_xxx" (the "table" link displayed in box), which has a compressed table linking all year/decade articles about the subject (such as: "Table of years in film").
  • The box width expands 5%-15% for optional subjects, widening to fit longer names (such as "archaeology" or "video gaming").

[edit] Examples

The example code is on the left, and the wiki-box display is on the right.
{{Year nav topic2|1970|music}}

            List of years in music       (table)
 1960 .  1961 .  1962 .  1963  . 1964  . 1965  . 1966 
1967 1968 1969 -1970- 1971 1972 1973
 1974 .  1975 .  1976 .  1977  . 1978  . 1979  . 1980 
Related time period  or  subjects
 1967 . 1968 . 1969 - 1970 - 1971 . 1972 . 1973 
 1940s . 1950s . 1960s -1970s- 1980s . 1990s . 2000s 
 19th century . 20th century . 21st century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|1798|archaeology|science}}

            List of years in archaeology       (table)
 1788 .  1789 .  1790 .  1791  . 1792  . 1793  . 1794 
1795 1796 1797 -1798- 1799 1800 1801
 1802 .  1803 .  1804 .  1805  . 1806  . 1807  . 1808 
   In science: 1795 1796 1797 -1798- 1799 1800 1801     
Related time period  or  subjects
 1795 . 1796 . 1797 - 1798 - 1799 . 1800 . 1801 
 1760s . 1770s . 1780s -1790s- 1800s . 1810s . 1820s 
 17th century . 18th century . 19th century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|1905|art|film|music}}

            List of years in art       (table)
 1895 .  1896 .  1897 .  1898  . 1899  . 1900  . 1901 
1902 1903 1904 -1905- 1906 1907 1908
 1909 .  1910 .  1911 .  1912  . 1913  . 1914  . 1915 
          In film: 1902 1903 1904 -1905- 1906 1907 1908     
      In music: 1902 1903 1904 -1905- 1906 1907 1908     
Related time period  or  subjects
 1902 . 1903 . 1904 - 1905 - 1906 . 1907 . 1908 
 1870s . 1880s . 1890s -1900s- 1910s . 1920s . 1930s 
 19th century . 20th century . 21st century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|1497|art|music______|architecture_|literature}}

            List of years in art       (table)
 1487 .  1488 .  1489 .  1490  . 1491  . 1492  . 1493 
1494 1495 1496 -1497- 1498 1499 1500
 1501 .  1502 .  1503 .  1504  . 1505  . 1506  . 1507 
In music______: 1494 1495 1496 -1497- 1498 1499 1500     
In architecture_: 1494 1495 1496 -1497- 1498 1499 1500     
In literature____: 1494 1495 1496 -1497- 1498 1499 1500     
Related time period  or  subjects
 1494 . 1495 . 1496 - 1497 - 1498 . 1499 . 1500 
 1460s . 1470s . 1480s -1490s- 1500s . 1510s . 1520s 
 14th century . 15th century . 16th century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|1497|science|music |architecture|literature }}

            List of years in science       (table)
 1487 .  1488 .  1489 .  1490  . 1491  . 1492  . 1493 
1494 1495 1496 -1497- 1498 1499 1500
 1501 .  1502 .  1503 .  1504  . 1505  . 1506  . 1507 
      In music  : 1494 1495 1496 -1497- 1498 1499 1500     
In architecture: 1494 1495 1496 -1497- 1498 1499 1500     
   In literature : 1494 1495 1496 -1497- 1498 1499 1500     
Related time period  or  subjects
 1494 . 1495 . 1496 - 1497 - 1498 . 1499 . 1500 
 1460s . 1470s . 1480s -1490s- 1500s . 1510s . 1520s 
 14th century . 15th century . 16th century 
Art . Archaeology . Architecture . Literature . Music . Science +...
Note
This example shows use of trailing spaces, rather than underbars ("__") to align topics.


{{Year nav topic2|1893|science|archaeology|television|film}}

            List of years in science       (table)
 1883 .  1884 .  1885 .  1886  . 1887  . 1888  . 1889 
1890 1891 1892 -1893- 1894 1895 1896
 1897 .  1898 .  1899 .  1900  . 1901  . 1902  . 1903 
In archaeology: 1890 1891 1892 -1893- 1894 1895 1896     
    In television: 1890 1891 1892 -1893- 1894 1895 1896     
          In film: 1890 1891 1892 -1893- 1894 1895 1896     
Related time period  or  subjects
 1890 . 1891 . 1892 - 1893 - 1894 . 1895 . 1896 
 1860s . 1870s . 1880s -1890s- 1900s . 1910s . 1920s 
 18th century . 19th century . 20th century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|101|music|art}}

            List of years in music       (table)
 91 .  92 .  93 .  94  . 95  . 96  . 97 
98 99 100 -101- 102 103 104
 105 .  106 .  107 .  108  . 109  . 110  . 111 
           In art: 98 99 100 -101- 102 103 104     
Related time period  or  subjects
 98 . 99 . 100 - 101 - 102 . 103 . 104 
 70s . 80s . 90s -100s- 110s . 120s . 130s 
 1st century . 2nd century . 3rd century 
Art . Archaeology . Architecture . Literature . Music . Science +...


{{Year nav topic2|100|art}} [invalid]

            List of years in art       (table)
 90 .  91 .  92 .  93  . 94  . 95  . 96 
97 98 99 -100- 101 102 103
 104 .  105 .  106 .  107  . 108  . 109  . 110 
Related time period  or  subjects
 97 . 98 . 99 - 100 - 101 . 102 . 103 
 70s . 80s . 90s -100s- 110s . 120s . 130s 
 0th century . 1st century . 2nd century 
Art . Archaeology . Architecture . Literature . Music . Science +...
Note 
This template is not valid with years 100 and below. Use {{Year nav BC}} or other history nav templates instead.