Difference between revisions of "Template:Decade link/doc"
Jump to navigation
Jump to search
imported>BrownHairedGirl (ce) |
imported>Andrybak (categorization) |
||
| Line 23: | Line 23: | ||
* {{tl|DECADE}} | * {{tl|DECADE}} | ||
| + | <includeonly>{{Sandbox other|| | ||
[[Category:Date-computing templates]] | [[Category:Date-computing templates]] | ||
| − | [[Category:Internal link templates]] | + | [[Category:Internal article-link templates]] |
| + | }}</includeonly> | ||
Revision as of 18:07, 26 March 2020
- Redirect Template:High-use
|
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|YYY0s}}
Examples
[[{{Decade link|1720}}]]→ 1720s[[{{Decade link|1850}}]]→ 1850s[[{{Decade link|1600}}]]→ 1600s[[{{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
- {{DECADE}}