ទំព័រគំរូ:theplural/doc
Appearance
This template automatically generates the plural form of any of various words, for the purpose of feeding it to other templates.
Usage
[កែប្រែ]This template uses only one parameter, which is the word to be pluralized.
Examples
[កែប្រែ]Mechanics
[កែប្រែ]This template simply employs the parser function #switch to keep a list of words and their plurals. Consequently, this list should contain all the relevant words before they are pluralized elsewhere.
As an exception, if this template is used to pluralize a word not in the list, the final result is simply the word with an additional letter "s" at the end.
Restrictions
[កែប្រែ]- Since the objective of this template is to be used in other templates, only relevant words and their plurals should be listed here.
- For example, the code
, in the right code of the right template, is likely to generate "Category:Portuguese suffixes" or other similar texts. On the other hand, the plural of "mess" being "messes" is likely irrelevant for Wiktionary templates, so a code{{theplural|suffix}}
is not supposed to be used or yield the actual pluralized value.{{theplural|mess}}
- For example, the code
- Only one plural per word is foreseeably enough.
- Due to the behavior of automatically adding s to any word not listed, it is thereby not necessary to list words whose plural follow this pattern.
- For example, the value "verb" is likely to be used in Wiktionary templates, but
would return "verbs" anyway.{{theplural|verb}}
- For example, the value "verb" is likely to be used in Wiktionary templates, but
See also
[កែប្រែ]Supplementary templates [edit]
Contents, text, tables:
- caps (returns a particular letter, either in upper or lower cases)
- str len (returns the number of characters of a string)
- theordinal (returns "first" from 1, "second" from 2, etc.)
- theplural (returns "suffixes" from suffix, "verbs" from verb, etc.)
- navbox (generates a collapsible box)
- ! (returns a vertical pipe: |)
- !! (returns two vertical pipes: ||)
- (! (returns a left brace followed by a vertical pipe: {|)
- !) (returns a vertical pipe followed by a right brace: |})
- !- (returns a vertical pipe followed by a dash: |-)
Languages, families and scripts:
- Module:language utilities
- langname (returns a language name from the same language name)
- langrev (returns the language code of a given language name)
- languageshift (differentiates between "American Sign Language" and "American Sign Language language", among other related languages)
- family (returns the family from a subfamily)
- script (returns a script name from a script code)
- scriptrev (returns a script code from a script name)
Pages:
- catlangcode (returns the name of a topical category, notably by never displaying the code en:)
- catlangname (returns the name of a lexical or other category similarly named)
- deftempboiler (generates a definition template)
- edit (generates an "edit" button)