macbre / nodemw

MediaWiki API and WikiData client written in Node.js
https://www.npmjs.com/package/nodemw
BSD 2-Clause "Simplified" License
239 stars 55 forks source link

Allow to enumerate/include redirects #134

Open gakada opened 7 years ago

gakada commented 7 years ago

E.g., apfilterredir in getPagesInNamespace and getAllPages (Allpages).

For example, getAllPagesInNamespace with all and getRedirectsInNamespace with redirects.

gakada commented 7 years ago

Another thing about redirects is noredirect in move.

Naleksuh commented 4 years ago

So the idea here is that .getAllPages will support whether to include, exclude, or include only redirects? This is good as it currently only allows excluding, annoying.

gakada commented 4 years ago

There is a more general problem, all functions have hard-coded params (with only upload having extraParams), so one can find many issues, like this one, or https://github.com/macbre/nodemw/issues/133, or not being able to query sha1 (in revisions and image info), etc.