Jump to content
šŸ—³ļøšŸ–„ļø The Wikimedia Foundation December 2024 Developer Satisfaction Survey closes on the 2025-01-03. This survey helps us measure developer satisfaction, and prioritize work on tools and platforms for our technical contributors.

Template:TemplateData header

From wikiNonStop
Revision as of 07:13, 27 December 2024 by FuzzyBot (talk | contribs) (Updating to match new version of source page)
(diff) ā† Older revision | Latest revision (diff) | Newer revision ā†’ (diff)

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

TemplateData header

Template documentation

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== or ==Parameters== or ==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|noheader=1}} to omit the first sentence of the header text.


TemplateData header

Parameters

Lua error: expandTemplate: template loop detected.

[<span style="" title="<translate nowrap> View this template</translate>"><translate> view</translate> · <span style="" title="<translate nowrap> Discuss this template</translate>"><translate> talk</translate> · <span style="" title="<translate nowrap> Edit this template</translate>"><translate> edit</translate>]

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

TemplateData header

Inserts a brief header for the template data section.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template name1

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

Default
{{BASEPAGENAME}}
Stringoptional
No headernoheader

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

Stringoptional
Edit Links?editlinks

Whether to show {{Navbar}} editlinks on pages that transclude the TemplateData

Default
0
Auto value
1
Booleanoptional
Doc Pagedocpage

The name of the current page, used for {{Navbar}} edit links

Default
{{BASEPAGENAME}}/doc
Auto value
{{subst:PAGENAME}}
Templatesuggested