209
edits
m (debugging #2) |
m (maybe this works?) |
||
Line 4: | Line 4: | ||
local m = {} | local m = {} | ||
function m.setup_entry( | function m.setup_entry(frame) | ||
local args = m_args.getArgs(frame) | |||
local lang_code = args[1] | |||
local lang = m_languages.getByCode(lang_code, nil, false, false) | |||
if not lang then | if not lang then | ||
Line 23: | Line 25: | ||
end | end | ||
return mw_src | return mw_src | ||
end | end | ||
function m.entry(word_type | function m.entry(frame) | ||
local args = m_args.getArgs(frame) | |||
local word_type = args[1] | |||
local mw_src = "" | local mw_src = "" | ||
Line 76: | Line 82: | ||
end | end | ||
function m.lthm_noun( | function m.lthm_noun(frame) | ||
local noun_stems = { | local noun_stems = { | ||
["e-stem"] = { | ["e-stem"] = { | ||
Line 109: | Line 115: | ||
} | } | ||
} | } | ||
local args = m_args.getArgs(frame) | |||
local root = args[1] | |||
local stem_id = args[2] | |||
local stem = noun_stems[stem_id] | local stem = noun_stems[stem_id] |
edits