Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eccenux/wikicategorysortkeys
Show sort keys of articles on category pages on Wikipedia (or other MediaWiki).
https://github.com/eccenux/wikicategorysortkeys
mediawiki mediawiki-gadget wikipedia
Last synced: 26 days ago
JSON representation
Show sort keys of articles on category pages on Wikipedia (or other MediaWiki).
- Host: GitHub
- URL: https://github.com/eccenux/wikicategorysortkeys
- Owner: Eccenux
- Created: 2023-06-29T00:43:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-16T10:33:50.000Z (about 2 months ago)
- Last Synced: 2024-10-11T02:03:23.611Z (26 days ago)
- Topics: mediawiki, mediawiki-gadget, wikipedia
- Language: JavaScript
- Homepage:
- Size: 354 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Wiki:CategorySortKeys
Show sort keys on category pages on Wikipedia (or other MediaWiki).
Will check sorting keys for each article in a given category. The check is done from a category page.
## Install
Use in [your en.wiki / common.js](https://en.wikipedia.org/wiki/Special:MyPage/common.js):
```js
// Show sort keys for articles in a category
if ( mw.config.get('wgCanonicalNamespace') === 'Category' ) {
importScript('User:Nux/CategorySortKeys.js');
}
```Use in [your pl.wiki / common.js](https://pl.wikipedia.org/wiki/Special:MyPage/common.js):
```js
// Show sort keys for articles in a category
if ( mw.config.get('wgCanonicalNamespace') === 'Category' ) {
importScript('User:Nux/CategorySortKeys.js');
}
```Or in **[your global.js](https://meta.wikimedia.org/wiki/Special:MyPage/global.js)**:
```js
// Show sort keys for articles in a category
if ( mw.config.get('wgCanonicalNamespace') === 'Category' ) {
importScript('User:Nux/CategorySortKeys.js');
}
```