قالب:Category see also if exists
Displays a "see also" link to a category, if it exists. Otherwise, does nothing.
It allows the creation of a link to a category which does 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.
Usage
- Usual syntax
{{Category see also if exists|category name}}
Parameters:
- Just one: the category name. (Hope to add the possibility for more category names)
- 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}}
→
- 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}}
→
Redirects
See also
- {{Category see also}}
- {{See also}}
The above documentation is transcluded from قالب:Category see also if exists/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |