Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

User:Hilst/Scripts/sectionLinks

From Wikipedia, the free encyclopedia
sectionLinks
DescriptionConvert bare links to use {{Section link}}
Author(s)Hilst
StatusStable
First releasedJune 23, 2023; 16 months ago (2023-06-23)
UpdatedJuly 27, 2023; 15 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

[edit]

To install the script, add:

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

to Special:MyPage/common.js.

Usage

[edit]

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

[edit]

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

Bugs and suggestions

[edit]

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