Template:CategoryHandler
Jump to navigation
Jump to search
Usage Examples
| Page Namespace | Template Call | Output |
|---|---|---|
| (Main) | {{CategoryHandler|[[Category:Placeholder]]}}
|
[[Category:Placeholder]] |
Translation subpage (e.g. Arrakeen/es)
|
{{CategoryHandler|[[Category:Placeholder]]}}
|
(Empty output) |
| Template | {{CategoryHandler|[[Category:Placeholder]]}}
|
(Empty output) |
| Template | {{CategoryHandler|[[Category:Placeholder]]|allow_template=true}}
|
[[Category:Placeholder]] |
TemplateData
This template conditionally outputs the specified content only on non-translated pages. By default, output is also suppressed on Template pages, but can be allowed with allow_template.
Mainly used to prevent translation subpages and templates from being added to categories.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 | The content to emit, typically a category and/or other parser logic. | Content | required |
| Allow Template Namespace | allow_template | Whether to emit the category on the Template namespace (10).
| Boolean | optional |