模板: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}}
范例
[编辑][[{{Decade link|1720}}]]→ 1720年代[[{{Decade link|1850}}]]→ 1850年代[[{{Decade link|1600}}]]→ 1600年代[[{{Decade link|2000}}]]→ 2000年代
但注意后方的“年代”必须去除,否则会显示错误讯息:
[[{{Decade link|1690年代}}]]→ [[表达式错误:无法识别标点符号“年”。1690年代年代]][[{{Decade link|1690}}]]→ 1690年代
参见
[编辑]- {{DECADE}}
- {{Year article}}
- {{Year category name}}