Module:User:DTLHS/passage encode

local export = {}

function export.show(frame) local format = frame.args[1] local passage = frame.args[2] local st = "'''" local en = "'''"

if (format == "url") then st = "" end local result = mw.ustring.gsub( passage, "@{@", st) result = mw.ustring.gsub(result, "@}@", en) return result end

return export