Jump to content

Template:documentation subpage/doc

From Wiktionary

This template is used on template documentation subpages to add a notice at the top of the page and add them to Category:Template documentation pages.

Usage

[change]
{{documentation subpage
| 1 = Parent page
| override = The sub-page name
| defaultsort = The way to sort the page in categories
}}

This template is added to the top of template and module documentation pages, and adds a header when on the page itself. Nothing will shown when the documentation page is viewed from the parent template.

TemplateData

[change]
This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData for documentation subpage

Template for identifying template documentation pages.

Template parameters

ParameterDescriptionTypeStatus
Main page1

The page name which the template documentation is for.

Page nameoptional
Sub-pageoverride

The name of the sub-page that the documentation is on.

Stringoptional
Default sortdefaultsort

How the page is sorted in the category.

Default
{{PAGENAME}}
Stringoptional