Jump to content

Module:RQ:pi:Sinhala Majjhimanikaya 1/documentation

Wiktionary වෙතින්

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 Pali 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:pi:Sinhala Majjhimanikaya 1}}) 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:pi:Sinhala Majjhimanikaya 1 quote|336|tassa25|31}}; this example produces the text:

2006, The Fourth Book in the Suttanta-Pitaka: Majjhimanikāya (I)[1], page 336:
තස‍්ස එවමස‍්ස: “අයං ඛො මහා උදකණ‍්ණවො ඔරිමං තීරං සාසඞ‍්කං සප‍්පටිභයං. පාරිමං තීරං ඛෙමං අප‍්පටිභයං. නත්‍ථි ච නාවා සන‍්තාරණී උත‍්තරසෙතු වා අපාරාපාරං ගමනාය.
Tassa evamassa: "ayaṃ kho mahā udakaṇṇavo orimaṃ tīraṃ sāsaṅkaṃ sappaṭibhayaṃ. Pārimaṃ tīraṃ khemaṃ appaṭibhayaṃ. Natthi ca nāvā santāraṇī uttarasetu vā apārāpāraṃ gamanāya.
Therefore things are thus: So, there's this large deluge, a dubious and perilous near shore, a safe far shore free of peril; and there is neither a ferry boat or a bridge to go from the near shore to the far shore.

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


"https://si.wiktionary.org/w/index.php?title=Module:RQ:pi:Sinhala_Majjhimanikaya_1/documentation&oldid=43812" වෙතින් සම්ප්‍රවේශනය කෙරිණි