Template:Foreign language text table
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? |
Formatting-wise, the contents in each table cell will be displayed as if they had been used with the Langx template. For example, the Spanish text above will show the same way as {{Langx|es|Hola}}
and {{Langx|es|¿Cómo estás?}}
.
TemplateData
[edit]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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Origin language | lang1 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".
| String | required |
Target language | lang2 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".
| String | required |
text1 | text1 original1 | The first line of the original text. | String | required |
trans1 | trans1 translation1 | The first line of the translated text. | String | required |
text2 | text2 original2 | The second line of the original text. | String | required |
trans2 | trans2 translation2 | The second line of the translated text. | String | required |
text3 | text3 original3 | The third line of the original text. | String | optional |
trans3 | trans3 translation3 | The third line of the translated text. | String | optional |
text4 | text4 original4 | The fourth line of the original text. | String | optional |
trans4 | trans4 translation4 | The fourth line of the translated text. | String | optional |
text5 | text5 original5 | The fifth line of the original text. | String | optional |
trans5 | trans5 translation5 | The fifth line of the translated text. | String | optional |
text6 | text6 original6 | The sixth line of the original text. | String | optional |
trans6 | trans6 translation6 | The sixth line of the translated text. | String | optional |
text7 | text7 original7 | The seventh line of the original text. | String | optional |
trans7 | trans7 translation7 | The seventh line of the translated text. | String | optional |
text8 | text8 original8 | The eighth line of the original text. | String | optional |
trans8 | trans8 translation8 | The eighth line of the translated text. | String | optional |
text9 | text9 original9 | The ninth line of the original text. | String | optional |
trans9 | trans9 translation9 | The ninth line of the translated text. | String | optional |
text10 | text10 original10 | The tenth line of the original text. | String | optional |
trans10 | trans10 translation10 | The tenth line of the translated text. | String | optional |
![]() | This template has not been added to any categories. Please help out by adding categories to it so that it can be listed with similar templates. |