pageRegistry

Singleton used to obtain instances of the module:pageRegistry.Page class while avoiding creating duplicates.

Source:

Classes

Page
PageSource

Methods

(static) get(nameOrMwTitle, isGenderedopt) → {module:pageRegistry.Page}

Source:

Get a page object for a page with the specified name (either a new one or already existing).

Parameters:
Name Type Attributes Default Description
nameOrMwTitle string | external:mw.Title
isGendered boolean <optional>
true

Used to keep the gendered namespace name (if nameOrMwTitle is a string).

Returns:
Type
module:pageRegistry.Page

(static) getCurrent() → {module:pageRegistry.Page}

Source:

Get the page the user is visiting.

Returns:
Type
module:pageRegistry.Page

Classes

Page
PageSource

Methods

(static) get(nameOrMwTitle, isGenderedopt) → {module:pageRegistry.Page}

Source:

Get a page object for a page with the specified name (either a new one or already existing).

Parameters:
Name Type Attributes Default Description
nameOrMwTitle string | external:mw.Title
isGendered boolean <optional>
true

Used to keep the gendered namespace name (if nameOrMwTitle is a string).

Returns:
Type
module:pageRegistry.Page

(static) getCurrent() → {module:pageRegistry.Page}

Source:

Get the page the user is visiting.

Returns:
Type
module:pageRegistry.Page