Template:ru-decl-adj/documentation

This is the template for creating a Russian adjective declension table, using Module:ru-adjective.

Parameters

 * 1
 * Lemma, with appropriately placed accent(s); or stem, if the declension class is explicitly given in 2.


 * 2
 * Declension class (usually omitted to autodetect based on the lemma), along with any short accent type and optional irregular short stem; see below.


 * suffix
 * Optional suffix to add unchanged to each form.


 * title
 * Override the table title.


 * nom_m, nom_n, nom_f, nom_p, gen_m, gen_f, gen_p, dat_m, dat_f, dat_p, acc_f, acc_n, ins_m, ins_f, ins_p, pre_m, pre_f, pre_p, short_m, short_n, short_f, short_p; also nom_mp for old-style declension tables (1) and два/оба/compounds of два (*); also nom_fp for два/оба/compounds of два (*); also gen_mp, gen_fp, dat_mp, dat_fp, ins_mp, ins_fp, pre_mp, pre_fp for оба (oba)
 * Override one or more declensional forms (nominative, genitive, dative, accusative, instrumental, prepositional, partitive, locative, vocative, short-form; masculine, feminine, neuter, plural, masculine plural, feminine plural). Alternatives may be separated by commas. Overridden forms, including comma-separated alternatives, will automatically be linked; but if you include a form along with other text (e.g. parens or a *), you should manually insert a link (it is OK to just use brackets around the link, even with stress marks in the form).


 * shorttail
 * Footnote symbol (e.g. *, 1, 2, etc.) to add to the last short form if there's more than one; automatically superscripted. Used in conjunction with notes to add a footnote to the short forms. This works like ; see the documentation for that template for more information on footnotes and footnote symbols.


 * shorttailall
 * Like shorttail but appended to all short forms, including when there's only one.


 * CASE_NUMGEN_tail
 * Append a footnote symbol to the last form for a particular case/number/gender combination. Note that this differs from shorttail in that it will be appended even if there's only one form. The possible values of CASE_NUMGEN are the same as for overrides.


 * CASE_NUMGEN_tailall
 * Same but appends to all forms, as with shorttailall.


 * notes
 * Note(s) to insert into the table. An initial footnote symbol (e.g. *, 1, 2, etc.) is automatically superscripted.
 * special
 * Use special tables for adjective-like numerals (два, оба, compounds of два). See below.

Declension spec
The form of the declension spec (argument 2) is DECLSPEC or DECLSPEC,DECLSPEC,... where DECLSPEC is one of the following:


 * 1) DECLCLASS:SHORTACCENT:SHORTSTEM
 * 2) DECLCLASS:SHORTACCENT
 * 3) DECLCLASS
 * 4) SHORTACCENT:SHORTSTEM
 * 5) SHORTSTEM
 * 6) (blank)

DECLCLASS should normally be omitted, and the declension autodetected from the ending; or it should be, to indicate that an adjective in -ий is of the possessive variety with an extra -ь- in most of the endings. Alternatively, it can be an explicit declension class, in which case the lemma field needs to be replaced with the bare stem; the following are the possibilities:
 * ,,  ,   (for long adjectives)
 * ,  (for long adjectives with pre-reform spelling, in place of   and  )
 * ,,  ,  ,   (for short or mixed adjectives, i.e. those ending in -ов, -ин, or similar)
 * ,,  ,  ,   (aliases of the above; can be used with pre-reform adjectives to emphasize the ending in -ъ, but not required)

SHORTACCENT is one of              to auto-generate the short forms with the specified accent pattern (following Zaliznyak, see below); if omitted, no short forms will be auto-generated. SHORTACCENT can also contain the following special-case markers:
 * for reducible "reducible" adjectives, where the short masculine singular has an epenthetic vowel in the final syllable
 * for use with adjectives in -нный/-нний, causing the short masculine singular to end in -н instead of -нн
 * for use with adjectives in -нный/-нний, causing all short forms to end in -н instead of -нн

SHORTSTEM, if present, is used as the short stem to base the short forms off of, instead of the normal adjective long stem (possibly with a final-syllable accent added in the case of declension class ).

Declension classes
The following table lists the explicit declensional classes. "Old class" is the class for use with 1, which creates old-style (pre-1918) adjective templates. Note that in normal usage you should not include explicit declension classes, but should include the full lemma in argument 1 and allow the declension class to be autodetected.

Auto-accenting and required accents
Multisyllabic words in arguments (lemma, short stem, overrides) normally need a stress mark in them (as in а́, ы́, ё or ѣ̈) to indicate the position of the stress; an error will occur otherwise. Accents are not required on monosyllabic words, which will automatically be stressed on their only vowel. You can override both accent errors and auto-accenting by prefixing the lemma with. (Don't use this prefix on other arguments. If present on the lemma, it applies to all arguments.) This is useful when a word has no stress (e.g. unstressed suffixes) or when the stress is unknown.

Manual transliteration
All parameters that accept Russian text can be followed by  and a manual transliteration. Transformations of the Russian text (e.g. reducing, dereducing, moving the stress) will appropriately be applied to the manual transliteration as well. Certain rules need to be respected concerning the manual transliteration, and will trigger errors if not. For example, the manual transliteration needs to have the same number of syllables as the Russian, and the manual transliteration of the lemma needs to have the same declensional ending (e.g. -ый, -ой, -ъ), or rather its transliteration.

Special numeral templates
Special support is present for, and compounds of два, e.g. . These numerals are supported, respectively, using dva, oba and cdva. These should be used in conjunction with manually-specified declensions and explicit overrides for all forms. Three different special cases are required: See the example below.
 * два has distinct masculine/neuter from feminine in the nominative and inanimate accusative only, along with an animacy distinction.
 * оба has distinct masculine/neuter from feminine in all cases, along with an animacy distinction.
 * Compounds of два are like два but have no animacy distinction.

Example 1
The adjective has no short forms.

produces

Example 2
The adjective has stem-stressed short forms (type  ), and the masculine singular  has an epenthetic vowel, indicated by the reducible declension symbol.

produces

Example 3
The adjective has stem-stressed short masculine and neuter singular and either stem or ending stress in the feminine singular and the plural (type  ). In addition, it has an epenthetic vowel in the masculine singular, but the form is irregular instead of expected ; hence an override is needed.

produces

Example 4
The adjective has stem-stressed short forms. The masculine singular short form can be either (reducible declension symbol  ) or  (special-case symbol  ).

produces

Example 5
The adjective has reducible short masculine singular  (type , reducible declension symbol  ). The remaining short forms are irregular or have irregular alternatives, requiring overrides.

produces

Example 6
The adjective has short forms with a completely different stem, e.g. masculine singular, feminine singular  (type  ).

produces

Example 7
The adjective requires manual transliteration.

produces

Example 8
The numeral requires use of a special template.

produces

Example 9
The adjective has stem-stressed short forms in the masculine, neuter, and plural, (type  ), but the end-stressing suffix -о́й in its long forms, requiring the second and third values of parameter 2  to avoid end stress.

produces