kaldari created this task.
kaldari added projects: JavaScript, Wikidata, Commons, MediaWiki-Categories, 
SDC General, MediaWiki-Interwiki.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  In order to work around the fact that you can't create interwiki links to 
both Commons categories and gallery pages from a single Wikidata item, people 
have started creating category items on Wikidata and linking Commons categories 
to them instead of to the main conceptual items. While this has improved the 
interwiki links (via some voodoo with the "category's main topic" property), it 
has made utilizing Wikidata from gadgets, userscripts, and client-side 
MediaWiki code even more difficult.
  
  Now, when I try to utilize the `wgWikibaseItemId` config variable from a 
category page, for example Category:Pizzas 
<https://commons.wikimedia.org/wiki/Category:Pizzas>, I get one of the 
following results:
  
  - Nothing, if the item (e.g. Pizza <https://www.wikidata.org/wiki/Q177>) is 
linked to the gallery page instead of the category and there is no category 
item.
  - A useless item ID for the category item (e.g. Category:Pizzas 
<https://www.wikidata.org/wiki/Q6931672>) which has none of the actual data for 
the item (e.g. Pizza <https://www.wikidata.org/wiki/Q177>).
  - The correct Wikidata ID for the corresponding Wikidata item (e.g. Pizza 
<https://www.wikidata.org/wiki/Q177>).
  
  Thus it's impossible to make any effective use of Wikidata from the 
client-side on Category pages (without making multiple round-trip API queries 
to Wikidata).

TASK DETAIL
  https://phabricator.wikimedia.org/T229593

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: kaldari
Cc: Aklapper, kaldari, Tinzawoo533, darthmon_wmde, Onmir, DannyS712, Nandana, 
JKSTNK, Mh-3110, Lahi, PDrouin-WMF, Gq86, E1presidente, Ramsey-WMF, Cparle, 
Anooprao, SandraF_WMF, GoranSMilovanovic, Jayprakash12345, QZanden, enigmaeth, 
rohitt, Tramullas, Acer, LawExplorer, Salgo60, Wugapodes, Silverfish, 
Poyekhali, _jensen, rosalieper, Morgankevinj, Taiwania_Justo, Dixtosa, 
Susannaanas, Wong128hk, Jane023, Wikidata-bugs, Base, matthiasmullie, aude, 
El_Grafo, Dinoguy1000, Ricordisamoa, Wesalius, Lydia_Pintscher, Fabrice_Florin, 
Raymond, Jackmcbarn, Steinsplitter, Mbch331, Keegan
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to