模板: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}}