Interface: ApiPageInfo
Defined in: core/query/info.ts:65
Fields prop=info contributes to ApiPage. InfoPage projects
exactly this set.
Extended by
Properties
actions?
optionalactions?:unknown[] |Record<string,boolean|ApiActionPermission[]>
Defined in: core/query/info.ts:142
Per-action permission test results, keyed by action name. Set by
intestactions=: intestactionsdetail=boolean yields a boolean per
action, while full/quick yields the array of blocking messages
(empty when the action is allowed). A PHP map, so an empty result
serializes as [].
associatedpage?
optionalassociatedpage?:string
Defined in: core/query/info.ts:218
Related page: the talk page for a subject, or vice versa.
inprop=associatedpage; subject/talk namespaces only — not emitted on
special or Media: pages.
canonicalurl?
optionalcanonicalurl?:string
Defined in: core/query/info.ts:233
Canonical URL. inprop=url.
contentmodel?
optionalcontentmodel?:ContentModel
Defined in: core/query/info.ts:67
Content model of the page's current revision.
displaytitle?
optionaldisplaytitle?:string
Defined in: core/query/info.ts:236
HTML title used for display. inprop=displaytitle.
editintro?
optionaleditintro?:Record<string,string>
Defined in: core/query/info.ts:205
Notices the edit form should show, keyed by message name (e.g.
newarticletext) with HTML values. Drawn from the whole edit-form intro
message set — newarticletext, talkpagetext, per-namespace editnotices,
Editintro pages, … — not only MediaWiki:Editintro* pages.
inprop=editintro; only for a single title per query.
Since
MediaWiki 1.41
editurl?
optionalediturl?:string
Defined in: core/query/info.ts:230
Edit-page URL. inprop=url.
fullurl?
optionalfullurl?:string
Defined in: core/query/info.ts:227
Fully-resolved canonical article URL. inprop=url.
lastrevid?
optionallastrevid?:number
Defined in: core/query/info.ts:82
Revision id of the latest revision. Existing pages only.
length?
optionallength?:number
Defined in: core/query/info.ts:85
Length of the page content in bytes. Existing pages only.
linkclasses?
optionallinkclasses?:string[]
Defined in: core/query/info.ts:250
CSS classes to apply to links to this page (core marks redirects
mw-redirect; extensions may add more). inprop=linkclasses; emitted
for every requested page, [] when there is no class for it.
new?
optionalnew?:true
Defined in: core/query/info.ts:94
true when the page is in the new-pages list (no other page links to it and
it has a single revision). A Flag — absent for established pages.
notificationtimestamp?
optionalnotificationtimestamp?:string
Defined in: core/query/info.ts:158
When the requesting user last saw the page. An empty string when never
visited (or when notifications are off), otherwise a timestamp.
inprop=notificationtimestamp.
pagelanguage?
optionalpagelanguage?:string
Defined in: core/query/info.ts:70
Page language code, e.g. en.
pagelanguagedir?
optionalpagelanguagedir?:"ltr"|"rtl"
Defined in: core/query/info.ts:76
Writing direction of the page language.
pagelanguagehtmlcode?
optionalpagelanguagehtmlcode?:string
Defined in: core/query/info.ts:73
HTML lang attribute value for the page language.
preload?
optionalpreload?:string
Defined in: core/query/info.ts:176
Text pre-filled into the edit box for a missing page, from the
EditFormPreloadText hook. '' when the page exists.
inprop=preload.
Deprecated
since MediaWiki 1.41 in favour of preloadcontent, which also reports the content model and format.
preloadcontent?
optionalpreloadcontent?:ApiPreloadedContent
Defined in: core/query/info.ts:186
Content the edit form would preload: for a page that does not exist yet,
or for an existing page when a new section would be added
(preloadnewsection=1). inprop=preloadcontent; only for a single
title/revision per query.
Since
MediaWiki 1.41
preloadisdefault?
optionalpreloadisdefault?:boolean
Defined in: core/query/info.ts:194
Whether preloadcontent is identical to the page's default content, in
which case saving it would be a no-op. inprop=preloadcontent.
Since
MediaWiki 1.41
protection?
optionalprotection?:ApiPageProtection[]
Defined in: core/query/info.ts:208
Protection entries; empty array when unrestricted. inprop=protection.
readable?
optionalreadable?:boolean
Defined in: core/query/info.ts:166
Whether the current user may read the page. A real boolean (false included).
inprop=readable.
Deprecated
since MediaWiki 1.32; use intestactions=read instead.
redirect?
optionalredirect?:true
Defined in: core/query/info.ts:88
true when the page is a redirect. A Flag (appears only when true).
restrictiontypes?
optionalrestrictiontypes?:string[]
Defined in: core/query/info.ts:211
Restriction types that apply, e.g. edit, move, create. inprop=protection.
subjectid?
optionalsubjectid?:number
Defined in: core/query/info.ts:224
Page id of the associated subject page. inprop=subjectid (talk pages only).
talkid?
optionaltalkid?:number
Defined in: core/query/info.ts:221
Page id of the associated talk page. inprop=talkid (subject pages only).
touched?
optionaltouched?:string
Defined in: core/query/info.ts:79
When the page was last touched (cache/link invalidation), not last edited. Existing pages only.
varianttitles?
optionalvarianttitles?:Record<string,string>
Defined in: core/query/info.ts:243
Display titles per language variant, keyed by variant code (e.g.
zh-hans). Also populated on wikis without language variants, where the
single key is the content language itself. inprop=varianttitles.
visitingwatchers?
optionalvisitingwatchers?:number
Defined in: core/query/info.ts:116
Number of watchers who have visited the page since their notification
timestamp. Same withholding rule as watchers.
inprop=visitingwatchers.
watched?
optionalwatched?:boolean
Defined in: core/query/info.ts:101
Whether the requesting user watches the page. A real boolean (false is
returned), unlike most watch markers. inprop=watched; requires being
logged in with the viewmywatchlist right.
watchers?
optionalwatchers?:number
Defined in: core/query/info.ts:109
Number of users watching the page. For callers without the unwatchedpages
right the count is withheld entirely while it stays below
$wgUnwatchedPageThreshold; 0 is only reported to callers with that
right. inprop=watchers.
watchlistexpiry?
optionalwatchlistexpiry?:string
Defined in: core/query/info.ts:123
When the requesting user's watch of this page expires. Requires
inprop=watched; present only when the page is watched with an
expiry (action=watch&expiry=).
watchlistlabels?
optionalwatchlistlabels?:ApiWatchlistLabel[]
Defined in: core/query/info.ts:133
Watchlist labels attached to this page by the requesting user.
inprop=watchlistlabels; requires being logged in with the
viewmywatchlist right (like watched) and
$wgEnableWatchlistLabels, and is [] when the page has none.
Since
MediaWiki 1.46
wouldautocreate?
optionalwouldautocreate?:unknown[] |Record<string,boolean>
Defined in: core/query/info.ts:151
Whether a temporary account would be auto-created for each tested action.
intestactionsautocreate=1 alongside intestactions=. A PHP map, so an
empty result serializes as [].
Since
MediaWiki 1.41