Last modified: 2005-12-11 19:59:45 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 462 - numeric entity references for problematic characters
numeric entity references for problematic characters
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
PC All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-09-12 09:41 UTC by Alan Barrett
Modified: 2005-12-11 19:59 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Alan Barrett 2004-09-12 09:41:37 UTC
Some characetrs are not allowed in page names.  For example, "#" and "|" 
are not allowed at all, and "/" is not allowed at the beginning of a 
page name.  See [[en:Wikipedia:
Naming_conventions_(technical_restrictions)]] and the corresponding talk 
page for a (probably inaccurate) description of the problem and some 

In the case of some problematic characters, numeric entity references 
can be used.  For example, [[foo#bar]] is a link to anchor "bar" within 
page "foo", while [[foo#bar]] is a link to page "foo#bar".  However, 
this does not always work.  For example, attempts to use [[foo|bar]
] (representing a link that contains the pipe character) result in badly 
formed HTML output, and attempts to distinguish between space and 
underline using   and _ seem to result in both characters being 
mapped to an underline in the URL but a space in the displayed title.

Please make the behaviour consistent (preferably in a way that is as 
useful as possible), and document it.  I suspect that doing this right 
will need a real parser, but that fixing the | (pipe) bug will be 
Comment 1 Brion Vibber 2004-09-12 09:45:09 UTC

*** This bug has been marked as a duplicate of 337 ***
Comment 2 lɛʁi לערי ריינהארט 2005-12-11 19:51:00 UTC

I will reopen the bug (remove the DUPLICATE relation) and mark this bug as
INVALID because "#", "|" and "some" characters are not allowed in page titles.
There should be *no way* to generate such titles. Sorry! An "escape syntax" to
generate such titles would create lots of other problem.

What Alan experienced is no longer the case. The actual "escaping" behaviour can
be seen at

It includes both Alans method *and* escaping with <nowiki> </nowiki>.

The sections #b1 and #b2 show that the "escaped" generation of "foo|bar" does
not render properly. I open another bug and will mention this at bug 337.

Changing Component to "Page rendering". I can only test actual verions at
MediaWiki foundations wiki's and Brion's testwiki and have no idea about
relation to various other supported versions.

best regards reinhardt [[user:gangleri]]
Comment 3 lɛʁi לערי ריינהארט 2005-12-11 19:59:45 UTC
(In reply to comment #2)
> The sections #b1 and #b2 show that the "escaped" generation of "foo|bar" does
> not render properly. I open another bug and will mention this at bug 337.

Bug 4250: Escaped generation of [[foo|bar]] does not render properly

Note You need to log in before you can comment on or make changes to this bug.