Singleton used to obtain instances of the module:pageRegistry.Page class while avoiding creating duplicates.
- Source:
Classes
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 |
Returns:
(static) getCurrent() → {module:pageRegistry.Page}
- Source:
Get the page the user is visiting.