Ҳуҷҷатгузорӣ
local p = { }

-- This will be used by {{StateName}}.
function p.stateName(frame)
    local pframe = frame:getParent()
    local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself
    local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template
    
    local data = mw.loadData("Module:U.S. States/data")
    local abbr = args[1]
    return data.stateName[abbr]
end

return p