Jump to content

සැකිල්ල:es-adj/documentation

Wiktionary වෙතින්
Documentation for සැකිල්ල:es-adj. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template generates a headword line and categorizes Spanish adjective entries.

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:.

Default parameters

[සංස්කරණය]

In the majority of cases, no parameters are required, e.g. for hermoso (beautiful):

{{es-adj|pagename=hermoso}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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|pagename=alemán}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

Similarly, for leonés (Leonese):

{{es-adj|pagename=leonés}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

And for común (common):

{{es-adj|pagename=común}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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, yes or true (the adjective has a comparative); 0, no or false (the adjective has no comparative); and both (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=#|pagename=cortés}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

Here, # means to use the lemma form cortés.

For clave (same in both masculine and feminine, two possible plurals), use

{{es-adj|pl=#,+|pagename=clave}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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|pagename=andaluz}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

For obturador (feminine obturatriz), use

{{es-adj|f=obturatriz|pagename=obturador}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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=+,#|pagename=oromo}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

For bueno, with irregular comparative and superlative, use

{{es-adj|comp=mejor|sup=buenísimo,bonísimo,óptimo<l:learned>|pagename=bueno}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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|pagename=hecho a mano}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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|pagename=católico romano}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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=first if only the first word inflects.
  • Use |sp=last if only the first word inflects.
  • Use |sp=first-last if the first and last word inflect.
  • Use |sp=each if all words inflect.
  • Use |sp=first-second if the first and second words inflect.
  • Use |sp=second if 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|pagename=bien dotado}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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|pagename=más raro que un perro verde}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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).

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|pagename=-és}}
which produces

Lua දෝෂය in Module:es-headword at line 110: Parameter "pagename" is not used by this template..

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.

"https://si.wiktionary.org/w/index.php?title=සැකිල්ල:es-adj/documentation&oldid=227770" වෙතින් සම්ප්‍රවේශනය කෙරිණි