User:Nardog/CopySectLink

This script adds a button that copies the unencoded page title (with spaces, not underscores) or section path (with ) to your clipboard so it can be pasted as a clean wikilink, next to the [] link in each heading. If the edit link doesn't exist, it creates its own brackets. You may also copy the full URL by right-clicking the button and selecting your browser's native "Copy link" option.

Installation
Add the following to your common.js or global.js:

Or you may enable the script installer in and click "Install" in the infobox on this page.