User:Hilst/Scripts/sectionLinks

From WikiProjectMed
Jump to navigation Jump to search
sectionLinks
DescriptionConvert bare links to use {{Section link}}
Author(s)Hilst
StatusStable
First releasedJune 23, 2023; 9 months ago (2023-06-23)
UpdatedJuly 27, 2023; 8 months ago (2023-07-27)
SourceUser:Hilst/Scripts/sectionLinks.js

sectionLinks is a script that allows you to automatically convert all section links formatted like this: Example#Section to Example ยง Section.

Installation

To install the script, add:

importScript('User:Hilst/Scripts/sectionLinks.js'); // Backlink: [[User:Hilst/Scripts/sectionLinks.js]]

to Special:MyPage/common.js.

Usage

After the installation, go to any page where you would like to format its section links, and click the 'Convert section links' link. It will automatically parse the wikitext and look for section links to replace. If it can't find any, it will notify you. If it does find the links, it will replace all of them and update the page for you.

Help

If you need help, just contact me on my talk page.

Bugs and suggestions

If you find a bug or want to suggest a feature, please report it on this script's talk page.