dijs / wiki

Wikipedia Interface for Node.js
MIT License
315 stars 61 forks source link

Include 'url' in object returned in langlinks() #134

Closed ocinpp closed 3 years ago

ocinpp commented 4 years ago

Hi,

Currently, there is no URL included when getting wiki links in different languages. It may be useful to add the full URL so that there is no need to use wiki.page(title) to get the URL.

To do this, we can add the parameter llprop with the value url

Reference: https://www.mediawiki.org/w/api.php?action=help&modules=query%2Blanglinks