| hoo created this task. hoo added projects: Wikibase-Lua, Wikidata. Herald added a subscriber: Aklapper. |
TASK DESCRIPTION
Example from a newly created Item without Statements:
mw.logObject(mw.wikibase.getEntity('Q52725253'))
table#1 {
metatable = table#2
["id"] = "Q52725253",
["labels"] = table#3 {
metatable = table#4
["de"] = table#5 {
["language"] = "de",
["value"] = "Mengnong",
},
},
["schemaVersion"] = 2,
["sitelinks"] = table#6 {
metatable = table#7
["dewiki"] = table#8 {
["badges"] = table#9 {
},
["site"] = "dewiki",
["title"] = "Mengnong",
},
},
["type"] = "item",
}To make entities easier to work with, they should always contain an (empty) "claims", "aliases" … table, like wbgetentities does.
Output of https://www.wikidata.org/w/api.php?action=""> for reference:
{ "entities": { "Q52725253": { "pageid": 53533206, "ns": 0, "title": "Q52725253", "lastrevid": 675010500, "modified": "2018-05-06T14:58:34Z", "type": "item", "id": "Q52725253", "labels": { "de": { "language": "de", "value": "Mengnong" } }, "descriptions": {}, "aliases": {}, "claims": {}, "sitelinks": { "dewiki": { "site": "dewiki", "title": "Mengnong", "badges": [] } } } }, "success": 1 }
TASK DETAIL
EMAIL PREFERENCES
To: hoo
Cc: Aklapper, hoo, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
Cc: Aklapper, hoo, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
