Module:Autolink

-- -- --

local p = {}

-- -- Hack to give expr functionality -- @todo change to mw.ext.ParserFunctions.expr when ParserFunction changes are backported to wikia -- local function expr( frame, str ) ret = frame:preprocess( '' ) return ret end

function p.link( frame ) local args = frame:getParent.args -- zero-width non-joiner local zwnj = '&zwnj;' local repl

if mw.ustring.find( args[1], zwnj ) == 0 then ret = '0' else -- split args[1] with * as the delimiter links = mw.text.split( args[1], '*' )

-- rejoin with or comma as the delimiter -- no idea what $x$ does (pattern) -- no idea what the subject is all about end

--[=[

]=]

end

return p