Jump to content

Template:TemplateData header: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 25: Line 25:
{{Documentation|content=
{{Documentation|content=


<!--T:3--> Inserts a brief header for the template data section.
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}}.
<!--T:4--> Adds the /doc subpage to {{ll|Category:TemplateData documentation}} and the template page to {{ll|Category:Templates using TemplateData}}.




== Usage == <!--T:2-->
== Usage ==


{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
Line 40: Line 39:
}}
}}


<!--T:5-->
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>}}.
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>}}.


Line 49: Line 46:
</dd></dl>
</dd></dl>


<!--T:6-->
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.


Line 58: Line 54:




==Parameters== <!--T:7-->
==Parameters==


{{TemplateData header/doc}}
{{TemplateData header/doc}}