Template:TemplateData header/doc: Difference between revisions

Content deleted Content added
remove "namespace" word
Nachaka (talk | contribs)
Tag: Reverted
Line 6:
The {{tlx|TemplateData header}} template inserts a brief header for the template data section, and adds the page to [[:Category:Templates using TemplateData]].
 
K.C Nathan
== Usage ==
<pre style="overflow:auto;">
==TemplateData==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>
 
Note: Section headers of ==Parameters== or ==Usage== may also be used.
</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>]]. Do ''not'' add <code>Template:</code>.
:{|
|{{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}}
|}
 
==Example==