Documentation for this module may be created at Module:Contact/doc

local p = {}


function p.form(frame)
    
    local username = mw.title.getCurrentTitle().text

    
    local formHtml = '<form action="/wiki/Contact" method="POST">' ..
        '<label for="subject">Subject:</label>' ..
        '<input type="text" id="subject" name="subject" required><br>' ..
        '<label for="message">Message:</label>' ..
        '<textarea id="message" name="message" required></textarea><br>' ..
        '<input type="hidden" name="username" value="' .. username .. '">' ..
        '<button type="submit">Send</button>' ..
        '</form>'

    
    return formHtml
end

return p