| Tpt added a comment. |
To summary, currently mw.wikibase.getEntityIdForTitle allows to retrieve the id of the item connected to a page of the current wiki from its title as a string.
The improvement paths I see are:
- Allow the parameter to be a mw.title.Title object
- Allow to retrieve the item id from a page in an other wiki. I see two possible implementations:
- Resolve page title prefixes like w:en:. It may be very convenient because it is the way interwiki links are currently stored in wikitext.
- Add a second parameter (or an other function mw.wikibase.getEntityIdForGlobalTitle) that takes for second parameter the site id (like enwiki)
TASK DETAIL
EMAIL PREFERENCES
To: Tpt
Cc: PokestarFan, petr.matas, Supernino, Paucabot, gerritbot, Agabi10, Jan_Dittrich, srishakatux, Tpt, Jarekt, Wesalius, Zppix, czar, Strainu, Dvorapa, Base, Lucie, Pasleim, SJu, Bene, Herzi.Pinki, Mbch331, Daniel_Mietchen, Aklapper, Edgars2007, matej_suchanek, Aubrey, Accurimbono, ValterVB, Nemo_bis, Yair_rand, Liuxinyu970226, Candalua, Ricordisamoa, Wikidata-bugs, JulesWinnfield-hu, Lydia_Pintscher, hoo, Lahi, Gq86, Baloch007, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, aude, RandomDSdevel, He7d3r, Jdforrester-WMF, Ladsgroup, Jay8g, Tgr
Cc: PokestarFan, petr.matas, Supernino, Paucabot, gerritbot, Agabi10, Jan_Dittrich, srishakatux, Tpt, Jarekt, Wesalius, Zppix, czar, Strainu, Dvorapa, Base, Lucie, Pasleim, SJu, Bene, Herzi.Pinki, Mbch331, Daniel_Mietchen, Aklapper, Edgars2007, matej_suchanek, Aubrey, Accurimbono, ValterVB, Nemo_bis, Yair_rand, Liuxinyu970226, Candalua, Ricordisamoa, Wikidata-bugs, JulesWinnfield-hu, Lydia_Pintscher, hoo, Lahi, Gq86, Baloch007, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, aude, RandomDSdevel, He7d3r, Jdforrester-WMF, Ladsgroup, Jay8g, Tgr
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
