Page MenuHomePhabricator

Remove "»" from link trail in some cases
Open, MediumPublicFeature

Description

Author: Pustomytnyk

Description:
There was a proposition to remove "»" from link trail symbols. For 5 days nobody opposed, so please update the $linkTrail.


Version: unspecified
Severity: enhancement
URL: http://uk.wikipedia.org/wiki/Вікіпедія:Кнайпа_(технічні_питання)#.D0.90.D0.B2.D1.82.D0.BE.D0.BC.D0.B0.D1.82.D0.B8.D1.87.D0.BD.D0.B0_.D0.B2.D1.96.D0.BA.D1.96.D1.84.D1.96.D0.BA.D0.B0.D1.86.D1.96.D1.8F_.D0.BB.D0.B0.D0.BF.D0.BE.D0.BA

Details

Reference
bz39835

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:53 AM
bzimport set Reference to bz39835.
bzimport added a subscriber: Unknown Object (MLST).

It seems impossible to do this as a site configuration change. Is it generally a bug in MediaWiki, or is it ukwiki that is using "»" for something different than general Ukrainian use?

Pustomytnyk wrote:

Sorry, you're right, it's MediaWiki issue. But now I'm not sure can this symbol be safely removed: why «[[ggg]]» is linked as [[ggg|«ggg»]] in Ukrainian Wikimedia projects? Other wikipedias ignore «

(In reply to comment #2)

Sorry, you're right, it's MediaWiki issue. But now I'm not sure can this symbol
be safely removed: why «[[ggg]]» is linked as [[ggg|«ggg»]] in Ukrainian
Wikimedia projects? Other wikipedias ignore «

Because in MessagesUk.php, there are:

$linkTrail = '/^([a-zабвгґдеєжзиіїйклмнопрстуфхцчшщьєюяёъы“»]+)(.*)$/sDu';

and

$linkPrefixExtension = true;
'linkprefix' => '/^(.*?)(„|«)$/sD',

I guess it could be a better fix to move linkTrail to a message, just like linkprefix, so it can be customized on site.

In either case (move to message or just modify $linkTrail) it requires core change. Moving to MediaWiki product.

Pustomytnyk wrote:

As far as I can see there is no capability to link «[[ggg]]» -> [[«ggg»]] but omit '»' in «lala [[ggg]]», so current version is most appropriate.

(In reply to comment #4)

As far as I can see there is no capability to link «[[ggg]]» -> [[«ggg»]] but
omit '»' in «lala [[ggg]]», so current version is most appropriate.

Actually both seem to create mistakes, so this is a valid bug. Removing quotes is very easy and sounded reasonable, but I guess some discussion is needed (not here) to decide what error is worse.
Another bug should probably be filed to get linktrail to be as flexible as described above, if that's the desired result.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.

I am not sure what the current consensus on this is, I will try to inquire with other community members. What I can say for sure is that we (as in the majority of ukwiki community) are annoyed at VE inserting <nowiki/> to separate «» quotation marks from the link. It should be handled by the parser this or that way, not by code artifacts.