Difference between revisions of "Module:Sandbox/Tom Morris"
Jump to navigation
Jump to search
blackwiki>Tom Morris (look at the array itself) |
blackwiki>Tom Morris (string "1" rather than 1) |
||
| Line 3: | Line 3: | ||
p.spouse = function(frame) | p.spouse = function(frame) | ||
local entity = mw.wikibase.getEntity() | local entity = mw.wikibase.getEntity() | ||
| − | local label = type(entity.claims.p26) | + | local label = type(entity.claims.p26["1"]) |
return label | return label | ||
end | end | ||
return p | return p | ||
Revision as of 13:36, 19 May 2013
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"])
return label
end
return p