Module:Lingua Libre record/doc
Jump to navigation
Jump to search
CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules
This is the documentation page for Module:Lingua Libre record
This module powers {{Lingua Libre record}}. It exports two functions, both of which mainly read their parameters from the parent frame (i.e. the place that transcluded {{Lingua Libre record}}). The functions are:
- main
- Returns the wikitext content of the template, mainly an {{Information}} block. Takes the same parameters as the template, plus one additional argument: if
|includeonly=y
, then categories are included in the result (by default, they are not included). The template uses|includeonly=<includeonly>y</includeonly>
to only set this parameter when the template is being transcluded; this effectively does the same thing that<includeonly>[[Category:...]]</includeonly>
would do in a non-Lua-based template. - defaultsort
- Returns the defaultsort string for the page. This has to be a separate function because the
{{DEFAULTSORT:}}
magic word can’t be in the wikitext returned bymain
. Takes the same parameters as the template (but doesn’t use all of them).