Template:Categoryheader/doc: Difference between revisions

From RuneRealm Wiki
Jump to navigation Jump to search
Content added Content deleted
(Created page with "{{Documentation}} 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. <pre>{{Categoryheader|1|2|3|4}}</pre> The "related to" in the template's output can be suppressed by adding <code>related=no</code> as a parameter to the template. ==Example== <pre>{{Categoryheader|pages|the Theatre of Blood|yes|Template:Theatre of Blood}}</pre> {{Categoryheader...")
 
No edit summary
Tag: Reverted
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
This template displays a standardised sentence to be used on all category pages.
This template displays a standardised sentence to be used on all category mw.pages.


==Usage==
==Usage==
Line 10: Line 10:


==Example==
==Example==
<pre>{{Categoryheader|pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}</pre>
<pre>{{Categoryheader|mw.pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}</pre>


{{Categoryheader|pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}
{{Categoryheader|mw.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 pages, images, and/or subcategories.",
"description": "This parameter will accept whether the category contains any combination of mw.pages, images, and/or subcategories.",
"type": "string",
"type": "string",
"required": true,
"required": true,
"example": "pages and files",
"example": "mw.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 pages."
"description": "This template displays a standardised sentence to be used on all category mw.pages."
}
}
</templatedata>}}
</templatedata>}}

Revision as of 00:20, 17 October 2024

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 mw.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|mw.pages|the [[Theatre of Blood]]|yes|[[Template:Theatre of Blood]]}}

This category contains mw.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 mw.pages.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Content type1

This parameter will accept whether the category contains any combination of mw.pages, images, and/or subcategories.

Example
mw.pages and files
Stringrequired
Subject2

This parameter will accept the subject of the category.

Stringrequired
Automatically added3

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.

Booleansuggested
Added by4

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'.

Stringsuggested
Suppress "related to"related

Set to "no" to suppress the "related to" text that is otherwise shown between "Content type" and "Subject"

Booleanoptional