සැකිල්ල:Decade in country category/doc
This is a documentation subpage for සැකිල්ල:Decade in country category. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
මෙම සැකිල්ල පිටු 1,600 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
Purpose
[සංස්කරණය]Template:Decade in country category is intended to be used on decade in country categories (for example, Category:2000s in Canada or Category:1530s in England). It creates a "timeline" style table of links to categories for adjacent decades before or after it (see example below).
Syntax
[සංස්කරණය]{{Decade 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.
Simple example
[සංස්කරණය]In most cases, only two parameters will be needed: the country and the continent.
When placed on the page Category:1860s in Japan:
{{Decade in country category|Japan|Asia}}
- displays the following:
Example using four parameters
[සංස්කරණය]When placed on the page Category:1950s in the Socialist Republic of Macedonia:
{{Decade in country category|Macedonia|Europe|Yugoslavia|the Socialist Republic of }}
- displays the following:
Fifth parameter for new name
[සංස්කරණය]- An unnamed 5th parameter may be specified as a new country name to be used in generating some of the parent categories. For example, the following placed on the page Category:1920s in Siam generates the parents Category:Decades in Thailand rather than the non-existent ප්රවර්ගය:Decades in Siam, and Category:20th century in Thailand rather than ප්රවර්ගය:20th century in Siam:
{{Decade in country category|Siam|Asia|Southeast Asia||Thailand}}
- Alternatively, the fifth parameter may be given the caption "newname" as used at Category:1950s in Spanish Guinea.
- The related template Template:Year in country category also has a parameter "newnamestart", to indicate the first year in which the new name is used in categories; however, "newnamestart" has not been implemented in this decade template code, and therefore if specified has no effect.
- Cases where the fifth parameter is specified are in the tracking category Category:Decade in country category with newname parameter.
Subtemplate
[සංස්කරණය]See also
[සංස්කරණය]