new Page()
Represents the title, language, and other properties of a given article.
- Source:
Members
dom
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 |
- 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:
pagelanguage
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. Either ltr
or rtl
.
Properties:
Name | Type | Description |
---|---|---|
pagelanguagedir |
string
|
null
|
- Source:
relativeLinkPrefix
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.
Properties:
Name | Type | Description |
---|---|---|
src |
string
|
null
|
- Source:
title
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: