Template:TemplateDataHeader/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This template inserts a brief header for the template data section, and adds the page to Category:Templates using TemplateData.

Usage

==TemplateData==
{{TemplateDataHeader}}
<templatedata>{
...
}</templatedata>

Note: Section headers of ==Parameters== or ==Usage== may also be used.

Use {{TemplateDataHeader|<Template name>}} to display a name for the template other than the default, which is {{BASEPAGENAME}}. Do not add namespace Template:

This is the TemplateData for this template used by VisualEditor.
TemplateData for <Template name>

Use {{TemplateDataHeader|nolink= 1}} to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.

This is the TemplateData for this template used by VisualEditor.
TemplateData for TemplateDataHeader

Use {{TemplateDataHeader|noheader= 1}} to omit the bold sentence of the header text.

This is the TemplateData for this template used by VisualEditor.

TemplateData

This is the TemplateData for this template used by VisualEditor.

Inserts a brief header for the template data section. Adds the page to [[Category:Templates using TemplateData]].

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template name1

Used to display a name for the template other than the default.

Example
Language
Auto value
{{BASEPAGENAME}}
Templateoptional
No linknolink

Assigning any value to this parameter will cause the template to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.

Auto value
false
Booleanoptional
No headernoheader

Assigning any value to this parameter will cause the template to omit the bold sentence of the header text.

Auto value
false
Booleanoptional