Template:sw-noun
kitu class VII (plural vitu class VIII)
- The following documentation is located at Template:sw-noun/documentation. [edit]
- Useful links: subpage list • links • redirects • transclusions • errors (parser/module) • sandbox (diff)
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”)):
==Swahili== ===Noun=== {{sw-noun|ki-vi}} # [[thing]]
Syntax
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,
- On the page Mkenya,
- On the page kituo cha basi,
{{sw-noun|ki-vi}}
gives- kituo cha basi class VII (plural vituo vya basi class 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: - 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):
- 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 class XI (no plural)
- On the page nukta mbili,
{{sw-noun|X|plural}}
gives- nukta mbili class X (plural only)
- On the page uke,
- If there is a second plural in ma-, add the parameter
|coll=y
: - To manually specify a second plural, use
|pl2=
:- On the page mwanamwali,
- 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
: - 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
:
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,
This template contains the necessary meta-data to allow users who are using accelerated editing to create any grammatical forms semi-automatically.
See also
{{sw-inf}}
for verbal nouns in the ku class{{sw-noun-ni}}
for adverbial nouns with the -ni suffix