The below is an example claims clause from the result of a mw.ext.UnlinkedWikibase.getEntity() call:
table#1 { [0] = table#2 { ["id"] = "Q28700152$a0680b11-4a48-2781-25ff-e9ef637db19d", ["mainsnak"] = table#3 { ["datatype"] = "quantity", ["datavalue"] = table#4 { ["type"] = "quantity", ["value"] = table#5 { ["amount"] = "+19194", ["unit"] = "1", }, }, ["hash"] = "d0917f8b8043f0fd178d1d42c3fabb213a41aa9d", ["property"] = "P1104", ["snaktype"] = "value", }, ["qualifiers"] = table#6 { ["P518"] = table#7 { [0] = table#8 { ["datatype"] = "wikibase-item", ["datavalue"] = table#9 { ["type"] = "wikibase-entityid", ["value"] = table#10 { ["entity-type"] = "item", ["id"] = "Q15138389", ["numeric-id"] = 15138389, }, }, ["hash"] = "ca3d21d2d7076c6cea1eb2d2e001c3510b423808", ["property"] = "P518", ["snaktype"] = "value", }, }, ["P585"] = table#11 { [0] = table#12 { ["datatype"] = "time", ["datavalue"] = table#13 { ["type"] = "time", ["value"] = table#14 { ["after"] = 0, ["before"] = 0, ["calendarmodel"] = "http://www.wikidata.org/entity/Q1985727", ["precision"] = 11, ["time"] = "+2023-01-07T00:00:00Z", ["timezone"] = 0, }, }, ["hash"] = "204a7a442fb66a4f00181a368dae5cf42aed4456", ["property"] = "P585", ["snaktype"] = "value", }, }, }, ["qualifiers-order"] = table#15 { "P518", [0] = "P585", }, ["rank"] = "normal", ["type"] = "statement", }, }
while an example claims clause from the result of a mw.wikibase.getEntity() call:
table#1 { table#2 { ["id"] = "Q1$c363f1e2-4306-f551-7322-6340b09df4d6", ["mainsnak"] = table#3 { ["datatype"] = "wikibase-item", ["datavalue"] = table#4 { ["type"] = "wikibase-entityid", ["value"] = table#5 { ["entity-type"] = "item", ["id"] = "Q22", ["numeric-id"] = 22, }, }, ["property"] = "P22", ["snaktype"] = "value", }, ["rank"] = "normal", ["type"] = "statement", }, table#6 { ["id"] = "Q1$896be192-4888-7c7e-8b76-8aa9dc8e4330", ["mainsnak"] = table#7 { ["datatype"] = "wikibase-item", ["datavalue"] = table#8 { ["type"] = "wikibase-entityid", ["value"] = table#9 { ["entity-type"] = "item", ["id"] = "Q23", ["numeric-id"] = 23, }, }, ["property"] = "P22", ["snaktype"] = "value", }, ["rank"] = "normal", ["type"] = "statement", }, }
What should have happened instead?:
Array should be 1-indexed in Lua.
Software version (skip for WMF-hosted wikis like Wikipedia):
REL1_39
Other information (browser name/version, screenshots, etc.):