Template:TemplateData header: Difference between revisions
(Created page with "<onlyinclude> <div class="templatedata-header"><!-- -->{{#if:{{yesno|{{{editlinks|}}}}}<!-- -->|{{#ifexpr:<!-- -->{{#if:{{{docpage|}}}<!-- -->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!-- -->|not{{IsDocSubpage|false=0}}<!-- -->}}<!-- -->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{PAGELANGUAGE}}|left|right}};}}<!-- -->}}<!-- -->}} This is the documentation for this template used by VisualEditor and...") |
No edit summary |
||
Line 1: | Line 1: | ||
< | <noinclude> | ||
<div class="templatedata-header"><!-- | <div class="templatedata-header"><!-- | ||
-->{{#if:{{yesno|{{{editlinks|}}}}}<!-- | -->{{#if:{{yesno|{{{editlinks|}}}}}<!-- | ||
Line 10: | Line 10: | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}} | ||
{{#if:{{{noheader|}}}|| This is the documentation for this template used by VisualEditor and other tools.}} | |||
'''{{{1|{{BASEPAGENAME}}}}}''' | '''{{{1|{{BASEPAGENAME}}}}}''' | ||
Line 18: | Line 18: | ||
-->|[[Category:Templates using TemplateData]]<!-- | -->|[[Category:Templates using TemplateData]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->}} | -->}}</includeonly> | ||
| #default= | |||
}} | |||
{{Documentation|content= | {{Documentation|content= | ||
Line 42: | Line 44: | ||
{{TemplateData header|noheader=1}} | {{TemplateData header|noheader=1}} | ||
</dd></dl> | </dd></dl> | ||
}} | }} | ||
{{doc}} | |||
[[Category:Formatting templates]] | |||
</noinclude> |
Latest revision as of 00:51, 29 June 2022
This is the documentation for this template used by VisualEditor and other tools.
TemplateData header
| #default= }}
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}}}
<templatedata>{
...
}</templatedata>
Use {{TemplateData header|Template name}}
to display a name for the template other than the default, which is {{BASEPAGENAME}}.
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
Inserts a brief header for the template data section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template name | 1 | Used to display a name for the template other than the default, which is {{BASEPAGENAME}}. | String | optional |
No header | noheader | Assigning any value to this parameter will cause the template to omit the first sentence of the header text. | String | optional |
Edit Links? | editlinks | Whether to show {{Navbar}} editlinks on pages that transclude the TemplateData
| Boolean | optional |
Doc Page | docpage | The name of the current page, used for {{Navbar}} edit links
| Template | suggested |
The above documentation is transcluded from Template:TemplateData header/doc. (edit | history)