NOTE: Clickable section anchors ("§" nextToday, it is hard to page headers) were implemented and briefly deployed in March 2015share links to sections of wiki pages. HoweverSections on a page don’t have their own links, the specific way that clickexcept for in the Table section anchors were added caused issues,of Content at the top of the page. discussed belowIf the page is long, andthe reader has to scroll all the feature has been reverted and un-deployedway to the top to pinpoint the link to the section they want to share.
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 againThis task aims to make it easier for wiki readers to share links to sections of wiki pages, then click thatboth "external" links //(direct URL to the section)// and "internal" links// (wikitext for internal links)//.
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.The implementation looks like this:
== Requirements ==
# the feature is "activated" by hovering the header text;
# the link is offered in a symbol of some sort next to the header text, similar to what many [[https://docs.python.org/3/faq/general.html#general-information|do]];
# the link is a normal one, i.e. left-click centers the section (but does not copy to clipboard) and right click + copy link can be used.
== Things to watch for and possibly avoid ==
# T# Accessibility: the section symbolection share link is being read aloud by screen readers when navigating the page by headings.
# The symbol appears in unexpected places due to being included in HTML (like Geohack or Google search results)# Internationalization: the section share link should work for both left-to-right and right-to-left reading.
# Literal headings (<h2> etc.) should not have clickable section link anchors (T91271).
# No way to hide the symbol where it negatively affects the design (mostly main pages).
# The symbol [[https://en.wikipedia.org/wiki/Section_sign|§]] could be confusing, possible alternatives: [[https://en.wikipedia.org/wiki/Number_sign|#]], [[https://en.wikipedia.org/wiki/Pilcrow|¶]], [[http://www.fileformat.info/info/unicode/char/1f517/index.htm|🔗]] (last one is emoji, not widely supported), [[https://commons.wikimedia.org/wiki/File:Link_icon.svg|Link_icon.svg]].
== Possible blockers or subtasks ==
== Workarounds ==
* //(From previous task description) //Clickable section anchors ("§" next to page headers) were implemented and briefly deployed in March 2015. However, the specific way that clickable section anchors were added caused issues, discussed below, and the feature has been reverted and un-deployed.
* Currently the only way to obtain a link to a section on wikis is to go to top-of-page Table of Content, find the section you want, right click on it, and copy the link. This is a very manual process and the reader must break their reading experience to do this.
== See also ==
* RFC: https://www.mediawiki.org/wiki/Requests_for_comment/Clickable_section_anchors