Analogue to [[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.entity:getBestStatements|mw.wikibase.entity:getBestStatements]] there should be a mw.wikibase.entity:getStatements convenience function which returns all Statements (except for deprecated Statements, probably).
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Invalid | None | T112073 Lua in Wikibase (tracking) | |||
Open | None | T182147 more convenience functions for Lua | |||
Resolved | eranroz | T166056 Add mw.wikibase.entity:getStatements for convenience |
Event Timeline
Ok. (Please mention that as we have too many tickets without an actual user request behind them.)
Change 383990 had a related patch set uploaded (by Eranroz; owner: Eranroz):
[mediawiki/extensions/Wikibase@master] getAllStatements and access to property by name
For future reference/answer to the good question of Lydia above: (my) intention is to upstream some code from https://en.wikipedia.org/wiki/Module:Wikidata (used in many other wikis) to the library itself.
This would allow better code sharing and more maintained code and may prevent issues as T178114.
Change 403177 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Wikibase@master] Streamline mw.wikibase.entity:getAllStatements
Change 383990 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] getAllStatements and access to property by name
Change 403177 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Streamline mw.wikibase.entity:getAllStatements
has the functionality here been added to an FAQ or help pages on Wikidata and/or Meta?