Module:Sandbox/Tom Morris

From blackwiki
< Module:Sandbox
Revision as of 13:32, 19 May 2013 by blackwiki>Tom Morris (simplifying)
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 = "Q" .. entity.claims.p26[1].mainsnak.datavalue.value["numeric-id"]
    return label
end

return p