TemplateData header
JonTillman (talk | contribs) m (more) |
JonTillman (talk | contribs) m (maybe) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
|= | |= | ||
<div class="templatedata-header"><!-- | <div class="templatedata-header"><!-- | ||
-->{{#if:{{yesno|{{{editlinks|}}}}}<!-- | -->{{#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}};}}<!-- | |||
-->}}<!-- | |||
-->}} | -->}} | ||
{{#if:{{{noheader|}}}||<translate><!--T:1--> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>}} | |||
'''{{{1|{{BASEPAGENAME}}}}}''' | '''{{{1|{{BASEPAGENAME}}}}}''' | ||
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | </div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!-- | ||
-->|{{#if:{{IsDocSubpage|false=}}<!-- | |||
-->|[[Category:TemplateData documentation{{#translation:}}]]<!-- | |||
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!-- | |||
-->}}<!-- | |||
-->}}</includeonly> | -->}}</includeonly> | ||
| #default= | | #default= | ||
Revision as of 10:56, 24 September 2022
|=
<translate> This is the [[<tvar name=1>Special:MyLanguage/Help:TemplateData</tvar>|TemplateData]] documentation for this template used by [[<tvar name=2>Special:MyLanguage/VisualEditor</tvar>|VisualEditor]] and other tools.</translate>
TemplateData header
| #default=
This is the TemplateData documentation for this template used by VisualEditor and other tools.
TemplateData header
[[Category:Templates using TemplateData{{#translation:}}]]
}}
Inserts a brief header for the template data section. Adds the /doc subpage to [[:Category:TemplateData documentation{{#translation:}}]] and the template page to [[:Category:Templates using TemplateData{{#translation:}}]].
Usage
==TemplateData== or ==Parameters== or ==Usage==
{{TemplateData header}}
[[:Template:^(]]templatedata[[:Template:)^]]{
...
}[[:Template:^(]]/templatedata[[:Template:)^]]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.