internal link button supplies bad template

Jump to: navigation, search

You know the button to "Internal link" adds the wrong template for an internal link. It serves up [[Link title]]

but it should serve up [[Link|title]]

Link - pipe - title not link - space - title

This is very annoying and a frustration when you are new editor. Can it be fixed?

Ttguy (talk)05:27, 11 November 2012

Please use underscore (_) for internal links with spaces. It also would be good if you do so for images (it is almost impossible to parse image names with camel casing and unpredictable spacing).

Thanks in advance for your help.

Yurchor (talk)06:32, 11 November 2012

You miss my point. My point is when you click the add internal link button in the editor on the wiki it suggests the format for an internal link is link space title. But that does not work. It should be telling you that it is link pipe title

Ttguy (talk)12:27, 11 November 2012
 

I think you are misunderstanding that link. It is asking for the link-name, i.e. its page name. That is all that is required to make an internal link. However, we request that you use the pipe and text, as well as "Special:myLanguage:" so that it works better for translated pages and other-language readers. Naturally the mediawiki tools don't know about that, and it's probably a major task to adapt them.

annew (talk)13:33, 11 November 2012
 

The toolbar is served using MediaWiki core, and the text is contained within the message i18n files that come with the installation.

  1. We don't edit the core files as it's impossible to keep a track of all the changes when we upgrade
  2. If we change the english text for that, we also need to change the 385 other languages. Then we need to manually patch each language file every time we upgrade.

So primarily because of point 1, unfortunately, this cannot be fixed.

Sayak Banerjee18:48, 11 November 2012

I guessed that it was probably pretty core. Maybe an enhancement request to MediaWiki pointing out the ambiguity in this buttons functionality then would be good. I reckon it should say [[<link title>]] rather than [[link title]]. Because as it stands it is not consistent with what the external link button offers up. which is [http://www.example.com link title] So for consistency the external link one could actually be [<http://www.example.com> <link title>]

or maybe [http://www.example.com LinkTitle] and [[LinkTitle]] But perhaps this is a discussion to by had on the MediaWiki web site not this one.

I will shut up now.

-)
Ttguy (talk)06:29, 12 November 2012

You might like to take the suggestion to mediawiki-l@lists.wikimedia.org for discussion :-)

annew (talk)14:11, 12 November 2012