{{i}} Документація модуля[створити]
local p = {}

function p.letter(frame)
    local input = frame.args[1] or ""
    local useG = mw.message.new("use-g"):plain()

    if useG == "yes" then
        if input == "г" then
            return "ґ"
        elseif input == "Г" then
            return "Ґ"
        else
            return input
        end
    else
        if input == "ґ" then
            return "г"
        elseif input == "Ґ" then
            return "Г"
        else
            return input
        end
    end
end

return p