Last modified: 2014-09-23 23:41:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T10588, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 8588 - Include regular page links when determining unused images
Include regular page links when determining unused images
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-01-11 20:26 UTC by Invalid Account
Modified: 2014-09-23 23:41 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
This patch allows to see usage of image pagelinks in statistics on Image: page (1.67 KB, application/octet-stream)
2008-10-17 09:46 UTC, Dmitriy Sintsov
Details
This patch allows to see usage of image pagelinks in statistics on Image: page (1.67 KB, patch)
2008-10-17 09:46 UTC, Dmitriy Sintsov
Details

Description Invalid Account 2007-01-11 20:26:31 UTC
There's the unused images special page. Well sometimes images are linked to from articles, etc. It would 
be nice if MediaWiki could add a simple search in there to crossreference unused images with images 
thare are both unused and not linked anywhere.

Obviously links from category pages would be excluded because well they shouldn't count.

This should be just some easy MySQL cross-search.
Comment 1 Rob Church 2007-01-14 22:21:46 UTC
I'm not sure that this is quite the intended purpose of the page; an image is
"used" if it appears on some page.
Comment 2 Invalid Account 2007-01-17 20:01:08 UTC
Maybe an orphaned images page?
Comment 3 Invalid Account 2007-01-19 11:06:58 UTC
Basically a cross search for images that both:
1) Those already in Special:Unusedimages
2) Those not linked to from anything except category pages.

That simple.
Comment 4 Invalid Account 2007-01-21 12:12:26 UTC
Another good thing is if "Unused files" could sort images by category.
Comment 5 Dmitriy Sintsov 2008-10-17 09:39:35 UTC
One of my wiki has pages that use a lot of image links like this one [[:Image:file.jpg]]

Wiki users were really surprised to find the following message on Image:file.jpg page:
"There are no pages that link to this file"
when there might be many pages actually likning to it.

On Special:Unusedimages there's at least a warning:
"Please note that other web sites may link to a file with a direct URL, 
and so may still be listed here despite being in active use."

On the image page you have to figure out to use "What links here" - some
users might forget about that and it's a one more click. That's very unhandy
to such wikies. Also, Image: page becomes less informative.

Images are linked with url links [[:Image:file.jpg]] because there's
many of them in the text sometimes. Also, the Image page has detailed
description of the image.

I've made a hack, which allows to optionally include such links in
statistics on Image: page. It's not too big and doesn't affect
existing installations. I hope it can be reviewed and integraded into
SVN, possibly with required fixes.
Comment 6 Dmitriy Sintsov 2008-10-17 09:46:11 UTC
Created attachment 5444 [details]
This patch allows to see usage of image pagelinks in statistics on Image: page

set 
$wgImagePageLinks=true;
in LocalSettings.php
to enable it.
Comment 7 Dmitriy Sintsov 2008-10-17 09:46:18 UTC
Created attachment 5445 [details]
This patch allows to see usage of image pagelinks in statistics on Image: page

set 
$wgImagePageLinks=true;
in LocalSettings.php
to enable it.
Comment 8 Sumana Harihareswara 2011-09-30 14:32:20 UTC
Dmitriy, thank you for writing this patch, and sorry that it's taken so long to reply!  Could you please check to see whether the current version of MediaWiki (in Subversion trunk) still has this problem, and whether your patch still cleanly applies to trunk?  Thanks!
Comment 9 Sumana Harihareswara 2011-11-24 20:02:12 UTC
Dmitriy, I'm sorry to say that your patch doesn't cleanly apply to MediaWiki's codebase anymore.  I'm marking it obsolete and removing the patch & need-review keywords.  If the problem is still happening in the current version of MediaWiki, would you be interested in revising your patch?  Thanks!
Comment 10 Sumana Harihareswara 2011-11-24 20:02:32 UTC
Comment on attachment 5445 [details]
This patch allows to see usage of image pagelinks in statistics on Image: page

Per automated testing
http://lists.wikimedia.org/pipermail/wikitech-l/2011-November/056340.html patch
no longer applies to MediaWiki trunk in Subversion.  I'm sorry for the delay in review.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links