Module:Smyth: Difference between revisions

Content deleted Content added
m fix results for nil or empty string
m fix naming problem
Line 9:
local find, match, gmatch = mw.ustring.find, mw.ustring.match, mw.ustring.gmatch
 
local function urlmakeURL(resourceCode, part, code)
code = mw.uri.encode(code, "PATH")
return "http://www.perseus.tufts.edu/hopper/text?doc=Perseus:text:" .. path .. ":" .. part .. "=" .. code
Line 40:
end
end
url = urlmakeURL(path, part, section)
end
return { url = url, Part = Part }