User:GhostInTheMachine/SortWhatLinksHere

From WikiProjectMed
Jump to navigation Jump to search

GhostInTheMachineTalkAllHelpMiscModulesOtherLayoutPhotosProjectsScriptsTidyingTidyingSDTODOUBXWIP2022-08-22 12:43:59

Purpose

Sorts the links displayed by the What links here page.

Use

The script runs shortly after the page is loaded so the links are displayed first in their unsorted state and then sorted.

It does nothing for other pages.

Prerequisites

None.

Installing

Add the following line to your common.js file.

{{subst:Lusc|User:GhostInTheMachine/SortWhatLinksHere.js}}

Notes

Inspired by a March 2021 request from User:Headbomb in User scripts / Requests.

Alternatives

The list of links really should be sorted by the system, so that this script is not needed

See also