Module:Cmap: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function p.cmap(frame) | function p.cmap(frame) | ||
if frame.args[1] then | if frame.args[1] and frame.args[2] and frame.args[3] then | ||
smaller, _ = mw.ustring.gsub(frame.args[1], | smaller, _ = mw.ustring.gsub(frame.args[1], frame.args[2], frame.args[3]) | ||
return smaller | return smaller | ||
end | end |