Jump to content

Template:Foreign language text table/doc

From Wikipedia, the free encyclopedia

Usage

[edit]

Example input: {{Foreign language text table |lang1=en|lang2=es |text1=Hi|trans1=Hola |text2=How are you?|trans2=¿Cómo estás?}} will output:

English Spanish
Hi Hola
How are you? ¿Cómo estás?


TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Foreign language text table in articles based on its TemplateData.

TemplateData for Foreign language text table

This template generates a table with up to ten rows of information in one language and one field each to be translated into another language.

Template parameters

ParameterDescriptionTypeStatus
Origin languagelang1 from origin language1

The two- or three-letter symbol for the origin language. The template will convert this to the full language name, e.g. "en" → "English".

Example
en
Stringrequired
Target languagelang2 to target language2

The two- or three-letter symbol for the target language. The template will convert this to the full language name, e.g. "es" → "Spanish".

Example
es
Stringrequired
text1text1 original1

The first line of the original text.

Stringrequired
trans1trans1 translation1

The first line of the translated text.

Stringrequired
text2text2 original2

The second line of the original text.

Stringrequired
trans2trans2 translation2

The second line of the translated text.

Stringrequired
text3text3 original3

The third line of the original text.

Stringoptional
trans3trans3 translation3

The third line of the translated text.

Stringoptional
text4text4 original4

The fourth line of the original text.

Stringoptional
trans4trans4 translation4

The fourth line of the translated text.

Stringoptional
text5text5 original5

The fifth line of the original text.

Stringoptional
trans5trans5 translation5

The fifth line of the translated text.

Stringoptional
text6text6 original6

The sixth line of the original text.

Stringoptional
trans6trans6 translation6

The sixth line of the translated text.

Stringoptional
text7text7 original7

The seventh line of the original text.

Stringoptional
trans7trans7 translation7

The seventh line of the translated text.

Stringoptional
text8text8 original8

The eighth line of the original text.

Stringoptional
trans8trans8 translation8

The eighth line of the translated text.

Stringoptional
text9text9 original9

The ninth line of the original text.

Stringoptional
trans9trans9 translation9

The ninth line of the translated text.

Stringoptional
text10text10 original10

The tenth line of the original text.

Stringoptional
trans10trans10 translation10

The tenth line of the translated text.

Stringoptional