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}}
範例
[编辑][[{{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}}
上述文档嵌入自Template:Decade link/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。本模板的子页面。 |