Last modified: 2014-07-14 13:04:55 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 T18691, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16691 - Section headings should have some clickable anchor for passing links
Section headings should have some clickable anchor for passing links
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: Low enhancement with 7 votes (vote)
: ---
Assigned To: anurag3rdsep@gmail.com
https://www.mediawiki.org/wiki/Reques...
: design, easy
: 25107 31039 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-17 18:36 UTC by Brion Vibber
Modified: 2014-07-14 13:04 UTC (History)
20 users (show)

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


Attachments

Description Brion Vibber 2008-12-17 18:36:41 UTC
Say you're in the middle of a long page and want to pass somebody a link... A link to the particular section would often be more helpful than just a link to the top of the page, but to do that right now you have to jump up to the table of contents and find your section again, then click that link.

It would be nicer if the section header itself were clickable, or had a little link anchor thingy you could click next to it that had the #blah bit on it to cut-n-paste or drag-n-drop.
Comment 1 Brion Vibber 2009-03-05 18:37:29 UTC
This needs a UI mockup for how to add it without confusing things...
Comment 2 MZMcBride 2009-03-10 21:05:06 UTC
Proposed mock-up for LTR and RTL languages: http://en.wikipedia.org/w/index.php?oldid=276361042
Comment 3 Stefan Nowak 2010-04-10 18:35:02 UTC
Good idea!

I already saw this implemented within a wiki, but cannot recall the particular wiki software.

If you hovered above a headline, a paragraph-symbol appeared next to the headline. If you clicked on the paragraph-symbol, you activated the anchored link, and could simply copy the URL from the address bar then.
Comment 4 Brion Vibber 2011-09-20 16:02:20 UTC
*** Bug 31039 has been marked as a duplicate of this bug. ***
Comment 5 Dan Jacobson 2011-09-20 16:17:15 UTC
It's hard to think of any websites without this feature. Even this very Bugzilla comment of mine already has this feature.
Comment 6 Dan Jacobson 2011-09-20 16:19:50 UTC
But my "[link]" makes more sense than "#" for how to label it. See Bug 31039.
Plus no goofy hover craft needed or wanted, just plain old HTML.
Comment 7 Daniel Friesen 2011-09-20 16:23:13 UTC
IMHO an icon with alt fallback probably makes the most sense here.
Comment 8 Dan Jacobson 2011-09-20 23:18:23 UTC
(In reply to comment #7)
> IMHO an icon with alt fallback probably makes the most sense here.
Ah, http://www.fileformat.info/info/unicode/char/1f517/index.htm directly, if only it was more widespread.
Comment 9 Krinkle 2011-09-20 23:20:33 UTC
Also,  making it only appear on-hover of the heading (or atleast be less page-cluttering when not focussing it) would be nice.
Comment 10 Daniel Friesen 2011-09-21 00:10:08 UTC
(In reply to comment #9)
> Also,  making it only appear on-hover of the heading (or atleast be less
> page-cluttering when not focussing it) would be nice.

:/ angry stares from every usability oriented person taking touch screens into consideration fall upon that comment.
Comment 11 Dan Jacobson 2011-09-21 00:17:49 UTC
Allow me to demonstrate the pain of [add my usual obligatory "dragging
your heels by not fixing this" remark here] not having this feature.

To make a proper Facebook™ link, one needs
http://transgender-taiwan.org/index.php?title=%E7%8F%BE%E6%99%82%E4%BA%8B%E4%BB%B6#.E5.8F.B0.E7.81.A3TG.E8.9D.B6.E5.9C.92_2011.2F10.2F16_.E8.81.9A.E6.9C.83.EF.BC.88no.65.EF.BC.89--_.E6.89.AE.E8.A3.9D.E7.9A.87.E5.90.8E
but there's no way in h*ll the "average user" is going to cobble that
together especially on such pages without enough items to trigger a TOC.

Whatever you do make sure it still works in text browsers, even if
unfamiliar territory.
Comment 12 Gustronico 2012-01-14 21:28:23 UTC
*** Bug 25107 has been marked as a duplicate of this bug. ***
Comment 13 Gustronico 2012-01-14 21:35:19 UTC
See also Bug 2381 - Copy-and-paste-friendly anchors for section headings.

Should this bug be marked as duplicate of that older one?
Comment 14 Stefan Nowak 2012-01-14 23:36:53 UTC
(In reply to comment #13)

I consider bug 2383 related to, but NOT a duplicate, of this bug!
This bug is about how to exhibit a section anchor link to the visible user interface,
whereas bug 2383 deals with how to generate special characters in anchor links.
Comment 15 MZMcBride 2012-12-05 18:58:35 UTC
I'm not sure this is really a parser bug. I'm switching the component to "Interface" and marking this bug with the "easy" and "design" keywords.

I also added a URL: <https://www.mediawiki.org/wiki/Requests_for_comment/Clickable_section_anchors>.

I think the next steps for this bug would be doing a few real-life mock-up implementations on a test wiki and then asking wikitech-l and others which is best. This bug shouldn't be very difficult to resolve.
Comment 16 Nemo 2013-01-11 18:50:30 UTC
-easy: given that we're not even able to move the "edit" link without JS, this is probably not easy at all.
Comment 17 MZMcBride 2013-01-12 05:22:22 UTC
(In reply to comment #16)
> -easy: given that we're not even able to move the "edit" link without JS,
> this is probably not easy at all.

Read comment 15.
Comment 18 Dan Jacobson 2013-01-19 02:45:38 UTC
For instance the comment 18 link you see above is achieved with a mere 

<span class="bz_comment_number">
    <a href="show_bug.cgi?id=16691#c18">Comment 18</a>
</span>

See, even I could do that.
Comment 19 Shikha Shree 2014-02-17 14:20:35 UTC
I am new to FOSS and mediawiki how do I start on this bug and how do I replicate the error on my local machine.
Comment 21 PiRSquared17 2014-05-23 23:57:02 UTC
(In reply to Shikha Shree from comment #19)
> I am new to FOSS and mediawiki how do I start on this bug and how do I
> replicate the error on my local machine.

Are you still interested in fixing this bug?
Comment 22 anurag3rdsep@gmail.com 2014-07-06 14:29:07 UTC
I would like to take this issue, if there is noone opting for it.
Comment 23 Andre Klapper 2014-07-06 21:58:47 UTC
anurag3rdsep: Sure, go ahead! :)
Comment 24 anurag3rdsep@gmail.com 2014-07-12 15:47:29 UTC
Hello,
I just completed Mediawiki installation on my local system. Can anyone guide me as how to begin on this issue.
Comment 25 Andre Klapper 2014-07-12 20:56:00 UTC
(In reply to anurag3rdsep from comment #24)
> Can anyone guide me as how to begin on this issue.

In the spirit of https://www.mediawiki.org/wiki/Annoying_little_bugs#Feedback.2C_questions_and_support and http://catb.org/~esr/faqs/smart-questions.html which I recommend to read: What is specifically unclear with the bug description here, and what have you tried already, so we can help you?

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


Navigation
Links