Open main menu

Changes

Templates using TemplateData
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->

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

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

Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[Help:Magic_words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>]].
:{|
|{{TemplateData header|Template name}}
|}

Use <code><nowiki>{{TemplateData header|nolink=1}}</nowiki></code> to omit the [[Help:Link#Wikilinks|wikilink]] from the word "TemplateData" in the header text, for instances where it is already linked outside this template.
:{|
|{{TemplateData header|nolink=1}}
|}

Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
:{|
|{{TemplateData header|noheader=1}}
|}

==Parameters==
{{TemplateData header}}
<templatedata>{
"description": "Inserts a brief header for the template data section. Adds the page to [[Category:Templates using TemplateData]]",
"params": {
"1": {
"label": "Template name",
"description": "Used to display a name for the template other than the default, which is {{BASEPAGENAME}}.",
"type": "string",
"required": false
},
"nolink": {
"label": "No link",
"description": "Assigning any value to this parameter will omit 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.",
"type": "string",
"required": false
},
"noheader": {
"label": "No header",
"description": "Assigning any value to this parameter will cause the template to omit the first sentence of the header text.",
"type": "string",
"required": false
}
}
}</templatedata>

<includeonly>{{sandbox other||
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Templates using TemplateData| ]]
}}</includeonly>
Anonymous user