Template:TemplateData header/doc: Difference between revisions

Content deleted Content added
update to match renaming of template in May 2015
document other parameters, add category, add wrapper to prevent /sandbox from being added to categories
Line 13:
</pre>
 
Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> ifto youdisplay want an alternativea name for the template toother than the default, which beis displayed[[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==
Line 22 ⟶ 35:
"1": {
"label": "Template name",
"description": "TheUsed to display a name offor the template toother display.than the default, Defaultwhich 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
Line 29 ⟶ 54:
}</templatedata>
 
<includeonly>{{sandbox other||
==See also==
 
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:TemplateData documentation| ]]
 
}}</includeonly>