User:GhostInTheMachine/SubPages
Appearance
GhostInTheMachine • Talk • All • Barnstars • Help • Misc • Modules • Other • Layout • Photos • Projects • Scripts • Tidying • TidyingSD • UBX • WIP • 2020-09-04 09:10:41 |
Purpose
This script adds a button to the page menu (after Talk
) to list the subpages of the current page.
The button is not displayed for the main article namespace.
Prerequisites
None.
Use
The script adds the Subpages
button after the Talk
button on the page menu.
Articles in the main namespace cannot have subpages, so the button is not displayed for articles.
Installing
Add the following line to your common.js file.
{{subst:lusc|User:GhostInTheMachine/SubPages.js}}
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
- 2018-05-08 User:Bellezzasolo/Scripts/subpages — subpages of the current page
- 2018-09-23 User:BrandonXLF/Subpages — subpages of the current page
Possible improvements
- Do not display the button for category pages or files
- Test for subpages and then only display the button if there are some