跳至內容

模板:Summer Olympics by year category navigation/sandbox

維基百科,自由的百科全書
文件圖示 模板文件[檢視] [編輯] [歷史] [清除快取]

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}}

範例

[編輯]

無參數

[編輯]

自動擷取至YYYY年夏季奧林匹克運動會 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

僅前綴

[編輯]

*中文命名模式,較少用到前綴此功能

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

僅後綴

[編輯]

從年份後,開始填寫

From Category:1972年夏季奧林匹克運動會比賽項目

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

說明

[編輯]

編輯中預覽中的不存在(不正常)分類,不用建立。

錯誤

[編輯]

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.

參見

[編輯]