Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eccenux/wiki-gconfig
gConfig is a handy tool to allow users to modify settings of your MediaWiki gadget, with little hassle on your or their side.
https://github.com/eccenux/wiki-gconfig
mediawiki-gadget wikipedia
Last synced: 17 days ago
JSON representation
gConfig is a handy tool to allow users to modify settings of your MediaWiki gadget, with little hassle on your or their side.
- Host: GitHub
- URL: https://github.com/eccenux/wiki-gconfig
- Owner: Eccenux
- Created: 2023-07-13T23:33:29.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-23T12:42:23.000Z (19 days ago)
- Last Synced: 2024-12-23T13:37:47.637Z (19 days ago)
- Topics: mediawiki-gadget, wikipedia
- Language: JavaScript
- Homepage: https://pl.wikipedia.org/wiki/Wikipedia:Narz%C4%99dzia/gConfig
- Size: 427 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gConfig
gConfig is a handy tool to allow users to modify settings of your MediaWiki gadget, with little hassle on your or their side.
Dokumentacja
-------------------------------### Dla użytkowników i programistów
Dokumentacja użytkowa i dla twórców gadżetów znajduje się na Polskiej Wikipedii:
[Wikipedia:Narzędzia/gConfig](https://pl.wikipedia.org/wiki/Wikipedia:Narz%C4%99dzia/gConfig).### Wykorzystane API
Pobieranie opcji z MW:
https://www.mediawiki.org/wiki/ResourceLoader/Core_modules#mediawiki.userSprawdzanie zapisanych opcji:
```js
for (let key in mw.user.options.values) {
let value = mw.user.options.values[key]
if (key.indexOf('-gconfig-') >= 0) {
console.log(key, value);
}
}
```Zapisywanie opcji do MW:
https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.Api.plugin.options-method-saveOptionLicense
----------------------------* Main author: [MatmaRex](https://github.com/MatmaRex).
* See other authors in commit history.
* See also: [original repo](https://github.com/MatmaRex/gConfig/)License: [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/) or later.