Template:km-usex

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Khmer example template, relying on Module:km function 'usex'.

Logic

[edit]

Words are separated by spaces, and orthographic spaces in Khmer text are represented by double spaces.

Transcriptions are grabbed from the arguments in the {{km-IPA}} template in the respective articles. Thus it is best to have all articles used in the example sentence created a priori. Alternatively you could specify the phonetic Khmer spelling for a particular word by putting {PHONETIC} after the word.

Only when transcription of all individual terms is successful will the template not return an error; if an error is produced, please consider creating the red-linked term in the usage example.

No need to manually boldify the entry title if it is found as one of the words in the example sentence.

|tr= parameter should not be used.

Examples

[edit]
{{km-x|ភាសា ខ្មែរ|Khmer (language)}}

ភាសាខ្មែរ  ―  phiəsaa khmae  ―  Khmer (language)

{{km-x|ខ្មែរ ក្រហម|Khmer Rouge}}

ខ្មែរក្រហម  ―  khmae krɑhɑɑm  ―  Khmer Rouge