Module: gateway

(require("gateway"))(el, config, title) → {string|null}

Select the general gateway type depending on the applicable popup type.

Parameters:
Name Type Description
el Element
config mw.Map
title mw.Title
Source:
Returns:
Type
string | null

Type Definitions

AbortPromise

A Promise, usually for a long running or costly task such as an HTTP request, that is abortable.

Type:
  • JQuery.Promise.<T>
Properties:
Name Type Description
abort function
Source:

ConvertPageToModel()

Converts the API response to a preview model. Exposed for testing only.

Source:

FetchPreviewForTitle()

Fetches a preview for a page or reference.

If the underlying request is successful and contains data for the requested title, then the resulting promise will resolve. If not, then it will reject.

Source:

Gateway

The interface implemented by all preview gateways.

Properties:
Name Type Description
fetch function
fetchPreviewForTitle FetchPreviewForTitle
convertPageToModel ConvertPageToModel
Source: