Template:Categoryheader/doc: Difference between revisions
| No edit summary Tag: Reverted | No edit summary Tag: Manual revert | ||
| Line 1: | Line 1: | ||
| {{Documentation}} | {{Documentation}} | ||
| This template displays a standardised sentence to be used on all category  | This template displays a standardised sentence to be used on all category pages. | ||
| ==Usage== | ==Usage== | ||
| Line 10: | Line 10: | ||
| ==Example== | ==Example== | ||
| <pre>{{Categoryheader| | <pre>{{Categoryheader|pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}</pre> | ||
| {{Categoryheader| | {{Categoryheader|pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}} | ||
| {{TemplateData|<templatedata> | {{TemplateData|<templatedata> | ||
| Line 19: | Line 19: | ||
| 		"1": { | 		"1": { | ||
| 			"label": "Content type", | 			"label": "Content type", | ||
| 			"description": "This parameter will accept whether the category contains any combination of  | 			"description": "This parameter will accept whether the category contains any combination of pages, images, and/or subcategories.", | ||
| 			"type": "string", | 			"type": "string", | ||
| 			"required": true, | 			"required": true, | ||
| 			"example": " | 			"example": "pages and files", | ||
| 			"suggested": true | 			"suggested": true | ||
| 		}, | 		}, | ||
| Line 51: | Line 51: | ||
| 	}, | 	}, | ||
| 	"format": "inline", | 	"format": "inline", | ||
| 	"description": "This template displays a standardised sentence to be used on all category  | 	"description": "This template displays a standardised sentence to be used on all category pages." | ||
| } | } | ||
| </templatedata>}} | </templatedata>}} | ||
Latest revision as of 11:31, 17 October 2024
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 [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}
This category contains pages related to the Theatre of Blood. This category is automatically added by Template:Theatre of Blood.
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. This template displays a standardised sentence to be used on all category pages. 
 | ||||||||||||||||||||||||||||||
