قالب:Translation table/doc

It is recommended to use the source editor when editing using this template.

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
}}
Output
خطأ: لا توجد وحدة بهذا الاسم "TableTranslation".

You can also use named pairs for the same effect:

{{Translation table
|lang1code=ja
|lang2code=en
|text1=ありがとう |trans1=thank you
|text2=さようなら |trans2=goodbye
}}
Output
خطأ: لا توجد وحدة بهذا الاسم "TableTranslation".

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

This is the بيانات القالب documentation for this template used by المحرر المرئي وأدوات أخرى.

See the monthly error report for this template.

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.

وسائط القالب

وسيطوصفنوعحالة
Language 1 codelang1code lang1

Language code for the first column (e.g. 'es' for Spanish)

مثال
es
نصمطلوب
Language 2 codelang2code lang2

Language code for the second column (e.g. 'en' for English)

مثال
en
نصمطلوب
Use "wikitext" table classwikitextclass

Whether or not to set the table class to "wikitext". This will not affect your ability to put wikitext into the table.

قيمة تلقائية
true
بوليانياختياري
Show Romanizationshowromanization

Shows romaji/pinyin/etc.

غيابي
false
قيمة تلقائية
false
بوليانياختياري
Sortablesortable

If the table should be sortable or not

غيابي
false
قيمة تلقائية
false
بوليانياختياري
First text valuetext1

First source-language word or phrase

مثال
hola
نصاختياري
First translationtrans1

First translated word or phrase

مثال
hello
نصاختياري
Second text valuetext2

دون وصف

نصاختياري
Second translationtrans2

دون وصف

نصاختياري