انتقل إلى المحتوى

وحدة:ملعب/حبيشان/test2

من ويكيبيديا، الموسوعة الحرة
p = {}
local function s(a,b,c)
	return c
end
	
p.test = function()
	--local wikidata = require("وحدة:Wikidata2/ملعب").formatStatementsFromLua
	local cite_q = require("وحدة:ملعب/حبيشان/Cite Q")
	local d = mw.wikibase.getAllStatements("Q16120302","P569")
	--local e = wikidata({textformat = "text", entityId = "Q2481432", property ="P569", noref = "true", firstvalue = "1", formatting = "raw", numval = 5})
	local ff = {a={1,2,2,3},
		b=true};
	ff.a=nil
	local t =mw.wikibase.getBestStatements("Q16120302","P569")
	--mw.log(mw.dumpObject(t))
	t=t[1].references
	
	--mw.log(mw.dumpObject(mw.wikibase.getBestStatements("P244", "P1630")[1].mainsnak.datavalue.value))
	--return (cite_q._cite_wikidata(mw.wikibase.getBestStatements("Q16120302","P569")[1].references[1])  .. '<br>' .. 
	--	cite_q._cite_wikidata(mw.wikibase.getBestStatements("Q335478","P1540")[1].references[1]))
end

p.test2 = function()
	--local wikidata = require("وحدة:Wikidata2/ملعب").formatStatementsFromLua
	local cite_q = require("وحدة:ملعب/حبيشان/Cite Q")
	local d = mw.wikibase.getAllStatements("Q16120302","P569")
	--local e = wikidata({textformat = "text", entityId = "Q2481432", property ="P569", noref = "true", firstvalue = "1", formatting = "raw", numval = 5})
	local ff = {a={1,2,2,3},
		b=true};
	ff.a=nil
	local t =mw.wikibase.getBestStatements("Q16120302", "P570")
	--mw.log(mw.dumpObject(t))
	t=t[1].references
	--mw.log(mw.dumpObject(t))
	return (cite_q._cite_wikidata(mw.wikibase.getAllStatements("Q9960", "P106")[3].references[1], "Q9960") )
end


return p;