Template:Category
DO NOT INCLUDE {{languages}} template here
Template's doc
This template can be used for adding pages to language version category of specified category. Just use {{category|Blahblah}} in page Page_name/include (With exactly 1 slash. /include is after English name, not after /xy language code) to add all language versions of this page to Category:Blahblah, Category:Blahblah/es, Category:Blahblah/zh or another language of this category. Language is detected automatically, so every page is added to corresponding category.
User's comment
As I was too stupid to get how the things work with this template (before I tried and got corrected by DarthGandalf) here is a bit easier step-by-step instruction:
- If You have any article (let's say we have Example_Article), remove all categories in this Example_Article.
- Go to Example_Article/include page (if it doesn't exist, create it)
- Put there only categories to link Example_Article with in a form
<noinclude>{{ininclude}}</noinclude>
{{category|Category_name}}
- When You go back to Example_Article You should see working categories. Each /localized version of Example_Article like
Example_Article/de Example_Article/pl Example_Article/phl and so on...
will get automatically category from english version with /lang suffix, as mentioned above.
- Note
- If you wonder, how the hell it works... check last line of Template:Languages's source :)