Template:Indic

From Wikipedia, the free encyclopedia

This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages.
Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here.

[edit] Purpose and function

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.

[edit] Usage

Syntax:

{{indic
   | lang=
   | indic=
   | trans=
   | indic2=
   | trans2=
   | indic3=
   | trans3=
   | defaultipa=
   | defaultaudio=
   | indicipa=
   | indicaudio=
   | showlang=
   | showhelp=
}}

[edit] "lang"

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
lo Lao
ml Malayalam
mr Marathi
mn Mongolian
ne Nepali
or Oriya
pa Punjabi
sa Sanskrit
sd Sindhi
ta Tamil
te Telugu
th Thai
bo Tibetan
ur Urdu

[edit] "indic"

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 ';'.

[edit] "trans"

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 ';'.

[edit] "defaultipa"

The IPA text of the pronunciation of the word in English.

[edit] "defaultaudio"

An audio file indicating the pronunciation of the word in English.

[edit] "indicipa"

The IPA text of the pronunciation of the word in the source language.

[edit] "indicaudio"

An audio file indicating the pronunciation of the word in the source language.

[edit] "showlang"

Values: true/false Default: true

Indicates whether to show the language name.

[edit] "showhelp"

Values: true/false Default: true

Indicates whether to show the help icon.

[edit] Examples

{{indic|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā}}

Punjabiਗੁਰਦੁਆਰਾ, gurduārā [?]

{{indic|options=noname|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā}}

Punjabiਗੁਰਦੁਆਰਾ, gurduārā [?]

{{indic|lang=pa|indic=ਗੁਰਦੁਆਰਾ|trans=gurduārā|indic2=ਗੁਰਦਵਾਰਾ|trans2=gurdvārā|indic3=ਗੁਰਦ੍ਵਾਰਾ|trans3=gurdvārā}}

Punjabiਗੁਰਦੁਆਰਾ, gurduārāਗੁਰਦਵਾਰਾ, gurdvārāਗੁਰਦ੍ਵਾਰਾ, gurdvārā [?]

{{indic|lang=sa|indic=भारत गणराज्य|trans=bhārata gaṇarājya}}

Sanskritभारत गणराज्य, bhārata gaṇarājya [?]