සැකිල්ල:Year in country category/core/sandbox
මෙම සැකිල්ල පිටු 34,000 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
Purpose
සංස්කරණය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).
Usage
සංස්කරණය{{Year in country category| | | |}}
Parameters
සංස්කරණයThe first three parameters indicate the country and its continent(s).
- The first parameter is the country name as indicated in the category name (but without prefixes which are unwanted for sorting, these should be added to the 4th parameter).
- The second parameter is the continent where the country is located.
- The third parameter is optional: if a country is located in two continents (mainly for countries in Europe and Asia, like Russia or Turkey), then a second continent can be included here. The order of the two continents is not important. This third parameter can also be used with member states of the United Kingdom (use "United Kingdom"), the former Soviet Union ("Soviet Union"), or former Yugoslavia ("Yugoslavia").
- The 4th parameter is used for sorting of countries which start with "The" (or other prefixes like "the Socialist Republic of "): this can be left empty for most countries.
Optional parameters
සංස්කරණය|nocountrycentury=yes
— instead of categorising the page in "Category:Years of the nth century in CountryName", use "Category:Years in CountryName".
This is used for countries such as Yugoslavia and the Soviet Union, which existed only within one century.
- Note: As an alternative mechanism with the same result, if the page "Category:Years of the nth century in CountryName" is redirected to "Category:Years in CountryName", this template will resolve the redirect and use the latter instead (e.g. Category:Years in Czechoslovakia).
|newname=new name
— use new name for parent categories where appropriate|newnamestart=new name start year
— changeover year for new name
Simple example
සංස්කරණයIn 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}}
- displays the following:
Example using all unnamed parameters
සංස්කරණයWhen placed on the page Category:1954 in the Socialist Republic of Macedonia:
{{year in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}
- displays the following:
Example using newname parameters
සංස්කරණය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:
- Category:1770s in Thailand – because the decade ends before the start date 1782
- Category:Years of the 18th century in Siam – because the century ends after 1782
Subtemplate
සංස්කරණයTracking categories
සංස්කරණය- ප්රවර්ගය:Template Year in country category with prefix available though CountryPrefixThe (10)
- ප්රවර්ගය:Template Year in country category with prefix parameter matching that in CountryPrefixThe (8)
- ප්රවර්ගය:Template Year in country category with prefix parameter NOT matching that in CountryPrefixThe (1)
- ප්රවර්ගය:Template Year in country category with prefix parameter (0)
- ප්රවර්ගය:Template Year in country category with unnamed 4th parameter (9)
- ප්රවර්ගය:Template Year in country category with unnamed 5th parameter (0)