Module:oyen-contionary-utils: Difference between revisions

Jump to navigation Jump to search
string issues again
(conflated addition and concatenation op, happens)
(string issues again)
Line 12: Line 12:


   if not lang then
   if not lang then
     error(string.format("Invalid language code '[%s]'"), lang_code)
     error(string.format("Invalid language code '%s'"), lang_code)
   end
   end


Line 19: Line 19:
   local mw_src = ""
   local mw_src = ""


   mw_src = mw_src .. string.format("==[%s]==", lang:getCanonicalName())
   mw_src = mw_src .. string.format("==%s==<br>", lang:getCanonicalName())


   if reconstructed then
   if reconstructed then
     mw_src = mw_src .. "{{Reconstructed}}"
     mw_src = mw_src .. "{{Reconstructed}}<br>"
   end
   end


Line 35: Line 35:
   local mw_src = ""
   local mw_src = ""


   mw_src = mw_src .. string.format("===[%s]===", word_type)
   mw_src = mw_src .. string.format("===%s===", word_type)


   mw_src = mw_src .. "<b>{{PAGENAME}}</b><br>"
   mw_src = mw_src .. "<b>{{PAGENAME}}</b><br>"
Line 127: Line 127:
   end
   end


   return inflection(
   return "====Inflection====<br>" .. inflection(
     root,
     root,
     {"Definite", "Indefinite"},
     {"Definite", "Indefinite"},
209

edits

Navigation menu