Class: PageGateway

PageGateway(api)

new PageGateway(api)

API for providing Page data

Parameters:
Name Type Description
api mw.Api
Source:

Methods

getPageLanguages(title, languageopt) → {jQuery.Deferred}

Retrieve available languages for a given title

Parameters:
Name Type Attributes Description
title string

the title of the page languages should be retrieved for

language string <optional>

when provided the names of the languages returned will be translated additionally into this language.

Source:
Returns:

which is called with an object containing langlinks and variant links as defined @ https://en.m.wikipedia.org/w/api.php?action=help&modules=query%2Blanglinks

Type
jQuery.Deferred

invalidatePage(title)

Invalidate the internal cache for a given page

Parameters:
Name Type Description
title string

the title of the page who's cache you want to invalidate

Source: