Module:AutoHeader

Revision as of 21:30, 31 December 2024 by Intcreator (talk | contribs) (Created page with "local p = {} p.getJson = function(frame) -- local ret = mw.visualdata.query( schema ("inventory_item"), query (string), printouts (list or table), params (table) ) local ret = mw.visualdata.query( 'Phone', 'manufacturer::+', {'manufacturer'}, {} ) return mw.text.jsonEncode(ret) end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

local p = {}

p.getJson = function(frame)
	-- local ret = mw.visualdata.query( schema ("inventory_item"), query (string), printouts (list or table), params (table)  )
	local ret = mw.visualdata.query( 'Phone', '[[manufacturer::+]]', {'manufacturer'}, {} )
	return mw.text.jsonEncode(ret)
end


return p