|
|
Line 1: |
Line 1: |
| local export = {} | | local export = {} |
|
| |
|
| local m_head = require("Module:head")
| |
| local m_head_languages = require("Module:head/languages") | | local m_head_languages = require("Module:head/languages") |
| local m_parameters = require("Module:parameters")
| |
| local lfv = require("Module:languages").get_by_code("lfv") | | local lfv = require("Module:languages").get_by_code("lfv") |
|
| |
|
| local params = {
| |
| [1] = {list = true},
| |
| head = {},
| |
| }
| |
| local inflection_params = { | | local inflection_params = { |
| adjective = { | | adjective = { |
Line 41: |
Line 35: |
| } | | } |
|
| |
|
| function export.adjective(frame) | | function export.show(frame) |
| local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.adjective) | | return m_head_languages.do_language_head(lfv, frame.args[1], inflection_params, frame:getParent().args) |
| return m_head.full_head{
| |
| term = mw.title.getCurrentTitle().text,
| |
| head = args["head"],
| |
| language = lfv,
| |
| pos = "adjective",
| |
| genders = args[1],
| |
| inflections = inflections,
| |
| }
| |
| end
| |
| | |
| function export.adverb(frame)
| |
| local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.adverb)
| |
| return m_head.full_head{
| |
| term = mw.title.getCurrentTitle().text,
| |
| head = args["head"],
| |
| language = lfv,
| |
| pos = "adverb",
| |
| genders = args[1],
| |
| inflections = inflections,
| |
| }
| |
| end
| |
| | |
| function export.noun(frame)
| |
| local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.noun)
| |
| return m_head.full_head{
| |
| term = mw.title.getCurrentTitle().text,
| |
| head = args["head"],
| |
| language = lfv,
| |
| pos = "noun",
| |
| genders = args[1],
| |
| inflections = inflections,
| |
| }
| |
| end
| |
| | |
| function export.verb(frame)
| |
| local args, inflections = m_head_languages.get_args(frame:getParent().args, params, inflection_params.verb)
| |
| return m_head.full_head{
| |
| term = m_head_languages.get_term(),
| |
| head = args["head"],
| |
| language = lfv,
| |
| pos = "verb",
| |
| genders = args[1],
| |
| inflections = inflections,
| |
| }
| |
| end | | end |
|
| |
|
| return export | | return export |