Module:Having

Revision as of 19:51, 11 October 2025 by Rebecca (talk | contribs) (Created page with "local p = {} local function ugh(x) return x == true 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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Having/doc

local p = {}
local function ugh(x) return x == true 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