Nikki created this task. Nikki added a project: Wikidata. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION For wikibase.entityselector.search on https://gerrit.wikimedia.org/g/mediawiki/extensions/Wikibase/+/cb2ee2a765af3d7f1164b3cb0c678beb97b6bc7b/docs/topics/hooks-js.md it says > An object containing the following elements is passed as first argument :element, term and options. As second argument a function is passed allowing to add promises that return additional suggestion items. Those items will replace existing items with the same ID and will be placed on top of the list. If an item has a property rating then this property will be used for sorting the list by it descending (higher rating on top). The range of the rating should be between 0-1. It seems awkwardly phrased and I had to read it several times to understand it. The way the arguments are described for wikibase.statement.saved seems much clearer. It doesn't provide enough information for me to understand how to use this hook: - What are "element", "term" and "options"? - How should the function passed as the second argument be used? - What should the additional suggestions look like? TASK DETAIL https://phabricator.wikimedia.org/T340408 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Nikki Cc: Nikki, Aklapper, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
