模板:Summer Olympics by year category navigation

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

A category header template for use on a Summer Olympics by year category, i.e. a category named "<foo> <YYYY> Summer Olympics <foobar>"

It creates a navigation box with links to other years.

No parameters are required, but they can be specified if needed. If parameters are omitted, the category name is parsed.

使用

编辑

{{Summer Olympics by year category navigation}}

or

{{Summer Olympics by year category navigation|prefix|suffix}}

范例

编辑

No parameters

编辑

From Category:2024年夏季奥林匹克运动会

Use {{Summer Olympics by year category navigation}}
19世纪:
  • 1896
  • 1900
20世纪:
  • 1904
  • 1908
  • 1912
  • 1916
  • 1920
  • 1924
  • 1928
  • 1932
  • 1936
  • 1940
  • 1944
  • 1948
  • 1952
  • 1956
  • 1960
  • 1964
  • 1968
  • 1972
  • 1976
  • 1980
  • 1984
  • 1988
  • 1992
  • 1996
  • 2000
21世纪:
  • 2004
  • 2008
  • 2012
  • 2016
  • 2020
  • 2024
  • 2028
  • 2032

Prefix only

编辑

From Category:1960年夏季奥林匹克运动会代表团

Use {{Summer Olympics by year category navigation|Nations at the}}
19世纪:
  • 1896
  • 1900
20世纪:
  • 1904
  • 1908
  • 1912
  • 1916
  • 1920
  • 1924
  • 1928
  • 1932
  • 1936
  • 1940
  • 1944
  • 1948
  • 1952
  • 1956
  • 1960
  • 1964
  • 1968
  • 1972
  • 1976
  • 1980
  • 1984
  • 1988
  • 1992
  • 1996
  • 2000
21世纪:
  • 2004
  • 2008
  • 2012
  • 2016
  • 2020
  • 2024
  • 2028
  • 2032

Suffix only

编辑

From Category:1972年夏季奥林匹克运动会比赛项目

Use {{Summer Olympics by year category navigation||events}}
19世纪:
  • 1896
  • 1900
20世纪:
  • 1904
  • 1908
  • 1912
  • 1916
  • 1920
  • 1924
  • 1928
  • 1932
  • 1936
  • 1940
  • 1944
  • 1948
  • 1952
  • 1956
  • 1960
  • 1964
  • 1968
  • 1972
  • 1976
  • 1980
  • 1984
  • 1988
  • 1992
  • 1996
  • 2000
21世纪:
  • 2004
  • 2008
  • 2012
  • 2016
  • 2020
  • 2024
  • 2028
  • 2032

Errors

编辑

If the category name does not include "YYYY Summer Olympics", then the navbox cannot be made unless parameters are supplied.

If then navbox cannot be made, an error message is produced, and the page is added to a tracking category:

Purge this page to update the total.

参见

编辑