Table of contents
No headers
/**
Resolve a list of page IDs into an array of page information objects.
pageIds (str): A comma-separated list of page IDs to resolve, or a dekiscript list
of IDs.
*/
var ids = $0 ?? $pageIds ?? __request.args.pageIds ?? [];
// If the ID list was passed in as a comma-separated string, convert it to a list
if (ids is str) {
let ids = [ num.cast(id) foreach var id in string.split(ids, ',') ];
}
var pages = wiki.getpageinfos(ids);
let export = pages;
json.emit(pages);
Comments