Jump to content

Template:TemplateData header/doc

Bisangiddwa ku Wikipedia

The {{TemplateData header}} template inserts a brief header for the TemplateData section and automatically adds the page to Category:Templates using TemplateData.

== TemplateData ==
{{TemplateData header}}
<templatedata>{
…
}</templatedata>

Optional parameters

[kolera mu edit source]

Add an optional unnamed parameter containing a template name (be sure to omit the namespace, as in {{TemplateData header|Example}}) to override the default reference to the transcluding page (as output by the {{BASEPAGENAME}} variable) in the header text. This is typically done in the case of template families which all transclude a documentation subpage from a single family member.

Template:Markupv


Use the |nolink=1 parameter to omit the wikilink from the word "TemplateData" in the header text, for instances when it is already linked elsewhere on the page. Template:Markupv


Use the |noheader=1 parameter to omit the first sentence of the default header text. Template:Markupv

Some editors prefer to nest very lengthy TemplateData tables within a collapsible box template. An example of this layout for Template:User would use wikitext that resembled… Template:Demo

TemplateData

[kolera mu edit source]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.

TemplateData for TemplateData header

Inserts a brief introduction for the TemplateData section of a documentation page and adds the root page to the 'Templates using TemplateData' category

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Template name1

Overrides the name of the template referenced as the source of the information

Default
{{BASEPAGENAME}}
Lineoptional
No headernoheader

Omits the first sentence of the header text

Booleanoptional
Unlinkednolink

Overrides linking the word 'TemplateData' in the header text to the page Wikipedia:TemplateData; useful when such a link already appears earlier on the page

Booleanoptional

Tracking categories

[kolera mu edit source]