සැකිල්ල:es-adj
es-adj පුරුෂ ලිංග or ස්ත්රී ලිංග (masculine and feminine plural es-adjs)
- පහත දැක්වෙන උපදෙස්, සැකිල්ල:es-adj/documentation හි පිහිටා ඇත. සැකිල්ල:es-adj/documentation]]. [සංස්කරණය]
- ප්රයෝජනවත් සබැඳි: උප පිටු ලැයිස්තුව • සබැඳි • යළි යොමු • transclusions • errors (parser/module) • sandbox
This template generates a headword line and categorizes Spanish adjective entries.
Usage
[සංස්කරණය]This template should be added to all Spanish adjective entries.
The template should be placed within the Spanish language section, immediately following the Adjective L3 header.
As with other Wiktionary inflection line templates, please do not use subst:.
Parameters
[සංස්කරණය]Default parameters
[සංස්කරණය]In the majority of cases, no parameters are required, e.g. for hermoso (“beautiful”):
{{es-adj}}
which produces
hermoso (ස්ත්රී ලිංග hermosa, masculine plural hermosos, feminine plural hermosas)
The module knows how to form the feminine and plural of most adjectives, including those in -ón, -án, -és, etc. For example, for alemán (“German”):
{{es-adj}}
which produces
alemán (ස්ත්රී ලිංග alemana, masculine plural alemanes, feminine plural alemanas)
Similarly, for leonés (“Leonese”):
{{es-adj}}
which produces
leonés (ස්ත්රී ලිංග leonesa, masculine plural leoneses, feminine plural leonesas)
And for común (“common”):
{{es-adj}}
which produces
común පුරුෂ ලිංග or ස්ත්රී ලිංග (masculine and feminine plural comunes)
Note in the latter case that the module knows that the feminine is the same as the masculine, and adjusts the display accordingly.
Explicit parameters
[සංස්කරණය]Explicit parameters are available in case of irregular adjectives:
|f=- Explicitly specify the feminine(s), comma-separated (with no space following the comma) if there are multiple.
|mpl=- Explicitly specify the masculine plural(s), comma-separated (with no space following the comma) if there are multiple.
|pl=- Explicitly specify the plural(s), for adjectives where the masculine and feminine plural are the same; comma-separated (with no space following the comma) if there are multiple.
|fpl=- Explicitly specify the feminine plural(s), comma-separated (with no space following the comma) if there are multiple. The default is based on applying the pluralization algorithm to the feminine(s) (whether defaulted or explicitly specified).
|comp=- Explicitly specify the comparative(s), comma-separated (with no space following the comma) if there are multiple.
|sup=- Explicitly specify the superlative(s), comma-separated (with no space following the comma) if there are multiple.
|dim=- Explicitly specify the diminutive(s), comma-separated (with no space following the comma) if there are multiple.
|aug=- Explicitly specify the augmentative(s), comma-separated (with no space following the comma) if there are multiple.
|inv=1- Specify that the adjective is invariable (indeclinable).
|fonly=1- Specify that the adjective is feminine-only.
|hascomp=- Indicative whether the adjective has a comparative. Possible values are
1,yesortrue(the adjective has a comparative);0,noorfalse(the adjective has no comparative); andboth(the adjective sometimes has a comparative, depending on the meaning). |pagename=- Override the page name. Useful especially on documentation and test pages.
|sp=- Special indicator describing how to form non-lemma parts for multiword expressions. See below.
All of the above parameters that take a term or gender as a value can have multiple such values, comma-separated (with no space following the comma), and each value can have inline modifiers, as described above. Alternatively, separate parameters can be given, like |f2=, |f3=, etc. for additional feminines; |dim2=, |dim3=, etc. for additional diminutives; |sup2=, |sup3=, etc. for additional superlatives; etc. However, this format is deprecated, and using comma-separated items in a single parameter is preferred as it is more compact and easier to read.
For all the above gender/number/comparative/superlative/diminutive/augmentative parameters, use + to explicitly request the default and # to stand for the lemma.
For example, for cortés (“polite, courteous”), where the feminine is the same as the masculine, but the default algorithm would generate the feminine cortesa, use
{{es-adj|f=#}}
which produces
cortés පුරුෂ ලිංග or ස්ත්රී ලිංග (masculine and feminine plural corteses)
Here, # means to use the lemma form cortés.
For clave (same in both masculine and feminine, two possible plurals), use
{{es-adj|pl=#,+}}
which produces
clave පුරුෂ ලිංග or ස්ත්රී ලිංග (masculine and feminine plural clave or claves)
Here, # means to use the lemma form clave, and + means to request the default plural claves.
For andaluz (feminine in -a; the default algorithm would generate the feminine andaluz), use
{{es-adj|f=andaluza}}
which produces
andaluz (ස්ත්රී ලිංග andaluza, masculine plural andaluces, feminine plural andaluzas)
For obturador (feminine obturatriz), use
{{es-adj|f=obturatriz}}
which produces
obturador (ස්ත්රී ලිංග obturatriz, masculine plural obturadores, feminine plural obturatrices)
Note in this case that the correct masculine plural obturadores and correct feminine plural obturatrices are automatically generated.
For oromo (feminine same as masculine, when the default algorithm would generate the feminine oromo; plural oromos or oromo), use
{{es-adj|f=#|pl=+,#}}
which produces
oromo පුරුෂ ලිංග or ස්ත්රී ලිංග (masculine and feminine plural oromos or oromo)
For bueno, with irregular comparative and superlative, use
{{es-adj|comp=mejor|sup=buenísimo,bonísimo,óptimo<l:learned>}}
which produces
bueno (ස්ත්රී ලිංග buena, masculine plural buenos, feminine plural buenas, comparative mejor, superlative buenísimo or bonísimo or (learned) óptimo)
This last example also shows the use of an inline modifier; see below.
Multiword expressions
[සංස්කරණය]The module knows how to correctly pluralize and form the feminine of most multiword expressions. An example is hecho a mano (“handmade”, literally “made by hand”):
{{es-adj}}
which produces
hecho a mano (ස්ත්රී ලිංග hecha a mano, masculine plural hechos a mano, feminine plural hechas a mano)
The default algorithm is to inflect the first and last word, unless (as here) there is a recognized preposition in the word, in which case only the portion before the preposition is inflected. An example without a preposition is católico romano (“Roman Catholic”):
{{es-adj}}
which produces
católico romano (ස්ත්රී ලිංග católica romana, masculine plural católicos romanos, feminine plural católicas romanas)
In some cases, the default algorithm produces incorrect results. In those cases, you can control which words are inflected using one of the following specs:
- Use
|sp=firstif only the first word inflects. - Use
|sp=lastif only the first word inflects. - Use
|sp=first-lastif the first and last word inflect. - Use
|sp=eachif all words inflect. - Use
|sp=first-secondif the first and second words inflect. - Use
|sp=secondif only the second word inflects. - Use
|sp=+to explicitly request the default multiword inflection algorithm (needed with hyphenated terms; see below).
An example that uses these codes is bien dotado (“well-endowed”). The default is to inflect the first and last words, but here we need only the last word inflected:
{{es-adj|sp=last}}
which produces
bien dotado (ස්ත්රී ලිංග bien dotada, masculine plural bien dotados, feminine plural bien dotadas)
Another example is más raro que un perro verde (literally “stranger/rarer than a green dog”), where we want only the second word pluralized:
{{es-adj|sp=second}}
which produces
más raro que un perro verde (ස්ත්රී ලිංග más rara que un perro verde, masculine plural más raros que un perro verde, feminine plural más raras que un perro verde)
Qualifiers, labels, references
[සංස්කරණය]The allowed inline modifiers are:
<q:...>: Qualifier displayed as-is before the value in question.<qq:...>: Qualifier displayed as-is after the value in question.<l:...>: One or more comma-separated labels (with no space after the comma) displayed before the value in question. Recognized labels are generally linked to the glossary.<ll:...>: One or more comma-separated labels (with no space after the comma) displayed after the value in question.<ref:...>: One or more references. See{{IPA}}for the exact format. To get multiple references, you can stack multiple inline modifiers<ref:...><ref:...>or separate with!!!(three exclamation points surrounded by spaces).
Suffixes
[සංස්කරණය]You can use this template for adjective-forming suffixes. If the page name begins with a hyphen, the part of speech for categories is changed to suffixes instead of nouns, and the page is added to an additional category Category:Spanish adjective-forming suffixes. An example is -és (“-ese”):
{{es-adj}}
which produces
-és (adjective-forming suffix, ස්ත්රී ලිංග -esa, masculine plural -eses, feminine plural -esas)
and automatically adds the page to Category:Spanish suffixes and Category:Spanish adjective-forming suffixes. Note how we rely here on the default feminine-forming and plural-forming algorithms, which usually work.