This template is used on approximately 39,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. |
This template uses Lua: |
This template is intended to be used on year in country categories (for example, Category:2008 in Canada or Category:1538 in England). It creates a "timeline" style table of links to categories for adjacent years before or after it in the same decade (see example below).
{{Year in country category| | | |}}
The first three parameters indicate the country and its continent(s).
|nocountrycentury=yes
— instead of categorising the page in "Category:Years of the nth century in CountryName", use "Category:Years in CountryName".|newname=new name
— use new name for parent categories where appropriate|newnamestart=new name start year
— changeover year for new nameIn most cases, only two parameters will be needed: the country and the continent.
When placed on the page Category:1867 in Japan:
{{year in country category|Japan|Asia}}
When placed on the page Category:1954 in the Socialist Republic of Macedonia:
{{year in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}
When placed on the page Category:1771 in Thailand:
{{Year in country category|Thailand|Southeast Asia|newname=Siam|newnamestart=1782}}
generates the following parent categories: