සැකිල්ල:Category see also if exists 2/doc
This is a documentation subpage for සැකිල්ල:Category see also if exists 2. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල පිටු 77,000 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
Displays a "see also" link to a category, if it exists. Otherwise, it will optionally display a "see also" link to a second category, if that exists. Similarly with the third and fourth parameters.
If none of the categories exists, it does nothing.
Note that {{category redirect}}s are resolved.
Purpose
[සංස්කරණය]This template is a variant of {{Category see also if exists}}, with added provision for a fallback category if the first one does not exist.
It allows the creation of a link to a category which may not yet exist, but which will be displayed if and when the category is created. This is useful as a category tree is being developed, because the editor does not have guess whether the target category is likely to exist any time soon. The link can be created now, rather than having to edit the page again later.
This template can be used in other templates such as {{estcat}}, or directly on category pages or articles.
Usage
[සංස්කරණය]- Usual syntax
{{Category see also if exists 2|category name|second category name}}
Parameters:
- category name
- optional second (fallback) category name. If the first category does not exist, the second will be tested in the same way, and linked only if it exists.
- Examples
- A category which does exist:
{{Category see also if exists 2|1915 disestablishments in South West Africa}}
→ - A non-existent category:
{{Category see also if exists 2|1919 disestablishments in South West Africa}}
→ - A non-existent category with a fallback category that does exist:
{{Category see also if exists 2|1919 disestablishments in South West Africa|1910s disestablishments in South West Africa}}
→ - A non-existent category with a fallback category that also does not exist:
{{Category see also if exists 2|1955 disestablishments in South West Africa|1950s disestablishments in South West Africa}}
→
The outcomes of the above examples 1, 3 and 4 are displayed at Category:1915 establishments in South West Africa, Category:1919 establishments in South West Africa and Category:1955 establishments in South West Africa.
- Extended syntax
{{Category see also if exists 2|category name|second category name|third category name|fourth category name}}
The optional third and fourth parameters are tested in turn to see if they exist if neither the first nor second parameters exist.
Redirects
[සංස්කරණය]See also
[සංස්කරණය]- {{Category see also if exists}}
- {{Category see also}}
- {{Link if exists}}
- {{Category series navigation}} – for navigation between categories with years, decades, ordinals, or seasons in their name
- {{if empty}}