Jarekt added a comment. |
In T74815#3314217, @Tpt wrote:The plan is to have at least one function mw.wikibase.getEntityIdForTitle( pageTitle ) -> string|null that returns the entity id of the item related to the page on the current wiki with for title pageTitle.
No the syntax should not be tied to "current wiki", as this makes it of little use for Commons, Wikisource, etc. There should be alternative syntax mw.wikibase.getEntityIdForTitle( pageTitle, globalSiteId ) -> string|null with globalSiteId the same as in mw.wikibase.entity:getSitelink function.
TASK DETAIL
EMAIL PREFERENCES
To: Jarekt
Cc: 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, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, SamanthaNguyen, Izno, aude, RandomDSdevel, He7d3r, Jdforrester-WMF, Ladsgroup, Jay8g, Tgr
Cc: 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, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, SamanthaNguyen, Izno, aude, RandomDSdevel, He7d3r, Jdforrester-WMF, Ladsgroup, Jay8g, Tgr
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs