Template:Translation table
Example:
| English | Spanish |
|---|---|
| hi | hola |
| one | uno |
| two | dos |
| three | tres |
| four | cuatro |
| five | cinco |
| six | seis |
| seven | siete |
| eight | ocho |
| nine | nueve |
| ten | diez |
| goodbye | adiós |
It is recommended to use the source editor when editing using this template.
| This template uses Lua: |
Usage
This template renders a two-column translation table using the language codes provided by the user. It supports both named and unnamed (positional) text/translation pairs.
Syntax
{{Translation table
|lang1code=es
|lang2code=en
|hola|hello
|uno|one
|dos|two
}}
| Spanish | English |
|---|---|
| hola | hello |
| uno | one |
| dos | two |
You can also use named pairs for the same effect:
{{Translation table
|lang1code=ja
|lang2code=en
|text1=ありがとう |trans1=thank you
|text2=さようなら |trans2=goodbye
}}
| Japanese | English |
|---|---|
| ありがとう | thank you |
| さようなら | goodbye |
Notes
- Uses {{Lang}} under the hood for accessibility (adds lang attribute).
- Accepts italic/bold/link formatting (via `Langx`).
- Automatically derives column headers using {{ISO 639 name}}.
TemplateData
TemplateData for Translation table
Renders a two-column translation table using language codes and the {{Lang}} template for proper internationalization. It is not recommended to use this template while using the visual editor.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Language 1 code | lang1code lang1 | Language code for the first column (e.g. 'es' for Spanish)
| String | required |
| Language 2 code | lang2code lang2 | Language code for the second column (e.g. 'en' for English)
| String | required |
| Use "wikitext" table class | wikitextclass | Whether or not to set the table class to "wikitext". This will not affect your ability to put wikitext into the table.
| Boolean | optional |
| Show Romanization | showromanization | Shows romaji/pinyin/etc.
| Boolean | optional |
| Sortable | sortable | If the table should be sortable or not
| Boolean | optional |
| First text value | text1 | First source-language word or phrase
| String | optional |
| First translation | trans1 | First translated word or phrase
| String | optional |
| Second text value | text2 | no description | String | optional |
| Second translation | trans2 | no description | String | optional |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.