Difference between revisions of "Template:TemplateData header"

From Project Robotica
Jump to navigation Jump to search
en>Evad37
(Replace {{Template error report}} with {{Template parameter usage}} – per edit request)
 
en>ExE Boss
(Fix broken transclusion including the <translate> tags)
Line 1: Line 1:
<div class="templatedata-header">{{#if:{{{noheader|}}}|<!--
<noinclude>
noheader:
<languages/>
-->{{Template parameter usage}}|<!--
<onlyinclude>{{#switch:<translate></translate>
+header:
|=
-->This is the {{#if:{{{nolink|}}}|<!--
<div class="templatedata-header"><!--
  +header, nolink TD
-->{{#if:{{yesno|{{{editlinks|}}}}}<!--
  -->TemplateData|<!--
-->|{{#ifexpr:<!--
  +header,  +link [[TD]]; DEFAULT:
-->{{#if:{{{docpage|}}}<!--
-->[[Wikipedia:TemplateData|TemplateData]]}}<!--
-->|{{#ifeq:{{FULLPAGENAME}}|{{transclude|{{{docpage}}}}}|0|1}}<!--
  e.o. #if:nolink; DEFAULT:
-->|not{{IsDocSubpage|false=0}}<!--
--> documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template parameter usage|lc=yes}}<!--
-->}}<!--
  e.o. #if:noheader
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{pagelang2}}|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>}}


'''TemplateData for {{{1|{{BASEPAGENAME}}}}}'''
'''{{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly><!--
</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=


check parameters
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:}}]].
-->{{#invoke:Check for unknown parameters|check
|unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}}
|template=Template:TemplateData header
|1 |nolink |noheader
|preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div>
}}<!--
-->{{template other|{{sandbox other||
[[Category:Templates using TemplateData]]


}}}}</includeonly><!--
== Usage ==
{{#tag:syntaxhighlight|
==TemplateData== or ==Parameters== or ==Usage==
{{((}}TemplateData header{{))}}
{{^(}}templatedata{{)^}}{
...
}{{^(}}/templatedata{{)^}}
|lang=html
}}


--><noinclude>{{Documentation}}</noinclude>
Use <code><nowiki>{{TemplateData header|Template name}}</nowiki></code> to display a name for the template other than the default, which is [[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>

Revision as of 00:10, 13 June 2021

<languages/>

This is the TemplateData documentation for this template used by VisualEditor and other tools.

TemplateData header

[[Category:Templates using TemplateData{{#translation:}}]]

Template documentation

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==
[[:Template:((]]TemplateData header[[:Template:))]]
[[: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}}.

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Template name

[[Category:Templates using TemplateData{{#translation:}}]]

Use {{TemplateData header|noheader=1}} to omit the first sentence of the header text.


TemplateData header

[[Category:Templates using TemplateData{{#translation:}}]]

Parameters

Template:TemplateData header/doc