Jump to content

Module:Sandbox/Codemini/Find string

From Simple English Wikipedia, the free encyclopedia

Script error: The module returned a nil value. It is supposed to return an export table. Purge


-- test
         -- find a given string and replace with another. Example:
             -- # to §
local p = {}

function p.main(frame, pagename)
 args = frame.args
 local pagename = pagename or "[["..args[1].."|"..args[2].."]]"
return "" .. string.gsub("" ..pagename.."", "§", "#", 1)
end
return p