Template:km-new

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

Khmer autocreation template, relying on Module:km function new.

Must be substituted.

Usage[edit]

Basic structure[edit]

{{subst:km-new|PHONETIC_RESPELLING|POS|DEF}}

Example[edit]

បរិយោសាន (paʼreyaosaan):

{{subst:km-new|ប៉ៈ-រ៉ិ-យ៉ោ-សាន|n|[[end]]; [[ending]]}}

Core parameters[edit]

  • |1= (optional)
    Phonetic respelling. Syllables should be separated by hyphens or spaces. Multiple respellings are separated by commas.
  • |2= (optional)
    Part of speech. Acronyms are accepted and preferred. Default is 'n' if empty. See pos_table in Module:km#new for a list of acronyms.
  • |3= (compulsory... well, it gives {{rfdef}} if you insist on leaving it blank)
    Definition.

Other parameters[edit]

- More PoS

  • |4=
    Second part of speech.
  • |5=
    Definition for the second part of speech.
  • |6=
    Third part of speech.
  • |7=
    Definition for the third part of speech.

- Head

  • |head=
    Feeds the |head= parameter in headword templates. Trick is that if phonetic respelling is simply a syllable-divided version of pagetitle, it will be used to generate the 'head' parameter in headword templates automatically if no |head= is given here.

- Wikipedia

  • |wp=y
    Wikipedia link.

- Etymology

  • |e=
    Etymology text. (unformatted)

-- Other words: No brackets needed in these parameters.

  • |alt=, |alt2=, |alt3=, |alt4=
    Alternative forms.
  • |syn=, |syn2=, |syn3=, |syn4=
    Synonyms.
  • |ant=, |ant2=, |ant3=, |ant4=
    Antonyms.
  • |der=, |der2=, |der3=, |der4=
    Derived terms.
  • |also=, |also2=, |also3=, |also4=
    See-also terms.

-- Others

  • |cat=
    Category.

More examples[edit]

ភ្នំពេញ (phnum pɨñ):

{{subst:km-new|ភ្នំ ពេញ|pn|[[Phnom Penh]]|head=[[ភ្នំ]][[ពេញ]]}}

ទម្ងន់ (tumngŭən):

{{subst:km-new|||[[weight]]; [[load]]}}

បណ្ណ (bɑnnɑɑ):

{{subst:km-new|ប័ណ,ប៉័ណ្ណៈ||[[card]]; [[note]]; [[ticket]], [[coupon]]
#: {{km-x|អាហារ បណ្ណ|menu}}|e=From {{bor|km|pi|paṇṇa}}.|alt=ប័ត្រ}}