模板:Decade link
外觀
![本頁使用了標題或全文手工轉換](http://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Zh_conversion_icon_m.svg/35px-Zh_conversion_icon_m.svg.png)
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子頁面中添加分類。本模板的子頁面。 |