Page MenuHomePhabricator

colon in linked article title misinterpreted as prefix
Open, LowPublicBUG REPORT

Description

Author: shogunat

Description:
As reported by DeeBoFour20 at http://en.wikipedia.org/w/index.php?title=Wikipedia%3AHelp_desk&diff=564750403&oldid=564748007 you cannot link to the en-Wikipedia article [[DmC: Devil May Cry]] within a timeline; apparently the "DmC:" is interpreted as some sort of prefix and breaks the link. Linking to that article with exactly the same code outside the timeline environment works, so it's likely an extension issue. [[:DmC: Devil May Cry]] links to the article. See http://en.wikipedia.org/w/index.php?title=Devil_May_Cry&oldid=563543799 for a live example. I haven't tested any other pseudo-prefixes beyond [[Devil May Cry 3: Dante's Awakening]] which is rendered correctly.


Version: unspecified
Severity: normal
OS: Windows XP
Platform: PC

Details

Reference
bz51598

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:44 AM
bzimport added a project: EasyTimeline.
bzimport set Reference to bz51598.
bzimport added a subscriber: Unknown Object (MLST).

Looking at the source and some experiments, it appears EasyTimeline assumes 2 or 3 characters followed by a colon is always an interwiki link.
It doesn't actually have to do anything for interwiki links.
MediaWiki handles it so for example:
http://en.wikipedia.org/wiki/de:Berlin redirects to
http://de.wikipedia.org/wiki/Berlin
while
http://en.wikipedia.org/wiki/DmC:_Devil_May_Cry
is an English article since dmc is not an interwiki prefix.

Huon's fix [[:DmC: Devil May Cry]] only worked because it has 4 instead of 3 characters before a colon, and not because it starts with a colon.
http://en.wikipedia.org/wiki/OT:_Our_Town is an English article but [[OT: Our Town]] and [[:OT: Our Town]] would both fail in EasyTimeline. [[OT%3A Our Town]] would work, but would need a piped link to avoid an ugly display.

Aklapper changed the subtype of this task from "Task" to "Bug Report".Sep 9 2021, 6:56 PM
Aklapper removed a subscriber: wikibugs-l-list.