Template:By region category/doc
This is a shortcut way of adding {{metacat|region}} to a region. For backwards compatibility only, if {{{1}}} is filled in, the template will categorize into a topic category. "By region" categories are the only ones that do this autocategorizing (in the manner as explained below) into the main category tree (not maintenance/"flat list" parent categories). It's better to add the category manually, since it's possible someone will want to change it with HotCat or something. For example, you may want Category:Buildings by region categorized in Category:Buildings by location instead of directly in Category:Buildings. Categorization changes based on the structure of the topic category, thus auto-categorization isn't a good idea in this case.
Usage
[edit]- Add {{By region category}} to a by region category. Or (see above notes):
- Add {{By region category|subject}} to a by region category.
- For example; for Category:Buildings by region add {{By region category|Buildings}}.
- In the example, the template generates these categories:
- [[Category:Categories by region (flat list)|Buildings by region]]
- [[Category:Buildings| Region]] (space before Region)
- [[Category:Meta categories]]
Shortcut: {{by region}} also works. It redirects to {{By region category}}
New language version
[edit]{{By region category/layout |text='''''This is a by region category.''''' This category should only contain subcategories. Images should either be in the relevant region subcategory or in the {{#if:{{{1|}}}|[[:Category:{{{1|}}}|parent category]]|parent category}}. |lang={{subst:SUBPAGENAME}} }}<noinclude> {{translated tag|marker}} </noinclude>