Page MenuHomePhabricator

Redirects (multiple names) for image inclusions
Closed, ResolvedPublic

Description

Sorry if there's already a bug for this, I couldn't find one - it seems to tie into handling of
image redirects and proper image renaming.

The images on Wikimedia Commons are used by projects in every language. Many of the names are
language-neutral, but many are not and can't reasonably be made language neutral, making them
cryptic when used in projects not matching the language. We need a way to be able to create
multiple names referring to a single image. As a simple example, [[:Commons:Image:Den tyske ordens
skjold.jpg]] has a Norwegian name, which in English is roughly "Teutonic shield". Ideally the
English Wikipedia should be able to use [[Image:Teutonic shield.jpg]] instead of [[Image:Den tyske
ordens skjold.jpg]], without uploading redundant copies of the image to Commons or En. More
discussion at:

[[:Commons:Village_pump#Foreign_language_image_redirects]]
[[:Commons:Village_pump_archive-17#Redirects_within_the_image_namespace]]

Thanks.


Version: unspecified
Severity: enhancement

Details

Reference
bz4470

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:01 PM
bzimport set Reference to bz4470.
bzimport added a subscriber: Unknown Object (MLST).

gangleri wrote:

See bug comment 30
bug 710: Redirect to category page doesn't work

gangleri wrote:

Sorry!

See bug 710 comment 30
bug 710: Redirect to category page doesn't work

ayg wrote:

Summary changed for easier searching. (If you liked the old one better, at
least include the word "redirect" somewhere, please.)

stanley wrote:

Identical images problem can be avoided when the time bug 5763 got fixed.

  • Bug 7012 has been marked as a duplicate of this bug. ***

I've done some basic testing, which shows the following behavior:

  • If Image:A redirects to Image:B and the latter exists, [[Image:A]] displays Image:B. Clicking it takes you to Image:B
  • If Image:A redirects to Image:B and the description page exists but has no associated image, a link to Image:B is rendered with "Image:A" as caption.
  • If Image:A redirects to Image:B and the latter doesn't exist, [[Image:A]] displays a red link captioned "Image:A" and leading to [[Special:Upload/A]]. It would probably be advisable for Special:Upload to display a warning in this case ("You're attempting to overwrite a dead redirect to Image:B"), or to just link to [[Image:A]], mirroring the behavior for regular double redirects.
  • If Image:A redirects to Image:B, which is in turn a redirect, A RED LINK TO Special:Upload/A IS DISPLAYED. This is very likely undesired behavior.

These testcases were all run on a local image repo, haven't tested with remote repos (in that case a remote image can exist without a local description page).

  • Bug 13546 has been marked as a duplicate of this bug. ***