Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Installation  





2 Limitations  





3 See also  














User:Nardog/AutoSectionLink

















User page
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
User contributions
User logs
View user groups
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 

< User:Nardog

AutoSectionLink
DescriptionAdds or refines the /* section link */ as you edit so only the modified section will be linked in the summary
UpdatedOctober 6, 2023
    (9 months ago)
Browser supportChrome, Firefox, etc.
SourceUser:Nardog/AutoSectionLink.js

This script adds or substitutes an accurate /* section link */ (which appears as →section link) in the summary as you edit a page (or every time you hit "Show changes" when editing an old revision). You have to have live preview enabled (Preferences → Editing → Tick Show preview without reloading the page), or it won't work well.

That is, it checks what section the modified parts of the source belong to and updates the summary accordingly. If no section heading precedes the first modified line, or the modified parts belong to no one particular section (i.e. the source has no headings or multiple highest-level sections have been modified), it adds no section link (and removes any existing one).

Whenever the summary is changed by the script, an undo button appears next to the summary box. Clicking it will restore the previous section link.

Installation[edit]

Add the following to your common.jsorglobal.js:

mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Nardog/AutoSectionLink.js&action=raw&ctype=text/javascript');

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

Limitations[edit]

See also[edit]


Retrieved from "https://en.wikipedia.org/w/index.php?title=User:Nardog/AutoSectionLink&oldid=1149615114"

Category: 
Wikipedia scripts
 



This page was last edited on 13 April 2023, at 10:00 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki