Template:TemplateData header/en
<languages/> {{#switch: |=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
TemplateData header
| #default=
{{#switch:
|=
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
TemplateData header
{{#ifeq:en|sandbox||{{#if:{{#ifexpr: (
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
Lua error: expandTemplate: template loop detected.
}} }} 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'''.{{#if:Inserts a brief header for the template data section. Adds the /doc subpage to {{#ifeq:Category:TemplateData documentation|
|
|{{#if: |{{#if: | |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}TemplateData documentation/Page_display_title}} | nsp = 0 }} }} |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}TemplateData documentation/Page_display_title}} }} }} |{{#if: |{{#if:TemplateData documentation |TemplateData documentation |Category:TemplateData documentation }} |Category:TemplateData documentation }}
}}}}{{#ifeq:Category:TemplateData documentation|
|
}}
and the template page to {{#ifeq:Category:Templates using TemplateData||
|{{#if: |{{#if: | |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Templates using TemplateData/Page_display_title}} | nsp = 0 }} }} |{{ {{#if:|{{{template}}}|Translations:{{#if:Category|Category:}}Templates using TemplateData/Page_display_title}} }} }} |{{#if: |{{#if:Templates using TemplateData |Templates using TemplateData |Category:Templates using TemplateData }} |Category:Templates using TemplateData }}
}}}}{{#ifeq:Category:Templates using TemplateData|
|
}}
.Usage
==TemplateData== or ==Parameters== or ==Usage==
[[:Template:((]]TemplateData header[[:Template:))]]
[[:Template:^(]]templatedata[[:Template:)^]]{
...
}[[:Template:^(]]/templatedata[[:Template:)^]]
Use Template:Tmpl to display a name for the template other than the default, which is {{#ifeq:Help:Magic words|
|
}}{{#if:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{BASEPAGENAME}}}}{{#ifeq:Help:Magic words|
|
}}
.-
{{#switch:<translate></translate>
|=
{{#if:{{safesubst:#switch:{{#ifeq:en|sandbox||{{#if:{{#ifexpr: (
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||<translate> 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>}}
Template name
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
{{#switch:
|=
{{#if:{{safesubst:#switch:{{#ifeq:en|sandbox||{{#if:{{#ifexpr: (|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
Template name
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
Lua error: expandTemplate: template loop detected.
}} }}
Use {{TemplateData header|noheader=1}}
to omit the first sentence of the header text.
-
{{#switch:<translate></translate>
|=
{{#if:{{safesubst:#switch:{{#ifeq:en|sandbox||{{#if:{{#ifexpr: (
|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:1||<translate> 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 header
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
{{#switch:
|=
{{#if:{{safesubst:#switch:{{#ifeq:en|sandbox||{{#if:{{#ifexpr: (|no |n |false |0 = | = |¬ = |yes |y |true |1 = yes |#default = yes
}}|{{#ifexpr:{{#if:|{{#ifeq:Template:TemplateData header/en|Template:Transclude|0|1}}|not{{#ifexpr: ( {{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|0}}}}|Template:Navbar}}}} {{#if:1||This is the TemplateData documentation for this template used by VisualEditor and other tools.}}
TemplateData header
{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=
Lua error: expandTemplate: template loop detected.
}} }}
Parameters
Template:TemplateData header/doc| [[Category:Template documentation pages{{#translation:}}]] }}