Template:TemplateData header: Difference between revisions

From Wayne's Dusty Box of Words
m (dummy edit to update translation pages)
 
m (1 revision imported)
(No difference)

Revision as of 17:30, 21 December 2020

<languages/> {{#switch:<translate></translate> | =

{{#if:| |<translate> This is the [[<tvar|1>Special:MyLanguage/Help:TemplateData</>|TemplateData]] documentation for this template used by [[<tvar|2>Special:MyLanguage/VisualEditor</>|VisualEditor]] and other tools.</translate>}}

TemplateData header

| #default=

 {{#switch:

| =

{{#if:| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

TemplateData header

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }}

{{#if:Inserts a brief header for the template data section. Adds the page to Category:TemplateData documentation.

Usage

==TemplateData== or ==Parameters== or ==Usage==
{{TemplateData header}}
<templatedata>{
...
}</templatedata>

Use {{TemplateData header|Template name}} to display a name for the template other than the default, which is {{BASEPAGENAME}}.

Template:(|

|{{#switch:<translate></translate> | =

{{#if:| |<translate> This is the [[<tvar|1>Special:MyLanguage/Help:TemplateData</>|TemplateData]] documentation for this template used by [[<tvar|2>Special:MyLanguage/VisualEditor</>|VisualEditor]] and other tools.</translate>}}

Template name

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 {{#switch:

| =

{{#if:| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

Template name

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} |Template:)

Use {{TemplateData header|nolink=1}} to omit the wikilink from the word "TemplateData" in the header text, for instances where it is already linked outside this template.

Template:(|

|{{#switch:<translate></translate> | =

{{#if:| |<translate> This is the [[<tvar|1>Special:MyLanguage/Help:TemplateData</>|TemplateData]] documentation for this template used by [[<tvar|2>Special:MyLanguage/VisualEditor</>|VisualEditor]] and other tools.</translate>}}

TemplateData header

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 {{#switch:

| =

{{#if:| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

TemplateData header

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} |Template:)

Use {{TemplateData header|noheader=1}} to omit the first sentence of the header text.

Template:(|

|{{#switch:<translate></translate> | =

{{#if:1| |<translate> This is the [[<tvar|1>Special:MyLanguage/Help:TemplateData</>|TemplateData]] documentation for this template used by [[<tvar|2>Special:MyLanguage/VisualEditor</>|VisualEditor]] and other tools.</translate>}}

TemplateData header

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 {{#switch:

| =

{{#if:1| |This is the TemplateData documentation for this template used by VisualEditor and other tools.}}

TemplateData header

{{#ifeq:TemplateData header|sandbox||}}

| #default=

 Lua error: expandTemplate: template loop detected.

}} }} |Template:)

Parameters

Template:TemplateData header/doc| [[Category:Template documentation pages{{#translation:}}]] }}