Jump to content

Module:string/replacementEscape

Wiktionary වෙතින්
(Module:string/formatEscape වෙතින් යළි-යොමු කරන ලදි)


local gsub = string.gsub

--[==[Escapes {%}, which is the only magic character used in replacement strings, which are given as the third argument to {string.gsub} and {mw.ustring.gsub}, as well as format strings given to {string.format} and {mw.ustring.format}.]==]
return function(str)
	return (gsub(str, "%%", "%%%%"))
end
"https://si.wiktionary.org/w/index.php?title=Module:string/replacementEscape&oldid=220217" වෙතින් සම්ප්‍රවේශනය කෙරිණි