Template:TemplateData header: Difference between revisions

From Project: Redcap
mediawiki>ExE Boss
(Fix broken transclusion including the <translate> tags)
 
m (1 revision imported: Navbox template)
 
(2 intermediate revisions by 2 users not shown)
Line 10: Line 10:
-->|not{{IsDocSubpage|false=0}}<!--
-->|not{{IsDocSubpage|false=0}}<!--
-->}}<!--
-->}}<!--
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{pagelang2}}|left|right}};}}<!--
-->|{{Navbar|{{{docpage|{{BASEPAGENAME}}/doc}}}|plain=1|brackets=1|style=float:{{dir|{{PAGELANGUAGE}}|left|right}};}}<!--
-->}}<!--
-->}}<!--
-->}}
-->}}
Line 27: Line 27:
{{Documentation|content=
{{Documentation|content=


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:}}]].
<translate><!--T:3--> Inserts a brief header for the template data section.</translate>
<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>


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


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>]].
<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>
<dl><dd>
{{TemplateData header|Template name}}
{{TemplateData header|Template name}}
</dd></dl>
</dd></dl>


Use <code><nowiki>{{TemplateData header|noheader=1}}</nowiki></code> to omit the first sentence of the header text.
<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>
<dl><dd>
{{TemplateData header|noheader=1}}
{{TemplateData header|noheader=1}}
</dd></dl>
</dd></dl>


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


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

Latest revision as of 08:21, 10 November 2024

<languages/>

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

TemplateData header

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

Lua error: Module:TNT:172: '''Missing JsonConfig extension, or not properly configured; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab. See https://www.mediawiki.org/wiki/Extension:JsonConfig#Supporting_Wikimedia_templates'''.[[Category:Template documentation pages{{#translation:}}]]