မေႃႇၵျူး:fr-headword/doc
This is the documentation page for မေႃႇၵျူး:fr-headword
This module is used for French headword-line templates. This module currently implements {{fr-noun}}
, {{fr-verb}}
, {{fr-adj}}
, {{fr-adv}}
, {{fr-intj}}
, {{fr-phrase}}
and several others; see the documentation of those templates for more information.
The module is always invoked the same way, by passing a single parameter to the "show" function. This parameter is the name of the part of speech, but in plural (examples given are for nouns, and for adjective forms respectively):
{{#invoke:fr-headword|show|nouns}} {{#invoke:fr-headword|show|adjective forms}}
The template will, by default, accept the following parameters (specific parts of speech may accept or require others):
|head=
- Override the headword display, used to add links to individual words in a multi-word term.
|suff=1
- Indicate that the term is a suffix. It will be categorized under Category:French suffixes, and also under Category:French POS-forming suffixes for the part of speech of the template.
|splithyph=1
- Indicate that automatic splitting and linking of words should split on hyphens in multiword expressions with spaces in them (splitting on hyphens is automatic if there are no spaces in the term).
There is no parameter for the sort key, because this is not necessary. The sort key is automatically generated according to the normal alphabetical ordering in French.
Autosplitting
[မႄးထတ်း]All templates using this module use an intelligent autosplitting algorithm to link portions of multipart and multiword expressions, as follows:
- The module will automatically split and link distinct space-separated words, similarly to
{{head}}
; hence, tout le monde will be linked as[[tout]] [[le]] [[monde]]
. - It also splits on apostrophes in the middle of words and includes the apostrophe in the preceding portion. Hence, n’importe quoi will be linked as
[[n']][[importe]] [[quoi]]
. (An exception is made for three words, quelqu’un, c’est and aujourd’hui, which will not be split if they occur as part of larger expressions.) - In addition, parts of hyphenated compounds in single-word expressions will be linked individually, e.g. grand-chose will be linked as
[[grand]]-[[chose]]
. Hyphenated compound words will not be split if they occur in multiword expressions unless|splithyph=1
is specified, since the compound itself might be a valid word.