|
|
| Line 1: |
Line 1: |
| <noinclude>
| |
| <languages/>
| |
| <onlyinclude>{{#switch:
| |
| |=
| |
| <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}};}}<!--
| |
| -->}}<!--
| |
| -->}}
| |
| {{#if:{{{noheader|}}}||This is the [[Special:MyLanguage/Help:TemplateData|TemplateData]] documentation for this template used by [[Special:MyLanguage/VisualEditor|VisualEditor]] and other tools.}}
| |
|
| |
|
| '''{{{1|{{BASEPAGENAME}}}}}'''
| |
| </div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
| |
| -->|{{#if:{{IsDocSubpage|false=}}<!--
| |
| -->|[[Category:TemplateData documentation{{#translation:}}]]<!--
| |
| -->|[[Category:Templates using TemplateData{{#translation:}}]]<!--
| |
| -->}}<!--
| |
| -->}}</includeonly>
| |
| | #default=
| |
| {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}
| |
| }}</onlyinclude>
| |
| {{Documentation|content=
| |
|
| |
| 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}}.
| |
|
| |
| == Usage ==
| |
| {{#tag:syntaxhighlight|
| |
| ==TemplateData== or ==Parameters== or ==Usage==
| |
| {{((}}TemplateData header{{))}}
| |
| {{^(}}templatedata{{)^}}{
| |
| ...
| |
| }{{^(}}/templatedata{{)^}}
| |
| |lang=html
| |
| }}
| |
|
| |
| 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>}}.
| |
|
| |
| <dl><dd>
| |
| {{TemplateData header|Template name}}
| |
| </dd></dl>
| |
|
| |
| Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
| |
|
| |
| <dl><dd>
| |
| {{TemplateData header|noheader=1}}
| |
| </dd></dl>
| |
|
| |
| ==Parameters==
| |
| {{TemplateData header/doc}}
| |
|
| |
| }}
| |
| </noinclude>
| |