Manual:$wgServerName/en
From Linux Web Expert
<translate> Server URLs and file paths</translate>: $wgServerName | |
---|---|
The name of the server without the protocol. |
|
<translate> Introduced in version:</translate> | 1.24.0 (Gerrit change 131675; git #72c0ce43) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (string) |
<translate> Default value:</translate> | (dynamically created) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
1.3.8 – 1.16
<translate> MediaWiki versions:</translate> |
MediaWiki version: | <translate> ≥</translate> 1.24 |
This variable was added in 1.3.8, then removed in 1.17.0 (r73950), then re-introduced in 1.24.0.
Details
The name of the server without the protocol or trailing slash. (e.g. "en.wikipedia.org").
It is automatically calculated based on $wgCanonicalServer
.
It should not be customized, and will generate a warning if set.
Used in:
- RCFeed (
server_name
property) - Default value of server for
$wgEmergencyContact
and$wgPasswordSender
emails.
See also
Categories:
- MediaWiki configuration settings/en
- MediaWiki configuration settings introduced in version 1.24.0/en
- MediaWiki configuration settings still in use/en
- Path variables/en
- MediaWiki configuration settings introduced in version 1.3.8/en
- MediaWiki configuration settings removed in version 1.17.0/en
- Pages with broken file links
- MediaWiki deprecated or obsolete features/en
- Variables/en