Module:oyen-contionary-utils: Difference between revisions

Jump to navigation Jump to search
m
maybe this works?
m (debugging #2)
m (maybe this works?)
Line 4: Line 4:
local m = {}
local m = {}


function m.setup_entry(lang_code)
function m.setup_entry(frame)
   return table.concat(lang_code, "\n")
   local args = m_args.getArgs(frame)


   --[[local lang = m_languages.getByCode(lang_code, nil, false, false)
   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(root, stem_id)
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]
209

edits

Navigation menu