বিষয়বস্তুতে চলুন

মডিউল:প্রতিস্থাপন

উইকিপিডিয়া, মুক্ত বিশ্বকোষ থেকে
মডিউল নথি[তৈরি করুন]
local p = {}

function p.replaceString(frame)
    local input = frame.args[1] or ""
    local target = frame.args[2] or " "
    local replacement = frame.args[3] or "_"
    local result = mw.ustring.gsub(input, target, replacement)
    return result
end

return p