Table of contents
No headers

ResolvePageId

Last modified 18:51, 6 Nov 2014
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);
Page statistics
158 view(s) and 4 edit(s)

Tags

This page has no custom tags.
This page has no classifications.

Comments

You must to post a comment.

Attachments