Module: gateway/mediawiki

(require("gateway/mediawiki"))(api, config) → {MediaWikiGateway}

Creates an instance of the MediaWiki API gateway.

Parameters:
Name Type Description
api mw.Api
config Object

Configuration that affects the major behavior of the gateway.

Properties
Name Type Description
THUMBNAIL_SIZE number

The length of the major dimension of the thumbnail.

EXTRACT_LENGTH number

The maximum length, in characters, of the extract.

acceptLanguage string

The accepted language sent in the header

Source:
Returns:
Type
MediaWikiGateway

Type Definitions

MediaWikiGateway

Type:
  • Gateway
Properties:
Name Type Description
extractPageFromResponse function
formatPlainTextExtract function
Source: