Page MenuHomePhabricator

No space after namespace:title separator (colon) in MediaWiki page titles
Closed, DuplicatePublic

Description

Hi,
I see a syntax typo I like to report.
When an image inside an article is clicked to see a larger size (NOT in Media Viewer Mode), a page will be opened with the image filename after File word before it, below image is displayed. The matter I want to point is after File word and before media's filename, there is a colon ( : ), regarding many articles on net (including Wikipedia itself) it's better/should be a space after a colon, but in this case there is no space before media's filename and after colon.
I think its better to be considered if I'm right about it.

Wikipedia - Colon
StackExchange - Spaces around a colon
Wikimania - Colon: Space after not before

Event Timeline

I don't see the word "Filename" anywhere on file description pages. Can you clarify what you mean?

Do you mean the "File:" in the page title? For example on https://en.wikipedia.org/wiki/File:The_Fighting_Temeraire,_JMW_Turner,_National_Gallery.jpg:

2020-04-01 21_24_46-Clipboard.png (2×3 px, 3 MB)

Hi @armin.taghavizad, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

I am not sure I understand. In the future, please follow https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks! :)

I go to https://commons.wikimedia.org/wiki/File:Example.jpg and I do not see the word "Filename" anywhere on that page.
Do you maybe refer to the URL (web address) of the page, and the page title File:Example.jpg displayed on top of the page? That is intentional, as the page title is the same as the part of the URL. File: is the Namespace prefix, and that is an intentional technical implementation, though it might be confusing.

Aklapper renamed this task from Typo in Wikipedia to No space after namespace:title separator (colon) in MediaWiki page titles.Apr 1 2020, 7:40 PM

I don't see the word "Filename" anywhere on file description pages. Can you clarify what you mean?

Do you mean the "File:" in the page title? For example on https://en.wikipedia.org/wiki/File:The_Fighting_Temeraire,_JMW_Turner,_National_Gallery.jpg:

2020-04-01 21_24_46-Clipboard.png (2×3 px, 3 MB)

Yes, I mean the File, I corrected my text.

Hi @armin.taghavizad, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

I am not sure I understand. In the future, please follow https://www.mediawiki.org/wiki/How_to_report_a_bug - thanks! :)

I go to https://commons.wikimedia.org/wiki/File:Example.jpg and I do not see the word "Filename" anywhere on that page.
Do you maybe refer to the URL (web address) of the page, and the page title File:Example.jpg displayed on top of the page? That is intentional, as the page title is the same as the part of the URL. File: is the Namespace prefix, and that is an intentional technical implementation, though it might be confusing.

I was referring to File, I corrected my text.
As you mentioned, this is the Page Title I'm talking about. Sorry if my text wasn't clear enough, it was my first time.
I understand what you are trying to say about technical implementation, but I'm a programmer and I think it can be a way to have the page title in a proper way still avoiding technical implementations.
at the end it was an issue I occurred and I thought it would be better if the issue be lifted as it's expected from Wikipedia.

I think this is a valid issue (I'm surprised that I couldn't find an existing bug report about it), but I'm not sure if it's really feasible to fix it. As @Aklapper said, this is how page titles are represented, and while we could change that, there is probably a lot of code that depends on the current behavior.

Additionally the behavior would have to be localisable – in English it's correct to have a space after the colon, but in French there should be a space before and after the colon, and in Japanese we should use the full-width colon character ":" (this one actually has an existing bug report: T36295). The current behavior of having no spaces is equally wrong in all languages, which seems fair ;)

@matmarex thanks for your opinion, about localisation issue; there is a manifest for localisations, this manifest will determine the language structure, for example if its RTL, etc.... I think this matter (space after/before/none) can be placed in this manifest.