Description | Permanent links include section targets |
---|---|
Status | Stable |
First released | August 6, 2019 |
Version | 1.0 |
Updated | 04:25, 7 August 2019 (UTC) |
Skins | Vector |
Source | User: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}}