Module:RQ:sa:K888


This module is a data module providing a catalogue of passages from one particular book or article for each passage to demonstrate the existence of multiple Sanskrit words. The modules returns a 3-D array (technically a Lua table), indexed as follows:

  1. The outer index is the page number.
  2. The second index is a character string serving as the name of the passage within the page - using the first word is the simplest scheme.
  3. The third index is an element number - the text (item 1), its transliteration (item 2) (optional) and its translation (item 3).

The table has one named element, "reference", that holds the name of the template (namely, {{RQ:sa:K888}}) used to identify the source to the reader and format the quote, its transliteration and its translation.

The intention is that the word will be highlighted when selected by these three indices. Words are assigned positive numbers and their boundaries are marked up in the form {number-word}. This mark up can be nested, so that words may contain other words. Different sections may have the same number; this allows for repeated words, overlapping words, and discontiguous translations.

The words are transcluded into a page using an invocation of the form {{RQ:sa:K888 quote|116|om|4}}; this example produces the text:

c. 1300 (date of inscription), Peter Skilling, “Namo Buddhāya Gurave (K. 888): Circulation of a Liturgical Formula across Asia”, in Journal of the Siam Society[1], volume 106 (overall work in English), published November 2018, page 116:
ឲំនមោវុទ្ធាយគុរវេ
នមោធម្ម៌ាយតាយណេ*
oṃ namo vuddhāya gurave
namo dharmmāya tāyaṇe*
Om. Homage to the Buddha, the teacher
Homage to the Dharma, the saviour
            *For translation, corrected to តាយិនេ (tāyine).
Opening lines of Praise of the Three Jewels (Triratnastotra), ascribed to Mātṛceṭa

There is no advantage in including a passage for the sake of one word; one can use {{RQ:sa:K888}} directly for that purpose.


local data = {}
data.reference = "RQ:sa:K888"

data[116] = {
om = {
	"{1-ឲំ}{2-នមោ}{3-វុទ្ធាយ}{4-គុរវេ}<br>{2-នមោ}{5-ធម្ម៌ាយ}{6-តាយណេ}*",
	"{1-oṃ} {2-namo} {3-vuddhāya} {4-gurave}<br>{2-namo} {5-dharmmāya} {6-tāyaṇe}*<br>",
	"{1-Om}.  {2-Homage} {3-to the Buddha}, {4-the teacher}<br>"..
		"{2-Homage} {5-to the Dharma}, {6-the saviour}<br>"..
		"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"..
			"*For translation, corrected to តាយិនេ (tāyine).<br>",
	}
}
return data