Jump to content

Template:TemplateData header: Difference between revisions

no edit summary
m (1 revision imported: Importing template code from MediaWiki)
No edit summary
Line 13: Line 13:
-->}}<!--
-->}}<!--
-->}}
-->}}
{{#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>}}
{{#if:{{{noheader|}}}||<translate><!--T:1--> This is the TemplateData documentation for this template used by VisualEditor and other tools.</translate>}}


'''{{{1|{{BASEPAGENAME}}}}}'''
'''{{{1|{{BASEPAGENAME}}}}}'''
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
</div><includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|<!--
-->|{{#if:{{IsDocSubpage|false=}}<!--
-->|{{#if:{{IsDocSubpage|false=}}<!--
-->|[[Category:TemplateData documentation{{#translation:}}]]<!--
-->|[[Category:TemplateData documentation]]<!--
-->|[[Category:Templates using TemplateData{{#translation:}}]]<!--
-->|[[Category:Templates using TemplateData]]<!--
-->}}<!--
-->}}<!--
-->}}</includeonly>
-->}}</includeonly>
| #default=
| #default=
  {{#invoke:Template translation|renderTranslatedTemplate|template=Template:TemplateData header|noshift=1|uselang={{#if:{{pagelang}}|{{pagelang}}|{{int:lang}}}}}}
}}</onlyinclude>
}}</onlyinclude>
{{Documentation|content=
{{Documentation|content=


<translate><!--T:3--> Inserts a brief header for the template data section.</translate>
<!--T:3--> Inserts a brief header for the template data section.
<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>
<!--T:4--> Adds the /doc subpage to {{ll|Category:TemplateData documentation}} and the template page to {{ll|Category:Templates using TemplateData}}.
 


<translate>
== Usage == <!--T:2-->
== Usage == <!--T:2-->
</translate>
 
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
==TemplateData== or ==Parameters== or ==Usage==
==TemplateData== or ==Parameters== or ==Usage==
Line 42: Line 41:
}}
}}


<translate>
 
<!--T:5-->
<!--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>.
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>}}.
</translate>
 


<dl><dd>
<dl><dd>
Line 51: Line 50:
</dd></dl>
</dd></dl>


<translate>
<!--T:6-->
<!--T:6-->
Use <tvar name="1"><code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code></tvar> to omit the first sentence of the header text.
Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
</translate>
 


<dl><dd>
<dl><dd>
Line 60: Line 58:
</dd></dl>
</dd></dl>


<translate>
 
==Parameters== <!--T:7-->
==Parameters== <!--T:7-->
</translate>
 
{{TemplateData header/doc}}
{{TemplateData header/doc}}


}}
}}
</noinclude>
</noinclude>