Bản mẫu:OlyCatMenWomen/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:OlyCatMenWomen. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
This is a category header template for use in gendered Olympic Games categories, to facilitate cross-linking between "Category:Men's Foobar" and "Category:Women's Foobar".
Explanation[sửa mã nguồn]
If it used on "Category:Men's Foobar", it will use {{Category see also if exists}} to create a "See also" hatnote to "Category:Women's Foobar".
Similarly, if it is used on "Category:Women's Foobar", it will use {{Category see also if exists}} to create a "See also" hatnote to "Category:Men's Foobar".
In each case, the hatnote will be created only if the target category exists.
Usage[sửa mã nguồn]
{{OlyCatMenWomen}}
Limitations[sửa mã nguồn]
This template has not been tested in all possible applications, so its use is restricted to pages which meet all the following criteria:
- The page is in the Category namespace
- The page title contains the word "Olympic" or "Olympics"
- The page title contains the word "Men's" or "men's" or "Women's" or "women's"
If the page title contains more than one of instance of "Men's"/"men's"/"Women's"/"women's", only the first instance will be processed.
Error tracking[sửa mã nguồn]
Tracking categories will be populated in the following cases:
- Use on non-category page
- Thể loại:OlyCatMenWomen trên trang không phải là trang thể loại (population: 0)
- Use on page without "Olympic in its title"
- Thể loại:OlyCatMenWomen trên trang không phải về Thế vận hội (population: 0)
- Use on pages whose title does not include the word "Men's" or "men's" or "Women's" or "women's"