Last modified: 2011-12-14 17:37:26 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 T5833, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 3833 - Improve rendering of section links
Improve rendering of section links
Status: REOPENED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-30 15:05 UTC by PS
Modified: 2011-12-14 17:37 UTC (History)
2 users (show)

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


Attachments

Description PS 2005-10-30 15:05:05 UTC
Wikilinks containing a section reference are not rendered nicely; they are 
rendered as written unless the editor who added the link also adds a nice 
format for it too. But in this case, the appearance is non-standard which 
is also not ideal. This is an example of the problem, consider the 
appearance which a link such as this will be given to a reader:

[[Principles of NLP#Stated purpose of NLP]]

Taking this as an example, I suggest the mediawiki engine performs a 
standard rendering of wikilink sections as follows:

Article and section: [[Principles of NLP#Stated purpose of NLP]]
Rendered as one of:
  Principles of NLP: Stated purpose of NLP
  Principles of NLP [section: Stated purpose of NLP]

Section only: [[#Stated purpose of NLP]]
Rendered as one of:
  (section) Stated purpose of NLP
  (ibid) Stated purpose of NLP
Comment 1 Omegatron 2006-01-20 19:54:20 UTC
I like all of those except "ibid".
Comment 2 Michael Zajac 2006-02-24 21:17:28 UTC
Section links are also not reflected in the link's title attribute, so there is no tool-tip indicating the precise 
destination.  This is especially noticable in same-page links, which have a blank title.

I would like to see something like "Principles of NLP: Stated purpose of NLP" in a section link, and 
especially something like "Jump to 'Stated purpose of NLP' on this page" for same-page links.
Comment 3 Michael Zajac 2006-02-24 21:19:29 UTC
Note that rendering titles for section links would also render them for editor-created anchors, like 
footnotes and references.
Comment 4 Mark A. Hershberger 2011-05-15 00:36:23 UTC
Adding complexity to the parser? Not a good idea.
Comment 5 MZMcBride 2011-05-15 03:39:40 UTC
(In reply to comment #4)
> Adding complexity to the parser? Not a good idea.

This is not a valid reason to resolve a bug as "wontfix." Re-opening.

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


Navigation
Links