![]() | Site |
This is preliminary documentation and is subject to change.
The SiteInfo type exposes the following members.
Name | Description | |
---|---|---|
![]() | ArticlePath | The relative or absolute path to any article. $1 should be replaced by the article name. (MediaWiki 1.16+, mw:Manual:$wgArticlePath) |
![]() | BaseUrl | The absolute path to the main page. (MediaWiki 1.8+) |
![]() | ExtensionData | Gets the other extensible site information. |
![]() | FavIconUrl | |
![]() | Generator | API version information as found in $wgVersion. (MW 1.8+) |
![]() | IsReadOnly | Whether the wiki is in read-only mode. |
![]() | IsTitleCaseSensitive | Whether the first letter in a title is case-sensitive. (MediaWiki 1.8+) |
![]() | LogoUrl | |
![]() | MainPage | The title of the main page, as found in MediaWiki:Mainpage. (MediaWiki 1.8+) |
![]() | MaxArticleSize | |
![]() | MaxUploadSize | The maximum upload size on the wiki. See $wgMaxUploadSize. |
![]() | MinUploadChunkSize | |
![]() | ReadOnlyReason | The reason the wiki is in read-only mode, if applicable. (MW 1.16+) |
![]() | ScriptDirectoryPath | The base URL path relative to the document root. (MediaWiki 1.1.0+, mw:Manual:$wgScriptPath) |
![]() | ScriptFilePath | The path of index.php relative to the document root. (MediaWiki 1.1.0+, mw:Manual:$wgScript) |
![]() | ServerUrl | The absolute or protocol-relative base URL for the server. (MediaWiki 1.16+, mw:Manual:$wgServer) |
![]() | SiteName | |
![]() | Time | The current time on the server. 1.16+ |
![]() | TimeOffset | The offset of the wiki's time zone, from UTC. See $wgLocalTZoffset. (1.13+) |
![]() | TimeZoneName | The name of the wiki's time zone. See $wgLocaltimezone. 1.13+ |
![]() | Version | Gets MediaWiki API version. |