Manual:$wgSitename

From MediaWiki.org
Jump to: navigation, search
General Settings: $wgSitename
The name of the site.
Introduced in version: pre 1.1.0
Removed in version: still in use
Allowed values: string
Default value: 'MediaWiki'
'Wikipedia' up to v1.2.0

Other settings: Alphabetical | By Function


Details [edit]

The name of the site, as displayed throughout the site. Should always be changed from its default value. During setup, this setting should be provided on the initial setup screen, and the value provided is included in LocalSettings.php once the setup process is completed successfully.

This name gets included many times throughout the system. For instance, the Wikipedia tagline "'From Wikipedia, the free encyclopedia."' makes use of this setting. It is mainly used through the magic word "{{SITENAME}}".

If $wgMetaNamespace (the "project" namespace) is not set, it will be automatically initialized to this value. Make sure the name is appropriately formatted: valid title characters, etc. Also, it cannot be empty, contain the # character, or be the string "MediaWiki".[1]


  1. Other namespace names are technically possible, but will usually make the interface behave in unexpected ways when a page in the project namespace is visited (such as "no such user/file/special page found"-type messages).

See Also [edit]

Language: English  • français • 日本語 • Nederlands • русский