Last modified: 2014-07-14 13:04:55 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.
This needs a UI mockup for how to add it without confusing things...
Proposed mock-up for LTR and RTL languages: http://en.wikipedia.org/w/index.php?oldid=276361042
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.
*** Bug 31039 has been marked as a duplicate of this bug. ***
It's hard to think of any websites without this feature. Even this very Bugzilla comment of mine already has this feature.
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.
IMHO an icon with alt fallback probably makes the most sense here.
(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.
Also, making it only appear on-hover of the heading (or atleast be less page-cluttering when not focussing it) would be nice.
(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.
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.
*** Bug 25107 has been marked as a duplicate of this bug. ***
See also Bug 2381 - Copy-and-paste-friendly anchors for section headings. Should this bug be marked as duplicate of that older one?
(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.
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.
-easy: given that we're not even able to move the "edit" link without JS, this is probably not easy at all.
(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.
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.
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.
Shikha: Does https://www.mediawiki.org/w/index.php?title=Annoying_little_bugs&oldid=909298#Helpful_information_for_new_MediaWiki_coders provide some help?
(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?
I would like to take this issue, if there is noone opting for it.
anurag3rdsep: Sure, go ahead! :)
Hello, I just completed Mediawiki installation on my local system. Can anyone guide me as how to begin on this issue.
(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?