ထလာ်တိတ်အာနကဵုမာတိကာညိ

ထာမ်ပလိက်:sw-noun

နူ ဝိက်ရှေန်နရဳ

kitu  VII တန် (ကိုန်ဗဟုဝစ် vitu  VIII တန်)


This template creates headword lines for Swahili nouns; it should be functional for every type of noun in Swahili. Use it directly under the “Noun” header (e.g. for kitu (thing)):

==သဝါတ်ဟဳလဳ==

===နာမ်===
{{sw-noun|ki-vi}}

# အရာ။

In default use, the template takes two unnamed parameters, the first of which is required and the second of which is optional, as well as |head=. Additional parameters are |anim= (to specify animacy) and |coll= (to tell the template there is a second plural in ma-). There are several use cases.

  • The simplest case is when the plural is formed by replacing the noun prefix. In this case, the first unnamed parameter is the singular prefix and the plural prefix, connected by a hyphen (both lowercase). The template will figure out the rest:
    On the page kitu,
    {{sw-noun|ki-vi}} gives
    kitu  VII တန် (ကိုန်ဗဟုဝစ် vitu  VIII တန်)
    On the page Mkenya,
    {{sw-noun|m-wa}} gives
    Mkenya  I တန် (ကိုန်ဗဟုဝစ် Wakenya  II တန်)
    On the page kituo cha basi,
    {{sw-noun|ki-vi}} gives
    kituo cha basi  VII တန် (ကိုန်ဗဟုဝစ် vituo vya basi  VIII တန်)
  • If the word is in ji-ma class(V/VI), is prefixless in singular, and has its plural with a simple ma- prefix; or if the word is in n class(IX/X) and its plural is identical to its singular; then the first unnamed parameter can be set to |ma or |n respectively:
    On the page kao,
    {{sw-noun|ma}} gives
    kao  V တန် (ကိုန်ဗဟုဝစ် makao  VI တန်)
    On the page pembe,
    {{sw-noun|n}} gives
    pembe  IX တန် (ကိုန်ဗဟုဝစ် pembe  X တန်)
  • If the plural cannot be correctly generated this way, specify it explicitly with the second unnamed parameter. The first unnamed parameter must give the noun class, either specified as above or with a numeral (arabic or roman):
    On the page mwanamke,
    {{sw-noun|I|wanawake}} gives
    mwanamke  I တန် (ကိုန်ဗဟုဝစ် wanawake  II တန်)
  • If a word has no plural, put the second parameter to |-. If the word is only plural, put it to |plural:
    On the page uke,
    {{sw-noun|XI|-}} gives
    uke  XI တန် (ကိုန်ဗဟုဝစ်ဟွံမွဲ)
    On the page nukta mbili,
    {{sw-noun|X|plural}} gives
    nukta mbili  X တန် (ပါဲနူကိုန်ဗဟုဝစ်)
  • If there is a second plural in ma-, add the parameter |coll=y:
    On the page hoteli,
    {{sw-noun|n|coll=y}} gives
    hoteli  IX တန် (ကိုန်ဗဟုဝစ် hoteli  X တန်, ဝါ mahoteli  VI တန်)
  • To manually specify a second plural, use |pl2=; to specify its class (if different from the first plural), use |pl2cl=:
    On the page mwanamwali,
    {{sw-noun|I|pl2=wanawali}} gives
    mwanamwali  I တန် (ကိုန်ဗဟုဝစ် wanamwali  II တန် or wanawali  II တန်)
    On the page ukucha,
    {{sw-noun|u|pl2=makucha|pl2cl=VI}} gives
    ukucha  XI တန် (ကိုန်ဗဟုဝစ် kucha  X တန် or makucha  VI တန်)
  • There are nouns that can be in ji-ma class(V/VI) or n class(IX/X), with no difference in meaning. For these, specify the class number as |59:
    On the page bafu,
    {{sw-noun|59}} gives
    bafu  V or IX တန် (plural mabafu  VI တန် or bafu  X တန်)
  • For animate nouns that do not look like they are in m-wa class(I/II), proceed as above and add the parameter |anim=y:
    On the page kipofu,
    {{sw-noun|ki-vi|anim=y}} gives
    kipofu  I တန် (ကိုန်ဗဟုဝစ် vipofu  II တန်)
    On the page rafiki,
    {{sw-noun|n|anim=y|coll=y}} gives
    rafiki  I/IX တန် (ကိုန်ဗဟုဝစ် rafiki  II/X တန်, ဝါ marafiki  II/X တန်)

There are more ways to use the template that will work, for backward compatibility. For example, specifying only the singular or only the plural prefix may work as well.

If all this fails (for example if two classes are possible in singular), it is possible to give everything explicitly. Singular class(es) are given with |cl= and |cl2=, plural(s) with |pl= and |pl2=, and plural class(es) with |plcl= and |pl2cl=. (If both plural classes are identical, the second one can be left out.) Do not mix this approach with the automatised approach outlined above.

On the page mvinyo,
{{sw-noun|cl=III|cl2=IX|pl=mivinyo|pl2=mvinyo|plcl=IV|pl2cl=X}} gives
mvinyo  III or IX တန် (ကိုန်ဗဟုဝစ် mivinyo  IV တန်, ဝါ mvinyo  X တန်)

This template contains the necessary meta-data to allow users who are using accelerated editing to create any grammatical forms semi-automatically.