You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Template:TemplateData header/doc

From Wikitech-static
Jump to navigation Jump to search

Inserts a brief header for the template data section. Adds the /doc subpage to Category:TemplateData documentation and the template page to Category:Templates using TemplateData.

Usage

== TemplateData == / == Parameters == / == Usage ==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>

Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}.

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

Template name

Use {{TemplateData header|Template name|noheader=1}} to omit the first sentence of the header text.


TemplateData header

Parameters

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

TemplateData header

<templatedata> { "description": "Inserts a brief header for the template data section.", "format": "inline", "params": { "1": { "label": "Template Name", "description": "Used to display a name for the template other than the default.", "default": "TemplateData header", "type": "line" }, "noheader": { "label": "No Header?", "description": "Whether to omit the default header.", "default": "0", "autovalue": "1", "type": "boolean" } } } </templatedata>