සැකිල්ල:Category see also if exists/doc
This is a documentation subpage for සැකිල්ල:Category see also if exists. It may contain usage information, categories and other content that is not part of the original සැකිල්ල page. |
මෙම සැකිල්ල පිටු 45,000 පමණ භාවිතා වන නිසා සිදුකරන වෙනස් කිරීම් බොහෝ ස්ථානවලට බලපානු ඇත. ඔබ සිදුකිරීමට අදහස් කරන වෙනස්කම් මෙම සැකිල්ලට අදාළ /sandbox හෝ /testcases උපපිටුවල, හෝ ඔබගේ පරිශීලක උපපිටුවේ පළමුව සිදුකොට පරීක්ෂාකර බලන්න. එම වෙනස්කම් සිදුකිරීමට ප්රථම අදාළ සාකච්ඡා පිටුවේ ඒ පිළිබඳව සංවාදයක් ගොඩනැගීමට කාරුණික වන්න.
Transclusion count updated automatically (ප්රලේඛනය වෙතට යොමුවන්න). |
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
Displays a "see also" link to one or more categories, if the category exists. If none of the supplied categories exists, the template does nothing.
It allows the creation of links to categories which do 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 a target category is likely to exist any time soon. The link can be created now, rather than having to edit the page again later.
Usage
සංස්කරණය- Usual syntax
{{Category see also if exists|category}}
{{Category see also if exists|category1|category2|category3|...}}
Parameters:
- At least one category name
- Examples
- A category which does exist:
{{Category see also if exists|1997 in Spain}}
→ - A non-existent category:
{{Category see also if exists|1997 deaths on Planet Zxcvbmm}}
→ - A set of categories, some of which exist:
{{Category see also if exists | Poland | | Spain | asdfghij | Dinosaurs | poiytrewq | zzzzzzzz | Novels }}
→
- Pragmatic example
Many (most?) sports are segregated by gender. In those sports, men and women either compete separately, or some in specified combination, e.g. in tennis a mixed doubles team must consist of one man and one woman.
WP:Cat gender therefore allows the categories for players of those sports to be sub-divided by gender: one category for men, and one for women.
One such divide is Category:Male boxers/Category:Women boxers.
Category:Estonian boxers has a subcategory for Category:Estonian male boxers, but since there are as yet no en.wikipedia articles on women boxers from Estonia, we do not yet have a Category:Estonian women boxers. So on Category:Estonian male boxers, there is:
{{Category see also if exists|Estonian women boxers}}
→
Warning messages
සංස්කරණයIf none of the listed categories currently exists, then a warning message is displayed when the page is being previewed:
Template:Category see also if exists — no output, because none of the categories currently exists.
This warning is displayed just below the "Preview" heading, and just above the page preview area. It is not displayed when the page has been saved
Redirects
සංස්කරණයSee also
සංස්කරණය- {{Category see also if exists 2}} – includes a fallback category which is tried if the first does not exist
- {{Category see also}}
- {{Link if exists}}
- {{Navseasoncats}} – for navigation between categories with years, decades, ordinals, or seasons in their name