မေႃႇၵျူး:form of/doc
This is the documentation page for မေႃႇၵျူး: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
[မႄးထတ်း]format_form_of(data)
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. data.text
is the text to display before the lemma links, data.lemmas
is a list of table describing the lemma links themselves (exactly as for full_link
in Module:links), and data.posttext
is optional text to display after the link. The entire result will be surrounded in a span that is tagged with the CSS classes form-of-definition
and use-with-mention
, and the link is surrounded in a span tagged with the CSS class form-of-definition-link
.
normalize_tags
[မႄးထတ်း]normalize_tags(tags, lang, recombine_multitags, do_track)
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
[မႄးထတ်း]get_tag_display_form(tagspec, joiner)
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
[မႄးထတ်း]tagged_inflections(data)
Documented in the code.
to_Wikidata_IDs
[မႄးထတ်း]to_Wikidata_IDs(tags, lang)
Document me.