Module:Consecutive links: Difference between revisions

m
no edit summary
(added linkprefix/linkpostfix for stuff you want inside the brackets for specific namespaces,categories, etc)
mNo edit summary
Line 10: Line 10:


local b = string.gsub(frame.args[1], "%s*" .. separator .. "%s*", linkpostfix .. "]]" .. replacer .. "[[" .. linkprefix)
local b = string.gsub(frame.args[1], "%s*" .. separator .. "%s*", linkpostfix .. "]]" .. replacer .. "[[" .. linkprefix)
return prefix .. "[[" .. linkprefix and linkprefix or '' .. b .. linkpostfix and linkpostfix or ''.."]]" .. postfix
return prefix .. "[[" .. linkprefix .. b .. linkpostfix .."]]" .. postfix
end
end
return p
return p