Module:Consecutive links: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(Created page with "local p = {} function p.parse(frame) local seperator = frame.args[2] local b = string.gsub(frame.args[1], separator, "]]" .. separator .. "[[") return "".. b .. "" end re...")
 
m (i can't spell)
Line 2: Line 2:


function p.parse(frame)
function p.parse(frame)
local seperator = frame.args[2]
local separator = frame.args[2]
local b = string.gsub(frame.args[1], separator, "]]" .. separator .. "[[")
local b = string.gsub(frame.args[1], separator, "]]" .. separator .. "[[")
return "[[".. b .. "]]"
return "[[".. b .. "]]"
end
end
return p
return p

Revision as of 18:37, 23 July 2019


local p = {}

function p.parse(frame)
local separator = frame.args[2]
local b = string.gsub(frame.args[1], separator, "]]" .. separator .. "[[")
return "[[".. b .. "]]"
end
return p