Template:Categoryheader/doc

Revision as of 19:36, 20 January 2024 by OtherXAdmin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
File:Information icon-grey.svg
This is a documentation subpage for Template:Categoryheader.
It contains usage information, categories, and other content that is not part of the original template page.

This template displays a standardised sentence to be used on all category pages.

Usage

This template can be used by entering the following onto a category page.

{{Categoryheader|1|2|3|4}}

The "related to" in the template's output can be suppressed by adding related=no as a parameter to the template.

Example

{{Categoryheader|pages|the [[Legends of The Mara]]|yes|[[Template:Legends of The Mara]]}}

This category contains pages{{#if:the Legends of The Mara|{{#ifeq:|no|| related to}} the Legends of The Mara}}. {{#if:yes|This category is automatically added by Template:Legends of The Mara.}}

{{#if:||==Template data==}}

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

<templatedata> { "params": { "1": { "label": "Content type", "description": "This parameter will accept whether the category contains any combination of pages, images, and/or subcategories.", "type": "string", "required": true, "example": "pages and files", "suggested": true }, "2": { "label": "Subject", "description": "This parameter will accept the subject of the category.", "type": "string", "required": true, "suggested": true }, "3": { "label": "Automatically added", "description": "This parameter will accept the word 'yes', if the category in question is automatically added to a page via a template. Leave this parameter blank if the category is not automatically added.", "type": "boolean", "suggested": true }, "4": { "label": "Added by", "description": "This parameter will accept the names of the templates that automatically are added by a template. This parameter will only display if the third parameter is 'yes'.", "type": "string", "suggested": true }, "related": { "label": "Suppress \"related to\"", "description": "Set to \"no\" to suppress the \"related to\" text that is otherwise shown between \"Content type\" and \"Subject\"", "type": "boolean" } }, "format": "inline", "description": "This template displays a standardised sentence to be used on all category pages." } </templatedata>

{{#if:||}}