Jump to content

User:DannyS712/PermaLinkSection

From Wikipedia, the free encyclopedia
PermaLinkSection
DescriptionPermanent links include section targets
StatusStable
First releasedAugust 6, 2019; 5 years ago (2019-08-06)
Version1.0
Updated04:25, 7 August 2019 (UTC)
SkinsVector
SourceUser:DannyS712/PermaLinkSection.js


When clicking "Permanent link", if the user is already at a specific anchor or section on the page, that anchor or section is linked to in the permanent link, rather than the top of the page.

Importation

This script can be imported to skin.js or common.js by adding:
importScript('User:DannyS712/PermaLinkSection.js'); // [[User:DannyS712/PermaLinkSection.js]]
or
{{subst:Iusc|User:DannyS712/PermaLinkSection.js}}