• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Decade link

  • Template
  • Talk
  • Language
  • Watch
  • View source
Template documentation[view] [edit] [history] [purge]
WarningThis template is used on approximately 36,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.

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.


Usage

{{Decade link|YYY0}}

Often used in combination with template {{Title decade}}:

{{Decade link|{{Title decade}}}}

Examples

  1. [[{{Decade link|1720}}]] → 1720s
  2. [[{{Decade link|1850}}]] → 1850s
  3. [[{{Decade link|1600}}]] → 1600s
  4. [[{{Decade link|2000}}]] → 2000s

Note that the trailing letter "s" must be omitted:

  • [[{{Decade link|1690s}}]] → [[Expression error: Unrecognized word "s".1690ss]]
  • [[{{Decade link|1690}}]] → 1690s

See also

  • Template:DECADE
  • Template:Year article
  • Template:Year category name
The above documentation is transcluded from Template:Decade link/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Decade_link&oldid=1276755342"
Last edited on 20 February 2025, at 15:24

Languages

    • Аԥсшәа
    • العربية
    • বাংলা
    • 閩南語 / Bân-lâm-gí
    • Беларуская (тарашкевіца)
    • الدارجة
    • فارسی
    • Bahasa Indonesia
    • Kurdî
    • मराठी
    • Bahasa Melayu
    • ਪੰਜਾਬੀ
    • Scots
    • සිංහල
    • Simple English
    • Slovenščina
    • தமிழ்
    • ไทย
    • Українська
    • اردو
    • Tiếng Việt
    • 粵語
    • 中文
    Wikipedia
    • Wikimedia Foundation
    • Powered by MediaWiki
    • This page was last edited on 20 February 2025, at 15:24 (UTC).
    • Content is available under CC BY-SA 4.0 unless otherwise noted.
    • Privacy policy
    • About Wikipedia
    • Disclaimers
    • Contact Wikipedia
    • Code of Conduct
    • Developers
    • Statistics
    • Cookie statement
    • Terms of Use
    • Desktop