Module:Sandbox/Tom Morris

From blackwiki
< Module:Sandbox
Revision as of 13:37, 19 May 2013 by blackwiki>Tom Morris (debugging)
Jump to navigation Jump to search

Documentation for this module may be created at Module:Sandbox/Tom Morris/doc

local p = {}

p.spouse = function(frame)
    local entity = mw.wikibase.getEntity()
    local label = type(entity.claims.p26["1"])
    local out = {}
    for k, v in pairs(entity.claims.p26) do
        out[#out + 1] = k
    end
    return table.concat(out, ", ")
end

return p