2,788
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
local m_head = require("Module:head") | local m_head = require("Module:head") | ||
local m_languages = require("Module:languages") | |||
local default_params = { | local default_params = { | ||
Line 31: | Line 32: | ||
end | end | ||
function export. | function export.show(frame) | ||
local args, inflections = export.get_args( | local language = m_languages.get_by_code(frame.args[1]) | ||
local pos = frame.args[2] | |||
local inflection_params = mw.loadData("Module:head/languages/" .. language.code) | |||
local args, inflections = export.get_args(frame:getParent().args, default_params, inflection_params[pos]) | |||
return m_head.full_head{ | return m_head.full_head{ | ||
term = mw.title.getCurrentTitle().text, | term = mw.title.getCurrentTitle().text, |