Module:Having
Documentation for this module may be created at Module:Having/doc
local p = {}
local function ugh(x) return type(x) == "bool" and x or nil,x.error end
function p.register(frame)
local aa = frame:getParent().args
for e in aa[1]:gmatch"[^,]+" do
local obj = {}
obj['Had by'] = 'The Having Game/Museum'
obj['Object type'] = (aa.type or 'object')..' title'
obj['Emoji'] = mw.text.trim(e)
obj['Given by'] = aa[4]
assert(ugh(mw.smw.subobject(obj))) end end
return p