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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T2462, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 462 - numeric entity references for problematic characters
numeric entity references for problematic characters
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
PC All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 
workarounds.

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 
easier.
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
Hallo!

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
http://yi.wiktionary.org/w/index.php?title=project:bugzilla/00033&oldid=6887#bugzilla:00462

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.

opened
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.


Navigation
Links