GlobalWatchlistLinker(site)

GlobalWatchlistLinker

Constructor

new GlobalWatchlistLinker(site) #

Utility to create and update links to foreign wikis

Parameters:

Name Type Description
site string

The url for the foreign wiki

Source:

Methods

linkPage(page) → {string} #

Construct a link to a page with no extra query parameters (eg /wiki/$1)

Parameters:

Name Type Description
page string

The title of the page to link to

Source:

Returns:

Url for the link

Type
string

linkQuery(query) → {string} #

Construct a link to index.php with query parameters (eg /index.php?title=Foo&action=history)

Parameters:

Name Type Description
query string

Query parameters to append to the base link

Source:

Returns:

Url for the link

Type
string