Template:TOCyears

From Baka-Tsuki
Jump to navigation Jump to search
Contents

1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950






This creates a customisable table of contents for an article whose section headers consist of years. Since years and section numbers are similar this works well for parts inside a chapter that are only numbered and not prefixed, in which case the default TOC looks ugly. Copied from the TOCyears template on Wikipedia.

Usage[edit]

Optional parameters:

startyear
Defaults to 1900. The first year listed.
step
Defaults to 1. The number by which the year increments. Useful for decade-by-decade TOC.
range
Defaults to off. Allows the year to be listed as year-(year+range), for instance 1925-1926. Useful for sports events where seasons take place over two years.
endyear
Defaults to 1950. The last year to be listed.