Moduł:słowniczek
Wygląd
Dokumentacja dla tego modułu może zostać utworzona pod nazwą Moduł:słowniczek/opis
local export = {}
local replacements = {
[" "] = "_",
["ą"] = "e",
["ć"] = "c",
["ę"] = "e",
["ł"] = "l",
["ń"] = "n",
["ó"] = "o",
["ś"] = "s",
["ź"] = "ź",
["ż"] = "ż"
}
function export.getID(frame)
local returnString = frame.args[1]
for k, v in ipairs(replacements) do
returnString = mw.ustring.gsub(returnString, k, v)
end
return returnString
end
return export