Bản mẫu:Indic
Bản mẫu này sử dụng những tính năng phức tạp của cú pháp bản mẫu.
Bạn được khuyến khích làm quen với cấu trúc của bản mẫu này và các hàm cú pháp trước khi sửa đổi bản mẫu. Nếu sửa đổi của bạn gây ra lỗi không mong muốn, hãy sửa chữa hoặc lùi lại nhanh chóng, vì bản mẫu này có thể xuất hiện trên một số lượng lớn trang. |
Purpose and function[sửa mã nguồn]
This template is designed to unify the various transliteration schemes and styles employed for Indic scripts. It aims to provide a standard way of representing transliterations.
See Wikipedia:Naming conventions (Indic) for full guidelines for when to use this template.
Usage[sửa mã nguồn]
Syntax:
{{indic | lang= | indic= | trans= | indic2= | trans2= | indic3= | trans3= | defaultipa= | defaultaudio= | indicipa= | indicaudio= | showlang= | showhelp= }}
"lang"[sửa mã nguồn]
The two letter language code (or three letters if the two letter one does not exist) indicating the language of the text. The following languages are recognised by this template:
Code | Language |
---|---|
as | Assamese |
bn | Bengali |
my | Burmese |
dz | Dzongkha |
gu | Gujarati |
hi | Hindi |
kn | Kannada |
ks | Kashmiri |
km | Khmer |
kon | Konkani (Goan) |
gom | Konkani (Goan) |
lo | Lao |
ml | Malayalam |
mr | Marathi |
mn | Mongolian |
ne | Nepali |
or | Oriya |
pa | Punjabi |
sa | Sanskrit |
sd | Sindhi |
ta | Tamil |
tcy | Tulu |
te | Telugu |
th | Thai |
bo | Tibetan |
ur | Urdu |
The language code for Konkani (Goan) is gom. Do not use kon, which would mean Kongo.
"indic"[sửa mã nguồn]
The Indic script version of the text. You may use indic2
and indic3
for alternative spellings in the same language (although they can be different scripts). If you need to show a different language, use another instance of this template separated by a semi-colon ';'.
"trans"[sửa mã nguồn]
The transliteration of the source script. You may use indic2
and indic3
for alternative spellings in the same language (although they can be different scripts). If you need to show a different language, use another instance of this template separated by a semi-colon ';'.
"defaultipa"[sửa mã nguồn]
The IPA text of the pronunciation of the word in English.
"defaultaudio"[sửa mã nguồn]
An audio file indicating the pronunciation of the word in English.
"indicipa"[sửa mã nguồn]
The IPA text of the pronunciation of the word in the source language.
"indicaudio"[sửa mã nguồn]
An audio file indicating the pronunciation of the word in the source language.
"showlang"[sửa mã nguồn]
Values: true/false Default: true
Indicates whether to show the language name.
"showhelp"[sửa mã nguồn]
Values: true/false Default: true
Indicates whether to show the help icon.
Examples[sửa mã nguồn]
{{indic|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā}}
tiếng Punjab: ਗੁਰਦੁਆਰਾ, gurduārā ?
{{indic|options=noname|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā}}
tiếng Punjab: ਗੁਰਦੁਆਰਾ, gurduārā ?
{{indic|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā|indic2=ਗੁਰਦਵਾਰਾ|trans2=gurdvārā|indic3=ਗੁਰਦ੍ਵਾਰਾ|trans3=gurdvārā}}
tiếng Punjab: ਗੁਰਦੁਆਰਾ, gurduārā, ਗੁਰਦਵਾਰਾ, gurdvārā, ਗੁਰਦ੍ਵਾਰਾ, gurdvārā ?
{{indic|lang=sa|indic=भारत गणराज्य|trans=bhārata gaṇarājya}}
tiếng Phạn: भारत गणराज्य, bhārata gaṇarājya ?