2,788
edits
TheNightAvl (talk | contribs) mNo edit summary |
No edit summary |
||
Line 52: | Line 52: | ||
end | end | ||
function export.get_term() | function export.get_term(language) | ||
local title = mw.title.getCurrentTitle().text | |||
if language.proto then | |||
title = mw.ustring.gsub(title, "^[^/]+/", "") | |||
end | |||
return title | |||
end | end | ||
function export.show(frame) | function export.show(frame) | ||
local language = m_languages.get_by_code(frame.args[1]) | local language = m_languages.get_by_code(frame.args[1]) | ||
local term = export.get_term() | local term = export.get_term(language) | ||
local pos = frame.args[2] | local pos = frame.args[2] | ||
local inflection_params = mw.loadData("Module:head/languages/" .. language.code) | local inflection_params = mw.loadData("Module:head/languages/" .. language.code) |