User:Alex 21/script-categoriessort
User:Alex 21/script-categoriessort.js is a script that sorts categories in an article alphabetically.
Installation
To install the script, add:
importScript('User:Alex 21/script-functions.js');
importScript('User:Alex 21/script-categoriessort.js');
>>> User:Alex 21/script-functions.js is required to include multiple shared functions, and the custom "TV Scripts" header, many of which are used identically in a few of my other scripts - you only need to include it in Special:MyPage/common.js once. Follow the instructions at User:Alex 21/script-functions for installing scripts by Alex 21. <<<
Upon clicking the "Sort categories" link under "Tools" on the left, the script will sort categories alphabetically, with eponymous categories appearing first, and categories starting with "A [..]" or "The [..]" being sorted according to their second word. So, running it on an article with:
[[Category:Serial drama television series]] [[Category:American action television series]] [[Category:2010s American time travel television series]] [[Category:2012 American television series debuts]] [[Category:The CW shows]] [[Category:American adventure television series]]
will result in the categories being listed as:
[[Category:2010s American time travel television series]] [[Category:2012 American television series debuts]] [[Category:American action television series]] [[Category:American adventure television series]] [[Category:The CW shows]] [[Category:Serial drama television series]]
Bugs
Please report any bugs on the talk page of the script's creator.
See also
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.