Jump to content

Module:Sandbox/Tom Morris

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tom Morris (talk | contribs) at 13:37, 19 May 2013 (debugging). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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