Module:Consecutive links: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 26: Line 26:
if type == 'links' then
if type == 'links' then
   returnstrformat = function(linkprefix, word, linkpostfix)
   returnstrformat = function(linkprefix, word, linkpostfix)
     return prefix .. '[[' .. linkprefix .. word  .. linkpostfix .. ']]' .. postfix
     return '[[' .. linkprefix .. word  .. linkpostfix .. ']]'
     end
     end
elseif type == 'templates' then
elseif type == 'templates' then
Line 41: Line 41:
   returnstr = returnstr .. returnstrformat(linkprefix, word, linkpostfix)
   returnstr = returnstr .. returnstrformat(linkprefix, word, linkpostfix)
end
end
return returnstr
return prefix .. returnstr .. postfix
end
end