Page MenuHomePhabricator

changing format within a link (without piping it [[like this|like ''this'']])
Closed, DeclinedPublic

Description

Author: charlottethewebb

Description:
I've been noticing a lot of edits like this:

http://en.wikipedia.org/w/index.php?title=Hard_Candy&diff=67297741&oldid=62696916

http://en.wikipedia.org/w/index.php?title=Pok%C3%A9mon&diff=105187516&oldid=104903353
Where the effect of piping the link is only to make it partly italic and partly not.

So then I wondered, for the first example, why can't we write:

[[''Hard Candy'' (album)]]

to make the words "Hard Candy" italic, leaving the word "(album)" normal format.
Currently this would produce a red link, to a title with two pairs of actual
apostrophes. But, I can't think of any legitimate title that would contain an
apostrophe followed by another apostrophe. Generally if somebody does that they
meant to use a quotation mark.

So I was wondering if we could change the interpretation of wiki-text to ignore
grouped apostrophes when determining the target of a link, and use them as
format instructions instead.

(for example, [[RMS ''Titanic'']] would be half-italic and still point to
"RMS_Titanic" "RMS_%27%27Titanic%27%27")

charlotte


Version: unspecified
Severity: enhancement

Details

Reference
bz8871

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 9:32 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz8871.
bzimport added a subscriber: Unknown Object (MLST).

charlottethewebb wrote:

(for example, [[RMS ''Titanic'']] would be half-italic and still point to
"RMS_Titanic" "RMS_%27%27Titanic%27%27")

(can we get a preview button for bugzilla by any chance?)

charlottethewebb wrote:

correction, such a link does not actually point to anything, see
http://en.wikipedia.org/w/index.php?title=User:CharlotteWebb/Sandbox&diff=prev&oldid=105511887

But apparently it does in the edit summary for some reason

robchur wrote:

Actually, there are some languages which use double apostrophes or a very
similar character combination in their titles; it caused a bit of annoyance when
fixing up the link handling code in early 2006.

ayg wrote:

Neapolitan? I thought they were using some kind of workaround for that, though. Do they actually
have titles containing literally "''"?

Yes they did at least, I don't know what they do nowdays. I'm in favor of wontfixing this bug, since being able to link to articles is more important that shortcut for styling the links, unless you can think of a way having both.

DannyS712 closed this task as Declined.EditedJun 5 2020, 11:29 AM
DannyS712 subscribed.

Boldly declining - piping is pretty easy, and there are reasons for having wikitext syntax as part of the intended link (eg Neapolitan discussed above)