Template:TemplateData header/en

From Anarchaserver

<languages/> {{#switch: |=

{{#if:{{safesubst:#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:en|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:

|=

{{#if:{{safesubst:#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:en|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:en|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 Lua error: expandTemplate: template loop detected.

}} }} Lua error: Module:TNT:158: 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 [[: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}}.

{{#switch:<translate></translate> |=
{{#if:{{safesubst:#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:en|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|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 {{#switch:

|=

{{#if:{{safesubst:#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:en|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|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:en|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:
|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:en|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|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:en|1|0}} ) )|1|}}|[[Category:TemplateData documentation{{#translation:}}]]|[[Category:Templates using TemplateData{{#translation:}}]]}}}} | #default=

 {{#switch:

|=

{{#if:{{safesubst:#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:en|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|sandbox||{{#if:{{#ifexpr: (

{{#ifeq:en|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:templatedata header/en|-1|-2}}|doc|1|0}} and {{#if:en|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:}}]] }}