Template:Infobox Buddhist term/doc

Purpose
The purpose of this template, Infobox Buddhist term, is to display a set of term-specific translations from languages historically associated with Buddhist texts. For this template, these languages are: Sanskrit, Pali, Assamese, Burmese (Myanmar), Chinese, Indonesian, Japanese, Khmer, Korean, Lao, Malay, Marathi, Mongolian, Mon, Shan, Sinhala, Sinhala, Tibetan, Tamil, Tagalog, Thai, Vietnamese

Since this template is for the English-language Wikipedia, an English-language translation (if provided) is displayed at the top of the table.

Parameters
The parameters are:


 * title = OPTIONAL (if not specified, then the "pi" or "sa" parameter is used for the title)
 * collapsible = OPTIONAL (disabled by default; set to YES to enable)
 * image = Image
 * image_size = Size of image
 * caption = Image caption
 * en = English translation
 * sa = Sanskrit; note: if "title" and "pi" are both not provided, then this value is the defaulted title and should be provided in IAST, otherwise it should be in Devanagari
 * sa-Latn = Sanskrit IAST transliteration; use this if "sa" is provided in Devanagari
 * pi = Pali; note: if "title" is not provided, then this value is the defaulted title and should be provided in IAST, otherwise it should be provided in an appropriate script
 * pi-Latn = Pali IAST transliteration; use this if "pi" is provided in a non-Latin script
 * as = Assamese
 * as-Latn = Assamese transliteration
 * bn = Bengali
 * bn-Latn = Bengali transliteration
 * my = Burmese/Myanmar
 * my-Latn = Burmese MLCTS transliteration
 * zh = Chinese
 * zh-Hans = Chinese in simplified Chinese characters; use this if "zh" is given in traditional Chinese characters, otherwise leave this parameter blank
 * zh-Hant = Chinese in traditional Chinese characters; use this if "zh" is given in simplified Chinese characters
 * zh-Latn = Chinese in Pinyin transcription
 * id = Indonesian
 * ja = Japanese
 * ja-Hani = Japanese Kanji
 * ja-Kana = Japanese in Katakana
 * ja-Latn = Japanese Rōmaji transliteration
 * km = Khmer
 * km-Latn = Khmer UNGEGN transliteration
 * ko = Korean
 * ko-Hani = Korean Hanja
 * ko-Latn = Korean RR transliteration
 * lo = Lao
 * lo-Latn = Lao transliteration
 * ms = Malay
 * mnw = Mon
 * mnw-Latn = Mon IPA transcription
 * mn = Mongolian
 * mn-Latn = Mongolian transliteration
 * mr = Marathi
 * mr-Latn = Marathi transliteration
 * shn = Shan
 * shn-Latn = Shan IPA transcription
 * si = Sinhalese
 * si-Latn = Sinhalese transliteration
 * bo = Tibetan
 * bo-Latn = Tibetan transliteration; please specify by adding " Wylie: " or " THL: " or " ZWPY: " before the transliteration but after the "=". Multiple transcriptions may be listed if each is separated with "  ". (All this is demonstrated in the examples below.)
 * ta = Tamil
 * ta-Latn = Tamil transliteration
 * tl = Tagalog
 * tl-tglg = Tagalog Baybayin
 * th = Thai
 * th-Latn = Thai RTGS transliteration
 * vi = Vietnamese
 * vi-Hani = Vietnamese Chữ Nôm
 * pr = Prakrit

Required parameters: Either "title" or "sa" (Sanskrit) or "pi" (Pali) is a required parameter. Additionally, optional transcription parameters will not be displayed unless the main language parameter is provided. ie. zh-Hant will not be displayed unless zh is also filled in.

Display order: Above is the actual order in which provided translations are displayed regardless of the order in which the parameters are passed to this template.

Multiword values: Language-specific parameters can be passed multiword strings as demonstrated in the examples below.

Examples
For all examples the template code on the left displays as shown on the right.

Example 1, basic demonstration
Self-explanatory.

Example 2, Pali-parameter title demonstration
Listing a title may not be needed.

Example 3, Sanskrit-parameter title demonstration
This example shows what happens if no English or Pali translation is provided. It also shows what happens if you list a trancription without filling in the main language parameter (ie. nothing, the template ignores it).

Example 4, English titles
The "en" parameter can be left blank or omitted if the English translation is the title, however, if there are multiple English translations which are in wide circulation it may help to list them under "en" with only the single most relevant translation being listed in the title.

Example 5, collapsability demonstration
If there are a lot of entries it may be worth enabling collapsibility.

Example 6, order is irrelevant
Although order is irrelevant for how the template displays, it is polite to leave things in order so editors can more easily change whatever needs changing.

Example 7, two ways of Wiki-interlinking
Interlinking non-English language Wikipedia pages can be done by directly specifying the language and page title of the desired destination article with " EXAMPLE " where "eg" is the letter sequence specifying the language in the URL ("en" for English, "ja" for Japanese", "zh" for Chinese, and so on).

Interlinking to Wiktionary can be done with " ".

In this example the modern Vietnamese links to the relevant article on Vietnamese Wikipedia, while the traditional Chữ Nôm example links to Wiktionary. Interlinking is unnecessary but may be helpful on pages where the English-language Wikipedia article is a stub but where the corresponding article on another language Wikipedia is more informative.