User:GhostInTheMachine/SubPages

Purpose
The script adds a Subpages option after the Talk button on the page menu.

Articles in the main namespace cannot have sub-pages, so the option is not displayed for articles. (This is not quite true, there are some sub-pages in article space, but they tend to be old.)

Use
The new menu option jumps to the special page that lists sub-pages.

Prerequisites
None.

Installing
Add the following line to your common.js file.

Alternatives
Seems that this is almost the "Hello World!" script ...


 * 2012-08-05 User:PrimeHunter/My subpages.js just the subpages of the current user's page
 * 2014-04-08 User:PrimeHunter/Subpages.js subpages of the current page
 * 2018-05-08 User:Bellezzasolo/Scripts/subpages subpages of the current page
 * 2018-09-23 User:BrandonXLF/Subpages subpages of the current page

From Subpages Add a subpages link to the sidebar Tools menu:

Possible improvements

 * Do not display the button for category pages or files
 * Always test for subpages and then only display the button if there are some
 * Resolve the burning question of "subpages" vs. "sub-pages".