Click or drag to resize

SiteInfo Properties

This is preliminary documentation and is subject to change.

The SiteInfo type exposes the following members.

Properties
 NameDescription
Public propertyArticlePath The relative or absolute path to any article. $1 should be replaced by the article name. (MediaWiki 1.16+, mw:Manual:$wgArticlePath)
Public propertyBaseUrl The absolute path to the main page. (MediaWiki 1.8+)
Public propertyExtensionData Gets the other extensible site information.
Public propertyFavIconUrl 
Public propertyGenerator API version information as found in $wgVersion. (MW 1.8+)
Public propertyIsReadOnlyWhether the wiki is in read-only mode.
Public propertyIsTitleCaseSensitive Whether the first letter in a title is case-sensitive. (MediaWiki 1.8+)
Public propertyLogoUrl 
Public propertyMainPage The title of the main page, as found in MediaWiki:Mainpage. (MediaWiki 1.8+)
Public propertyMaxArticleSize 
Public propertyMaxUploadSizeThe maximum upload size on the wiki. See $wgMaxUploadSize.
Public propertyMinUploadChunkSize 
Public propertyReadOnlyReasonThe reason the wiki is in read-only mode, if applicable. (MW 1.16+)
Public propertyScriptDirectoryPath The base URL path relative to the document root. (MediaWiki 1.1.0+, mw:Manual:$wgScriptPath)
Public propertyScriptFilePath The path of index.php relative to the document root. (MediaWiki 1.1.0+, mw:Manual:$wgScript)
Public propertyServerUrl The absolute or protocol-relative base URL for the server. (MediaWiki 1.16+, mw:Manual:$wgServer)
Public propertySiteName 
Public propertyTime The current time on the server. 1.16+
Public propertyTimeOffset The offset of the wiki's time zone, from UTC. See $wgLocalTZoffset. (1.13+)
Public propertyTimeZoneName The name of the wiki's time zone. See $wgLocaltimezone. 1.13+
Public propertyVersion Gets MediaWiki API version.
Top
See Also