Page MenuHomePhabricator

Embed should use localized wikitext
Open, LowPublic

Description

Currently, the wikitext embed URL is non-localized; e.g.

https://nl.wikipedia.org/wiki/Hoofdpagina#mediaviewer/Bestand:Chicago_Board_Of_Trade_Building.jpg

shows the following embed code:

[[File:Chicago_Board_Of_Trade_Building.jpg|thumb|Chicago Board Of Trade Building]]

while the localized version

[[Bestand:Chicago_Board_Of_Trade_Building.jpg|thumb|Chicago Board Of Trade Building]]

would make much more sense.


Version: master
Severity: normal

Details

Reference
bz64710

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:22 AM
bzimport added projects: MediaViewer, I18n.
bzimport set Reference to bz64710.
bzimport added a subscriber: Unknown Object (MLST).

The thumb keyword can also be localized, although I'm not sure how to access it in JS (the namespaces are stored in a config variable so that should be easy - this should probably be added to mw.Title).

Turns out mw.Title does that already, we just don't use it. Doh.

Change 131325 had a related patch set uploaded by Gergő Tisza:
Use localized namespace name in embed wikitext

https://gerrit.wikimedia.org/r/131325

Change 131325 merged by jenkins-bot:
Use localized namespace name in embed wikitext

https://gerrit.wikimedia.org/r/131325

Change 131509 had a related patch set uploaded by Gergő Tisza:
Revert "Use localized namespace name in embed wikitext"

https://gerrit.wikimedia.org/r/131509

Per Erik on multimedia list, it's enough to follow content language, as we do for UploadWizard ("File") and the editing toolbar.

(In reply to Nemo from comment #6)

Per Erik on multimedia list, it's enough to follow content language, as we
do for UploadWizard ("File") and the editing toolbar.

Those are not relevant examples: the editing toolbar is not used cross-wiki, and UploadWizard is (almost) only used on Commons, where the canonical and the contentlang namespace name is the same.

Change 131509 merged by jenkins-bot:
Revert "Use localized namespace name in embed wikitext"

https://gerrit.wikimedia.org/r/131509

(In reply to Gerrit Notification Bot from comment #8)

Change 131509 merged by jenkins-bot:
Revert "Use localized namespace name in embed wikitext"

I'm confused. What changed since the multimedia list discussion?

Nothing. I had doubts after submitting this patch so I started a mailing list thread about it; there was no consensus (nor much interest, really) so no reason not to merge (except it got forgotten for a while).

I'll leave the bug open for a while longer; if there are many complaints, I'll try the {{ns}} hack.

When there is no consensus, you should follow standards. That is, wiki content language. Whatever. Here's the link I mentioned above. http://lists.wikimedia.org/pipermail/multimedia/2014-May/000403.html

Gilles added a subscriber: Gilles.

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.

Luke081515 added a subscriber: Luke081515.

Declined per T124354. There is no consensus for this change yet. Please reopen the task if consensus reached.

This is not a configuration change, please don't use the Community-consensus-needed tag.

Tgr changed the task status from Open to Stalled.Feb 4 2016, 9:48 PM
Aklapper changed the task status from Stalled to Open.Nov 3 2020, 7:18 PM

The previous comments don't explain who or what (task?) exactly this task is stalled on ("If a report is waiting for further input (e.g. from its reporter or a third party) and can currently not be acted on"). Hence resetting task status, as tasks should not be stalled (and then potentially forgotten) for years for unclear reasons.