Interface: ApiSiteGeneral
Defined in: core/query/siteinfo.ts:70
Fields of query.general (siprop=general), closed on the 1.43 core key
set — extend by declaration merging for site- or extension-specific keys.
Properties
allcentralidlookupproviders
allcentralidlookupproviders:
string[]
Defined in: core/query/siteinfo.ts:294
All available central-id lookup providers.
allunicodefixes
allunicodefixes:
boolean
Defined in: core/query/siteinfo.ts:189
Whether all Unicode normalization fixes are applied. A real boolean.
articlepath
articlepath:
string
Defined in: core/query/siteinfo.ts:109
Path pattern to an article, with $1 for the title.
base
base:
string
Defined in: core/query/siteinfo.ts:75
Canonical URL of the main page.
case
case:
CaseSensitivity
Defined in: core/query/siteinfo.ts:90
Title case-sensitivity for the wiki.
categorycollation
categorycollation:
string
Defined in: core/query/siteinfo.ts:300
Category sort order algorithm, e.g. uppercase / unicode.
centralidlookupprovider
centralidlookupprovider:
string
Defined in: core/query/siteinfo.ts:291
Method used to look up a user's central account id.
dbtype
dbtype:
string
Defined in: core/query/siteinfo.ts:148
DBMS driver, e.g. sqlite / mysql.
dbversion
dbversion:
string
Defined in: core/query/siteinfo.ts:151
DBMS server version string.
externalimages?
optionalexternalimages?:string[]
Defined in: core/query/siteinfo.ts:252
Host prefixes external images may be loaded from; [""] when external
images are allowed at large ($wgAllowExternalImages).
externallinktarget
externallinktarget:
string|boolean
Defined in: core/query/siteinfo.ts:279
target for external links. A real boolean (false) while the site sets
no target, otherwise the attribute string such as _blank.
fallback
fallback:
object[]
Defined in: core/query/siteinfo.ts:211
Language fallback chain of the content language, one entry per fallback
code. An empty PHP list serializes as [].
code
code:
string
Fallback language code.
fallback8bitEncoding
fallback8bitEncoding:
string
Defined in: core/query/siteinfo.ts:217
Fallback encoding for 8-bit text, e.g. windows-1252.
favicon?
optionalfavicon?:string
Defined in: core/query/siteinfo.ts:246
Site favicon URL; absent when the site sets no $wgFavicon.
fixarabicunicode?
optionalfixarabicunicode?:true
Defined in: core/query/siteinfo.ts:197
Whether Arabic-specific Unicode fixes are applied. A Flag.
Deprecated
since MediaWiki 1.45; the underlying config was removed in 1.35
(the field always reported true) and is no longer emitted.
fixmalayalamunicode?
optionalfixmalayalamunicode?:true
Defined in: core/query/siteinfo.ts:205
Whether Malayalam-specific Unicode fixes are applied. A Flag.
Deprecated
since MediaWiki 1.45; the underlying config was removed in 1.35
(the field always reported true) and is no longer emitted.
galleryoptions
galleryoptions:
ApiGalleryOptions
Defined in: core/query/siteinfo.ts:255
Gallery rendering defaults.
generator
generator:
string
Defined in: core/query/siteinfo.ts:84
Generator, e.g. MediaWiki 1.43.0.
git-branch?
optionalgit-branch?:string
Defined in: core/query/siteinfo.ts:309
Git branch of the deployment; only present on git checkouts.
git-hash?
optionalgit-hash?:string
Defined in: core/query/siteinfo.ts:312
Git commit hash of the deployment; only present on git checkouts.
imagelimits
imagelimits:
Record<string,ApiImageLimit>
Defined in: core/query/siteinfo.ts:264
Selectable image-display size presets, keyed by position. Always an object under formatversion=2.
imagewhitelistenabled?
optionalimagewhitelistenabled?:boolean
Defined in: core/query/siteinfo.ts:157
Whether the image whitelist is active. A real boolean, emitted only while
the site disallows inline external images ($wgAllowExternalImages off).
interwikimagic
interwikimagic:
boolean
Defined in: core/query/siteinfo.ts:282
Whether interwiki prefixes may be used as magic links. A real boolean.
invalidusernamechars
invalidusernamechars:
string
Defined in: core/query/siteinfo.ts:186
Characters illegal in usernames.
lang
lang:
string
Defined in: core/query/siteinfo.ts:93
Content language code, e.g. en.
langconversion
langconversion:
boolean
Defined in: core/query/siteinfo.ts:160
Whether language conversion is enabled. A real boolean.
legaltitlechars
legaltitlechars:
string
Defined in: core/query/siteinfo.ts:183
Characters legal in page titles, as a regex character class body.
linkconversion
linkconversion:
boolean
Defined in: core/query/siteinfo.ts:171
Whether interwiki-link conversion is enabled. A real boolean.
linkprefix
linkprefix:
string
Defined in: core/query/siteinfo.ts:177
Link-prefix regex (legacy; "" when unused).
linkprefixcharset
linkprefixcharset:
string
Defined in: core/query/siteinfo.ts:174
Charset allowed for interwiki link prefixes ("" when unused).
linktrail
linktrail:
string
Defined in: core/query/siteinfo.ts:180
Regex deciding how much of a link trails into surrounding text.
logo
logo:
string
Defined in: core/query/siteinfo.ts:81
Site logo URL.
magiclinks
magiclinks:
unknown[] |Record<string,boolean>
Defined in: core/query/siteinfo.ts:288
Magic-link keywords and whether each is enabled; mirrors
$wgEnableMagicLinks verbatim, so an empty set serializes as [].
mainpage
mainpage:
string
Defined in: core/query/siteinfo.ts:72
Main page title.
mainpageisdomainroot
mainpageisdomainroot:
boolean
Defined in: core/query/siteinfo.ts:142
Whether the main page is served at the domain root (i.e. $wgArticlePath
is /$1). A real boolean.
maxarticlesize
maxarticlesize:
number
Defined in: core/query/siteinfo.ts:136
Maximum article size in bytes.
maxuploadsize
maxuploadsize:
number
Defined in: core/query/siteinfo.ts:240
Maximum upload size in bytes; an array $wgMaxUploadSize collapses to its
* entry.
minuploadchunksize
minuploadchunksize:
number
Defined in: core/query/siteinfo.ts:243
Minimum chunk size for staged uploads, in bytes.
misermode
misermode:
boolean
Defined in: core/query/siteinfo.ts:297
Whether misc (miser-mode) features are enabled. A real boolean.
nofollowdomainexceptions
nofollowdomainexceptions:
string[]
Defined in: core/query/siteinfo.ts:273
Domains exempted from nofollowlinks.
nofollowlinks
nofollowlinks:
boolean
Defined in: core/query/siteinfo.ts:267
Whether nofollow is added to external links. A real boolean.
nofollownsexceptions
nofollownsexceptions:
number[]
Defined in: core/query/siteinfo.ts:270
Namespaces exempted from nofollowlinks.
phpsapi
phpsapi:
string
Defined in: core/query/siteinfo.ts:145
PHP SAPI name, e.g. apache2handler / fpm-fcgi.
phpversion
phpversion:
string
Defined in: core/query/siteinfo.ts:87
PHP version string.
readonly
readonly:
boolean
Defined in: core/query/siteinfo.ts:99
Whether the wiki is read-only. A real boolean.
readonlyreason?
optionalreadonlyreason?:string
Defined in: core/query/siteinfo.ts:231
Why the wiki is read-only; only present while readonly is true.
rtl
rtl:
boolean
Defined in: core/query/siteinfo.ts:96
Whether the content language is right-to-left. A real boolean.
script
script:
string
Defined in: core/query/siteinfo.ts:115
Full path to index.php.
scriptpath
scriptpath:
string
Defined in: core/query/siteinfo.ts:112
Path to index.php, without the host.
server
server:
string
Defined in: core/query/siteinfo.ts:118
Server host (protocol-relative or bare), e.g. //www.mediawiki.org.
servername
servername:
string
Defined in: core/query/siteinfo.ts:121
Server host name.
sitename
sitename:
string
Defined in: core/query/siteinfo.ts:78
Site name.
thumblimits
thumblimits:
Record<string,number>
Defined in: core/query/siteinfo.ts:261
Selectable thumbnail widths, in pixels, keyed by position. Always an object
under formatversion=2, even though the value is a list server-side.
time
time:
string
Defined in: core/query/siteinfo.ts:127
Current server time.
timeoffset
timeoffset:
number
Defined in: core/query/siteinfo.ts:133
Timezone offset from UTC in seconds.
timezone
timezone:
string
Defined in: core/query/siteinfo.ts:130
Site timezone id.
titleconversion
titleconversion:
boolean
Defined in: core/query/siteinfo.ts:168
Whether title conversion is enabled. A real boolean, mirroring
linkconversion.
Deprecated
Soft-deprecated since MediaWiki 1.36; use linkconversion.
uploadsenabled
uploadsenabled:
boolean
Defined in: core/query/siteinfo.ts:234
Whether uploads are enabled. A real boolean ($wgEnableUploads).
variantarticlepath
variantarticlepath:
string|boolean
Defined in: core/query/siteinfo.ts:306
$wgVariantArticlePath as configured: the URL pattern, or false when
unset.
variants?
optionalvariants?:object[]
Defined in: core/query/siteinfo.ts:220
Language variants of the content language; absent without variant support.
code
code:
string
Variant code, e.g. zh-cn.
name
name:
string
Variant name in its own language.
wikiid
wikiid:
string
Defined in: core/query/siteinfo.ts:124
Wiki id, e.g. mediawikiwiki.
writeapi
writeapi:
true
Defined in: core/query/siteinfo.ts:106
Whether the write API is enabled. A Flag.
Deprecated
since MediaWiki 1.32; the write API can no longer be disabled.