Module:Utilities: Difference between revisions

Sur (talk | contribs)
m Undo revision 5873 by Sur (talk)
Tag: Undo
Sur (talk | contribs)
m call_lang moved to utils
Line 33: Line 33:
return image_file_name
return image_file_name
end
--Call {{Lang}} on a given unlocalized string using key (not label)
function p.call_lang(unlocalized)
local template_title = mw.title.new("Template:Lang")
local template_args = {}
local template_call
template_args["key"] = unlocalized
local template_call = mw.getCurrentFrame():expandTemplate{ title = template_title, args = template_args }
return template_call
end
end


return p
return p