සැකිල්ල:Foo–Bar relations category
මෙම සැකිල්ල පිටු 8,500 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
Creates a category page for a category of bilateral relations between two countries named "Foo" and "Bar".
The page name must take the form "Category:Foo–Bar relations", with an endash between the two country names. If the title does not take this form, the template will report an error.
Note that use on "Category:Foo-Bar relations" will be treated as an error, because it uses a dash rather than an endash.
Usage
[සංස්කරණය]{{Foo–Bar relations category}}
Two optional parameters are available:
main=
, which sets the name of the "main article" linked in the category header. The default is the category title, but in some cases this may not be appropriate:map=
, which sets the filename of the map displayed in the category header. The default is derived from the category title, but in some cases this may be in appropriate or unavailable
{{Foo–Bar relations category|main=Some article|map=somefile}}
Output
[සංස්කරණය]Most countries
[සංස්කරණය][[File:Foo Bar Locator.png]] {{portal|International relations|Foo|Bar}} {{Cat main}} [[Category:Bilateral relations of Foo|Bar]] [[Category:Bilateral relations of Bar|Foo]]
"The" Country
[සංස්කරණය]This template uses {{CountryPrefixThe}} to intelligently handle countries whose name is prefixed by "the" in running text. e.g. "the United States" or "the Soviet Union"
Example: Category:Comoros–Ghana relations
{{portal|International relations|Ghana|Comoros}} {{Cat main}} [[Category:Bilateral relations of Ghana|Comoros]] [[Category:Bilateral relations of the Comoros|Ghana]]
Exceptions
[සංස්කරණය]In some cases, the parent Category:Bilateral relations of SomeCountry
may use a different name to that used in "Category:SomeCountry–OtherCountry relations" categories. In such cases, a sub-template Template:Foo–Bar relations category/fixcountryname handles the correction. As of December 2018, its only entry is Palestine/State of Palestine: e.g. Category:Ireland–State of Palestine relations is a subcat of Category:Bilateral relations of the State of Palestine.
Location map
[සංස්කරණය]Unless a |map=
parameter is supplied, the sub-template {{Foo–Bar relations category/mapname}} looks for a map, and displays it if found.
There is a large collection of bilateral maps at Commons:Category:Bilateral maps.
For an example Category:Foo–Bar relations, the template looks in the following order:
- File:Foo Bar Locator.png
- File:Foo Bar Locator.svg
- File:Bar Foo Locator.png
- File:Bar Foo Locator.svg
If no file is found with those titles, the search is repeated using a lower "locator".
Tracking categories
[සංස්කරණය]Used on a non-category page
- Category:Template Foo–Bar relations on non-category page (population: 0)
Used on category page with an invalid title
"main=" has a non-nil value
"main=" has a non-nil value, but the page specified does not exist
- Category:Template Foo–Bar relations category with non-existent specified main article (population: 0)
A location map is generated
- Category:Template Foo–Bar relations category with a locator map (population: 0)
No location map is generated
- Category:Template Foo–Bar relations category with no locator map (population: 1)
"map=" has a non-nil value
- Category:Template Foo–Bar relations category with specified map (population: 0)
"map=" has a non-nil value, but the page specified does not exist