Template:sa-convert/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:sa-convert. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template converts a Sanskrit word in Devanagari to Sanskrit in another script accepted by Wiktionary as being used for Sanskrit. It provides access to the function tr exported from Module:sa-convert, returning the word in that other script.

Parameters

[edit]
|1= (required)
The Devanagari form of the word.
|2= (required)
The Wiktionary script code of the other script, e.g. Sinh for the Sinhala script. Note that to obtain the Assamese spelling, one should use the Wiktionary script code as-Beng.

Examples

[edit]
{{l|sa|{{sa-convert|पचित्वा|Sinh}}}}

yields පචිත්‍වා (pacitvā).

{{l|sa|{{sa-convert|देव|as-Beng}}}}

yields দেৱ (deva).