Template:TemplateData header: Difference between revisions

From fattwiki
m (1 revision imported)
(Marked this version for translation)
Line 1: Line 1:
<div class="templatedata-header">{{#if:{{{noheader|}}}|<!--
<noinclude>
noheader:
<languages/>
-->{{Template parameter usage|based=y}}|<!--
<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}}<!--
--> for this template used by [[mw:Extension:TemplateWizard|TemplateWizard]], [[Wikipedia:VisualEditor|VisualEditor]] and other tools. {{Template parameter usage|based=y}}<!--
-->}}<!--
  e.o. #if:noheader
-->|{{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>}}


'''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
<translate><!--T:3--> Inserts a brief header for the template data section.</translate>
-->{{#invoke:Check for unknown parameters|check
<translate><!--T:4--> Adds the <tvar name=1>/doc</tvar> subpage to <tvar name=2>{{ll|Category:TemplateData documentation}}</tvar> and the template page to <tvar name=3>{{ll|Category:Templates using TemplateData}}</tvar>.</translate>
|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><!--
<translate>
== Usage == <!--T:2-->
</translate>
{{#tag:syntaxhighlight|
==TemplateData== or ==Parameters== or ==Usage==
{{((}}TemplateData header{{))}}
{{^(}}templatedata{{)^}}{
...
}{{^(}}/templatedata{{)^}}
|lang=html
}}


--><noinclude>{{Documentation}}</noinclude>
<translate>
<!--T:5-->
Use {{<tvar name=1>tmpl|0=<code>{{((}}TemplateData header{{!}}$1{{))}}</code></tvar>|Template name}} to display a name for the template other than the default, which is <tvar name="2">{{ll|Help:Magic words#Variables|<nowiki>{{BASEPAGENAME}}</nowiki>}}</tvar>.
</translate>
 
<dl><dd>
{{TemplateData header|Template name}}
</dd></dl>
 
<translate>
<!--T:6-->
Use <tvar name="1"><code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code></tvar> to omit the first sentence of the header text.
</translate>
 
<dl><dd>
{{TemplateData header|noheader=1}}
</dd></dl>
 
<translate>
==Parameters== <!--T:7-->
</translate>
{{TemplateData header/doc}}
 
}}
</noinclude>

Revision as of 22:03, 5 September 2023

<languages/> Script error: No such module "Template translation".

Usage

==TemplateData==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>