Last modified: 2012-01-15 14:45:18 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 2381 - Copy-and-paste-friendly anchors for section headings
Copy-and-paste-friendly anchors for section headings
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-06-11 02:04 UTC by lɛʁi לערי ריינהארט
Modified: 2012-01-15 14:45 UTC (History)
2 users (show)

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


Description lɛʁi לערי ריינהארט 2005-06-11 02:04:07 UTC
Dear friends,

You probably have written lots of lines where you refered to anchors with
characters others then A-Z, a-z, 0-9.

If used in sections the anchors *some characters* need to be specified with
".XX" values as ".2C" for "," etc. Normaly piped links should be used to have
readable result. If you are not shure which characters *must* be replaced you
need to make iterative tests.

enhancement request:
If a section contains characters which would generate ".XX" two anchors should
be generated
a) the same as until now
b) one which would "correspond" to simple "copy and paste"
   shows olso examples where <nowiki> ... </nowiki> *must* be added in this case
but I consider this minor compared to ".XX" character conversion
c) situations as \\ where the section differs from the title etc. should be

bug 2346: "Special characters break section links in page history" 
could be handeled by implementing this enhancement.

Impact on existing pages by the generation of *already existing* anchors:
I assume that very few pages would already have these "alternate" anchors.

Note: It is possible to simulate this with a template. Of course only if the
special characters are used in the section.

Regards Reinhardt [[user:gangleri]]
Comment 1 lɛʁi לערי ריינהארט 2005-06-11 02:31:35 UTC
see restirictions about emulating this with a template at
Comment 2 lɛʁi לערי ריינהארט 2005-06-11 10:53:37 UTC
bug 670: "special characters in anchor part of interwiki links not escaped
relates to the roots of the problem - what should be achived
Comment 3 Rob Church 2007-01-06 17:37:56 UTC
We have the {{anchorencode}} function to help convert anchors with multiple
special characters now.

If this is still a big problem for users, then adding a second, simpler form of
the anchor - perhaps a hash? - might be an option...we obviously don't want to
change the existing anchors and break user expectations and existing links.
Comment 4 Aryeh Gregor (not reading bugmail, please e-mail directly) 2007-01-07 00:16:51 UTC
I actually attempted to implement something like this ages ago back in my patch
for bug 5019.  It would try to normalize characters with diacritics to
corresponding plain Latin characters where possible, for instance, and would
strip stuff like punctuation that couldn't be put in the anchor.  Maybe I should
review that patch someday (although Tim doesn't like using wikitext to generate
the links and wants to continue using HTML).  We can't do a simple
copy-and-paste operation, of course, because HTML id's can't contain many

Rob, adding total gibberish like a hash to anchors doesn't alleviate the problem
of hard-to-read total gibberish in anchors.  :)
Comment 5 Gustronico 2012-01-14 21:11:25 UTC
See also Bug 25107 - Enable section/paragraph hashes to be bookmarked.
Comment 6 Gustronico 2012-01-15 14:45:18 UTC
See also Bug 16691 - Section headings should have some clickable anchor for passing links

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