Module:Form of/doc
This is the documentation page for Module:Form of
This module is used by many templates, in particular {{form of}}
, {{inflection of}}
and the various other form-of templates. It is meant to be invoked from other modules, and not directly from templates. The code that directly implements the templates is found in Module:form of/templates.
The grammatical labels used by {{inflection of}}
are found in Module:form of/data and Module:form of/data2.
format_form_of
jhyuklua
Innermost guts of the majority of the form-of templates. Most of the work however is done by the functions that directly implement the templates. lua
is the text to display before the lemma links, lua
is a list of table describing the lemma links themselves (exactly as for lua
in Module:links), and lua
is optional text to display after the link. The entire result will be surrounded in a span that is tagged with the CSS classes css
and css
, and the link is surrounded in a span tagged with the CSS class css
.
normalize_tags
jhyuklua
Normalize a tag set (a list of tags) into a list of canonical-form tags (which may be larger due to the possibility of list-tag shortcuts). Documented in more detail in the code itself.
get_tag_display_form
jhyuklua
Turn a canonicalized tag spec (which describes a single, possibly multipart tag) into the displayed form. Documented in more detail in the code itself.
tagged_inflections
jhyuklua
Documented in the code.
to_Wikidata_IDs
jhyuklua
Document me.