Peppermint (talk | contribs) m 1 revision imported |
Updating to match new version of source page |
||
Line 27: | Line 27: | ||
{{Documentation|content= | {{Documentation|content= | ||
Inserts a brief header for the template data section. Adds the /doc subpage to | Inserts a brief header for the template data section. | ||
Adds the /doc subpage to {{ll|Category:TemplateData documentation}} and the template page to {{ll|Category:Templates using TemplateData}}. | |||
== Usage == | == Usage == | ||
Line 39: | Line 40: | ||
}} | }} | ||
Use <code | Use {{tmpl|0=<code>{{((}}TemplateData header{{!}}$1{{))}}</code>|Template name}} to display a name for the template other than the default, which is {{ll|Help:Magic words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>}}. | ||
<dl><dd> | <dl><dd> | ||
{{TemplateData header|Template name}} | {{TemplateData header|Template name}} | ||
Line 45: | Line 47: | ||
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text. | ||
<dl><dd> | <dl><dd> | ||
{{TemplateData header|noheader=1}} | {{TemplateData header|noheader=1}} |
Revision as of 22:03, 5 September 2023
<languages/>
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData header
File:Test Template Info-Icon - Version (2).svg 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}}
[[:Template:^(]]templatedata[[:Template:)^]]{
...
}[[:Template:^(]]/templatedata[[:Template:)^]]
Use {{TemplateData header|Template name}}
to display a name for the template other than the default, which is {{BASEPAGENAME}} .
-
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Template name in articles based on its TemplateData.
TemplateData for Template name
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
-
See a monthly parameter usage report for Template:TemplateData header in articles based on its TemplateData.
TemplateData for TemplateData header
Parameters
[[Category:Template documentation pages{{#translation:}}]]