Community Wishlist Survey 2021/Miscellaneous/Use sitelinks to link to Commons in the Wikipedia sidebar

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search
Random proposal ►

◄ Back to Miscellaneous  The survey has concluded. Here are the results!

  • Problem: At the moment the link to Commons in the sidebars on Wikipedias and other projects is generated using the P373 ('commons category') property on Wikidata where there isn't a sitelink directly in the linked Wikidata item. P373 is frequently outdated and easy to vandalise, however, and using the sitelinks is a better way to provide the link (in particular, it is bi-directional and provides the links from Commons to the Wikipedias, and it is difficult to vandalise). Where there is a category for a topic, though, the Commons category sitelink is stored there rather than in the topic item, and does not get displayed without a P373 value. (For more background, see d:User:Mike Peel/Commons linking).
  • Who would benefit: Readers and editors going to Commons from Wikipedia articles
  • Proposed solution: The code should be updated to
  1. If there is a sitelink to Commons in the attached Wikidata item, use that (optional: unless it is to a gallery page)
  2. If there is a P910 ('topic's main category') value, follow that to the category item and use the sitelink to Commons from there
  3. If there is a P1754 ('category related to list') value, follow that to the category item and use the sitelink to Commons from there
  4. Otherwise, display nothing.
  • More comments: This is probably a straightforward change to implement, and it is an important step towards deleting P373, however it has been stuck on phabricator for over a year.
  • Phabricator tickets: phab:T232927
  • Proposer: Mike Peel (talk) 11:11, 27 November 2020 (UTC)



  • GA candidate.svg Weak support Why not? MarioSuperstar77 (talk) 19:59, 8 December 2020 (UTC)
  • Support Support Pmau (talk) 21:28, 8 December 2020 (UTC)
  • Support Support It's unfortunate that the phab task has been stuck. {{u|Sdkb}}talk 06:34, 9 December 2020 (UTC)
  • Support Support NMaia (talk) 23:55, 9 December 2020 (UTC)
  • Support Support Ciao • Bestoernesto 04:08, 10 December 2020 (UTC)
  • Support Support Robby (talk) 05:24, 10 December 2020 (UTC)
  • Support Support JAn Dudík (talk) 07:21, 10 December 2020 (UTC)
  • Support Support Rodw (talk) 08:28, 10 December 2020 (UTC)
  • Support Support Izno (talk) 16:23, 11 December 2020 (UTC)
  • Support Support BoldLuis (talk) 17:26, 11 December 2020 (UTC)
  • Support Support --Kusurija (talk) 18:57, 11 December 2020 (UTC)
  • Support Support Tom Ja (talk) 12:13, 12 December 2020 (UTC)
  • Support Support 4nn1l2 (talk) 18:15, 13 December 2020 (UTC)
  • Support Support S8321414 (talk) 14:16, 21 December 2020 (UTC)