Template:TemplateDataHeader/doc: Difference between revisions
Jump to navigation
Jump to search
(-) |
(TemplateData updated) |
||
Line 16: | Line 16: | ||
== TemplateData == | == TemplateData == | ||
{{TemplateDataHeader}} | {{TemplateDataHeader}} | ||
<templatedata>{ | <templatedata> | ||
{ | |||
"description": "Inserts a brief header for the template data section. Adds the page to [[Category:TemplateData documentation]]", | |||
"params": { | |||
"1": { | |||
"label": "Template name", | |||
"description": "The name of the template to display. Default is {{BASEPAGENAME}}.", | |||
"type": "string", | |||
"required": false | |||
}, | |||
}</templatedata> | "noheader": { | ||
"label": "Remove header", | |||
"description": "If specified and not empty then header will not be added.", | |||
"type": "string", | |||
"required": false, | |||
"example": "noheader=1 or noheader=yes" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
Revision as of 16:09, 31 July 2016
This is a documentation subpage for Template:TemplateDataHeader . |
Inserts a brief header for the template data section. Adds the page to Category:TemplateData documentation.
Usage
==TemplateData== or ==Parameters== or ==Usage== {{TemplateDataHeader}} <templatedata>{ ... }</templatedata>
Use {{TemplateDataHeader|Template name}}
if you want an alternative name for the template to be displayed.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData for TemplateDataHeader
Inserts a brief header for the template data section. Adds the page to [[Category:TemplateData documentation]]
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | The name of the template to display. Default is {{BASEPAGENAME}}. | String | optional |
Remove header | noheader | If specified and not empty then header will not be added.
| String | optional |