跳转到内容

Template:Decade link

本页使用了标题或全文手工转换
维基百科,自由的百科全书
文档图示 模板文档[查看] [编辑] [历史] [清除缓存]

A helper template which returns the name of the article on a given decade.

This is needed because the articles on decades whose name ends in 00s are disambiguated. So if a template needs to link to an article on decade, [[YYY0s]] will link to a disambiguation page for some decades.

This template allows accurate links to be generated by writing [[{{Decade link|YYY0}}]]. The link is piped if needed.


用法

[编辑]

{{Decade link|YYY0s}}

範例

[编辑]
  1. [[{{Decade link|1720}}]]1720年代
  2. [[{{Decade link|1850}}]]1850年代
  3. [[{{Decade link|1600}}]]1600年代
  4. [[{{Decade link|2000}}]]2000年代

但注意後方的「年代」必須去除,否則會顯示錯誤訊息:

  • [[{{Decade link|1690年代}}]] → [[表达式错误:无法识别标点符号“年”。1690年代年代]]
  • [[{{Decade link|1690}}]]1690年代

參見

[编辑]