Class: Page

config/MWParserEnvironment~Page()

new Page()

Represents the title, language, and other properties of a given article.

Represents the title, language, and other properties of a given article.

Source:

Members

dom

...
Properties:
Name Type Description
dom Node | null
Source:

id

The page's ID.

The page's ID. Don't get this confused w/ meta.revision.revid At present, it's only used in diff marking.

Properties:
Name Type Description
id Number | null
Source:

name

The "true" url-decoded title; ie without any url-encoding which might be necessary if the title were referenced in wikitext.

The "true" url-decoded title; ie without any url-encoding which might be necessary if the title were referenced in wikitext.

Properties:
Name Type Description
name string
Source:

ns

...
Properties:
Name Type Description
ns Number
Source:

pagelanguage

The page language code, in mediawiki format.

The page language code, in mediawiki format. Use DOMUtils.BCP47() to turn this into a proper BCP47 code suitable for inclusion in HTML5.

Properties:
Name Type Description
pagelanguage string | null
Source:

pagelanguagedir

The page directionality.

The page directionality. Either ltr or rtl.

Properties:
Name Type Description
pagelanguagedir string | null
Source:

relativeLinkPrefix

Any leading ..?/ strings that will be necessary for building links.

Any leading ..?/ strings that will be necessary for building links.

Properties:
Name Type Description
relativeLinkPrefix string
Source:

src

Start as null to distinguish the empty string.

Start as null to distinguish the empty string.

Properties:
Name Type Description
src string | null
Source:

title

A full Title object.

A full Title object.

Properties:
Name Type Description
title Object | null
Source:

Methods

hasLintableContentModel()

Does this page's content model have content that is lintable?

.

Does this page's content model have content that is lintable?

Source: