Jump to content

Template:ar-adj

From Wiktionary, the free dictionary

ar-adj


Creates headword lines for Arabic adjectives.

Main parameters

|1=
Override the displayed headword. This should be used to provide the vocalized equivalent of page name (i.e. with vowel diacritics). Should always be included. Separate multiple vocalizations with a comma (with no space following). Per-item inline modifiers are supported (see below); in particular, use <tr:...> on a headword to override the automatically generated transliteration. (Normally it is unnecessary to supply transliteration; instead, prefer to use vocalization in the Arabic script. But see comments in {{ar-noun}} about irregular spellings of borrowed nouns and the consequent need to specify transliterations, and see also Wiktionary:Arabic entry guidelines#Romanization.) Use + for the value of a headword to use the pagename as the headword (normally this shouldn't be done, but is useful if the pagename is not in the Arabic script, e.g. for Arabic words written in Hebrew script such as מלך (malik, king)).
|f=
Feminine form(s), which should be vocalized. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). Use + to request the default feminine form, which normally adds ـَة (-a) to the masculine form but makes the appropriate modifiations for final-weak nouns in -in and -an.
|pl=
Masculine plural form(s), which should be vocalized. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). To include a sound plural (normally in ـُون (-ūn)), use +. The default algorithm correctly handles final-weak nouns in -in, -an, -āh and the like.
|fpl=
Feminine plural form(s), which should be vocalized. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). To include a sound plural (normally in ـَات (-āt)), use +. The default algorithm correctly handles final-weak nouns in -in, -an, -āh and the like.
|cpl=
Common plural form(s), which should be vocalized. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below).
|el=
Elative form(s), which should be vocalized. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below).

Secondary parameters, used if needed

|d=
Masculine dual form(s), which should be vocalized. Only specify if the dual is irregular. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). Use + to request the default masculine dual appropriate for the gender (usually in ـَان (-ān), but with appropriate modifications for final-weak nouns). Note that dual forms should not be included unless they are irregular, meaning that + should usually not stand on its own, but only used when there are multiple dual forms, some of which are regular and some irregular.
|fd=
Feminine dual form(s), which should be vocalized. Only specify if the dual is irregular. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). Use + to request the default feminine dual appropriate for the gender (usually in ـَتَان (-atān), but with appropriate modifications for final-weak nouns). Note that dual forms should not be included unless they are irregular, meaning that + should usually not stand on its own, but only used when there are multiple dual forms, some of which are regular and some irregular.
|inf=
Informal form(s), which should be vocalized. Only specify if the informal form is irregular. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below). If the noun ends in -an or -in, a regular informal form will automatically be displayed unless overridden. Use |inf=-- to suppress display of the automatic informal form, |inf=- to specify that there is no informal form, and |inf=+ to explicitly request the automatic informal form for a noun in -an or -in (useful if mixed in with irregular informal forms, although there may be no cases where this is required).
|obl=
Oblique form(s), which should be vocalized. Only specify if the oblique form is irregular. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below).
|def=
Definite form(s), which should be vocalized. Only specify if irregular, but in practice they almost never need to be given. Separate multiple items with a comma (with no space following). Per-item inline modifiers are supported (see below).

Inline modifiers

All params above that allow for multiple comma-separated values support inline modifiers, e.g. |cpl=إِنَاث,أَنَاثَى,أُنُث<l:rare> to attach a label rare to the third plural. The following modifiers are recognized:

  • tr: manual translit
  • q: qualifier, e.g. <q:in the plural> or <q:when referring to a card game>; this appears *BEFORE* the term, parenthesized and italicized
  • qq: qualifier, e.g. <qq:in the plural> or <qq:when referring to a card game>; this appears *AFTER* the term, parenthesized and italicized
  • l: comma-separated list of labels, e.g. <l:rare> or <l:dated,or,literary>; this appears *BEFORE* the term, parenthesized and italicized
  • ll: comma-separated list of labels, e.g. <ll:rare> or <ll:dated,or,literary>; this appears *AFTER* the term, parenthesized and italicized
  • ref: one or more references, in the format documented in Module:references and {{IPA}}
  • id: sense ID; see {{senseid}}; cannot be specified for headwords as it doesn't make sense to do so
  • inf: informal form of a parameter referring to an adjective form; only use this if it's irregular; if the adjective form ends in -an or -in, a regular informal form will be displayed unless overridden (see the |inf= parameter above); this value can in turn take <tr:...>, <q:...>, <qq:...>, <l:...>, <ll:...>, <ref:...> and <id:...> inline modifiers
  • obl: oblique form(s) of a parameter referring to an adjective form; only use this if it's irregular, and separate multiple values with a comma (with no space following); individual values can in turn take <tr:...>, <q:...>, <qq:...>, <l:...>, <ll:...>, <ref:...> and <id:...> inline modifiers
  • def: definite form(s) of a parameter referring to an adjective form; almost never need to be given; separate multiple values with a comma (with no space following); individual values can in turn take <tr:...>, <q:...>, <qq:...>, <l:...>, <ll:...>, <ref:...> and <id:...> inline modifiers

Examples

Term Wikicode Result
حَسَن (ḥasan, good) {{ar-adj|حَسَن|f=حَسَنَة|cpl=حِسَان|el=أَحْسَن}} حَسَن (ḥasan) (feminine حَسَنَة (ḥasana), common plural حِسَان (ḥisān), elative أَحْسَن (ʔaḥsan))
مَاضٍ (māḍin, sharp; acute, incisive; past, prior) {{ar-adj|مَاضٍ|f=مَاضِيَة|pl=+|fpl=+,مَوَاضٍ|el=أَمْضَى}} مَاضٍ (māḍin) (informal مَاضِي (māḍī), feminine مَاضِيَة (māḍiya), masculine plural مَاضُون (māḍūn), feminine plural مَاضِيَات (māḍiyāt) or مَوَاضٍ (mawāḍin, informal مَوَاضِي (mawāḍī)), elative أَمْضَى (ʔamḍā))
حَبِيب (ḥabīb, beloved; agreeable) {{ar-adj|حَبِيب|f=+,~|pl=أَحِبَّة,أَحِبَّاء,أَحْبَاب|fpl=+,حَبَائِبُ|el=أَحَبّ}} حَبِيب (ḥabīb) (feminine حَبِيبَة (ḥabība) or حَبِيب (ḥabīb), masculine plural أَحِبَّة (ʔaḥibba) or أَحِبَّاء (ʔaḥibbāʔ) or أَحْبَاب (ʔaḥbāb), feminine plural حَبِيبَات (ḥabībāt) or حَبَائِبُ (ḥabāʔibu), elative أَحَبّ (ʔaḥabb))