Manual:Configuration settings

This is an index of all supported configuration options based on DefaultSettings.php.

$wgVersion
Contains the current version of MediaWiki, as displayed to the user.
 * Default Value - '1.4.0'

$wgSitename
The name of the site. Should be changed
 * Default Value - 'MediaWiki'

$wgMetaNamespace
The meta-namespace if different from $wgSitename
 * Default Value - FALSE

$wgServer
The base URL of the server, including protocol. (eg, "http://en.wikipedia.org")
 * Default Value - (dynamically created)

$wgServerName
The name of the server without the protocol. (eg, "en.wikipedia.org")
 * Default Value - (dynamically created)

$wgScriptPath
The base URL path.
 * Default Value - '/wiki'

$wgUsePathInfo
Whether to use 'pretty' URLs.
 * Default Value - (dynamically created)

$wgScript
the URL of index.php.
 * Default Value - "{$wgScriptPath}/index.php"

$wgRedirectScript

 * Default Value - "{$wgScriptPath}/redirect.php"

$wgStylePath
The URL of the skins directory.
 * Default Value - "{$wgScriptPath}/skins"

$wgStyleDirectory
The file system path to the skins directory
 * Default Value - "{$IP}/skins"

$wgStyleSheetPath
The URL of the directory containing the stylesheets. (Or the skins directory.)
 * Default Value - &$wgStylePath

$wgStyleSheetDirectory
The file system path of the directory containing the stylesheets. (Or the skins directory.)
 * Default Value - &$wgStyleDirectory

$wgArticlePath
The URL template used to create article links.
 * Default Value - "{$wgScript}?title=$1"

$wgUploadPath
The URL base of the upload directory.
 * Default Value - "{$wgScriptPath}/upload"

$wgUploadDirectory
The file system path of the upload directory.
 * Default Value - "{$IP}/upload"

$wgHashedUploadDirectory
If true, use the /a/ab/foo.png directory structure.
 * Default Value - true

$wgLogo
The URL of the site logo.
 * Default Value - "{$wgUploadPath}/wiki.png"

$wgMathPath
The URL base of the directory containing LaTeX math images.
 * Default Value - "{$wgUploadPath}/math"

$wgMathDirectory
The file system path of the directory containing LaTeX math images.
 * Default Value - "{$wgUploadDirectory}/math"

$wgTmpDirectory
The URL of the temporary directory.
 * Default Value - "{$wgUploadDirectory}/tmp"

$wgUploadBaseUrl

 * Default Value - ""

$wgUseSharedUploads
If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for, [[Media:..]] links). Thumbnails will also be looked for and generated in this directory.
 * Default Value - false

$wgSharedUploadPath
Full path on the web server where shared uploads can be found.
 * Default Value - " http://commons.wikimedia.org/shared/images "

$wgSharedUploadDirectory
Path on the file system where shared uploads can be found.
 * Default Value - "/var/www/wiki3/images"

$wgHashedSharedUploadDirectory
Set this to false especially if you have a set of files that need to be accessible by all wikis, and you do not want to use the hash (path/a/aa/) directory layout.

See also $wgHashedUploadDirectory.


 * Default Value - true

$wgSharedLatin1
set true if the repository uses latin1 filenames.
 * Default Value - false

$wgEmergencyContact
Site admin email address
 * Default Value - 'wikiadmin@' . $wgServerName

$wgPasswordSender
Password reminder email address The address we should use as sender when a user is requesting his password.
 * Default Value - 'Wikipedia Mail '

$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc. If sending e-mail on your server doesn't work, you might want to disable this.
 * Default Value - true

$wgEnableUserEmail
Set to true to enable user-to-user e-mail. This can potentially be abused, as it's hard to track.
 * Default Value - false;

$wgSMTP
For using a direct (authenticated) SMTP server connection. Default to false or fill an array : $wgSMTP = array( "host" => 'SMTP domain',  "IDHost" => 'domain for MessageID',  "port" => "25",  "auth" => true/false,  "username" => user,  "password" => password );


 * Default Value - false;

$wgDBserver
Database host name or ip address.
 * Default Value - 'localhost'

$wgDBname
Name of the database.
 * Default Value - 'wikidb'

$wgDBconnection

 * Default Value - ''

$wgDBuser
Database username.
 * Default Value - 'wikiuser'

$wgDBtype
Use "mysql" for working code and "PostgreSQL" for development/broken code.
 * Default Value - "mysql"

$wgSearchType
Use "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL based search engine.
 * Default Value - "MyISAM"

$wgDBprefix
Table name prefix.
 * Default Value - ''

$wgDBschema
On some databases this allows separate logical namespace for application data.
 * Default Value - 'mediawiki'

$wgSharedDB
Shared database for multiple wikis. Presently used for storing a user table for single sign-on. The server for this database must be the same as for the main database.

EXPERIMENTAL!
 * Default Value - null

$wgDBservers
Database load balancer. This is a two-dimensional array, an array of server info structures. Fields are:
 * host: Host name
 * dbname: Default database name
 * user: DB user
 * password: DB password
 * type: "mysql" or "pgsql"
 * load: ratio of DB_SLAVE load, must be >=0, the sum of all loads must be >0
 * flags: bit field:
 * DBO_DEFAULT -- turns on DBO_TRX only if !$wgCommandLineMode (recommended)
 * DBO_DEBUG -- equivalent of $wgDebugDumpSql
 * DBO_TRX -- wrap entire request in a transaction
 * DBO_IGNORE -- ignore errors (not useful in LocalSettings.php)
 * DBO_NOBUFFER -- turn off buffering (not useful in LocalSettings.php)

Leave at false to use the single-server variables above.


 * Default Value - false

$wgMasterWaitTimeout
How long to wait for a slave to catch up to the master.
 * Default Value - 10

$wgAllowSysopQueries

 * Warning: Dangerous if not configured properly.
 * Default Value - false

$wgDBsqluser

 * Default Value - 'sqluser'

$wgDBsqlpassword

 * Default Value - 'sqlpass'

$wgDBpassword

 * Default Value - 'userpass'

$wgSqlLogFile

 * Default Value - "{$wgUploadDirectory}/sqllog_mFhyRe6";

$wgDBerrorLog
File to log MySQL errors to.
 * Default Value - false

$wgDBminWordLen
See: http://dev.mysql.com/doc/mysql/en/Fulltext_Fine-tuning.html
 * MySQL 3.x : used to discard words that MySQL will not return any results for shorter values configure mysql directly.
 * MySQL 4.x : ignore it and configure mySQL.
 * Default Value - 4

$wgDBtransactions
Set to true if using InnoDB tables.
 * Default Value - false

$wgDBmysql4
Set to true to use enhanced fulltext search.
 * Default Value - false

$wgSqlTimeout

 * Default Value - 30

$wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.

eg, $wgLocalDatabases = array( (interwiki prefix) => (database name),  'WikiPedia' => 'wikipedia',  'Meta' => 'meta',  'WikiNews' => 'news' ); (Note: That is just an example, and does not reflect the real configuration)
 * Default Value - array

$wgMemCachedDebug
Will be set to false in Setup.php, if the server isn't working.
 * Default Value - false

$wgUseMemCached

 * Default Value - false

$wgMemCachedServers

 * Default Value - array( '127.0.0.1:11000' )

$wgMemCachedDebug

 * Default Value - false

$wgSessionsInMemcached

 * Default Value - false

$wgLinkCacheMemcached

 * Warning: Not fully tested.
 * Default Value - false

$wgUseTurckShm
Use Turck MMCache shared memory. You can use this for persistent caching where your wiki runs on a single server. Enabled by default if Turck is installed. Mutually exclusive with memcached, memcached is used if both are specified.
 * Default Value - false

$wgLanguageCode
Site language code. Should be one of the ./language/Language(.*).php files.
 * Default Value - 'en'

$wgLanguageFile
Filename of a language file generated by dumpMessages.php.
 * Default Value - false

$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
 * Default Value - true

$wgInputEncoding
LanguageUtf8.php normally overrides this unless you set $wgUseLatin1 to true.
 * Default Value - 'ISO-8859-1';

$wgOutputEncoding
LanguageUtf8.php normally overrides this unless you set $wgUseLatin1 to true.
 * Default Value - 'ISO-8859-1';

$wgUseLatin1
Enable ISO-8859-1 compatibility mode.
 * Default Value - false

$wgEditEncoding

 * Default Value - ''

$wgLegacyEncoding
Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked with "utf-8" flag. Use this when converting wiki to UTF-8 without the burdensome mass conversion of old text data.

NOTE! This DOES NOT touch any fields other than old_text. Titles, comments, user names, etc still must be converted en masse in the database before continuing as a UTF-8 wiki.
 * Default Value - false

$wgMimeType

 * Default Value - 'text/html'

$wgDocType

 * Default Value - '-//W3C//DTD XHTML 1.0 Transitional//EN'

$wgDTD

 * Default Value - 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'

$wgUseDynamicDates
Enable to allow rewriting dates in page text. DOES NOT FORMAT CORRECTLY FOR MOST LANGUAGES.
 * Default Value - false

$wgAmericanDates
Enable for English module to print dates as eg 'May 12' instead of '12 May'.
 * Default Value - false;

$wgTranslateNumerals
For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.
 * Default Value - true;

<!-- This is the remaining part of DefaultSettings.php that needs to be formatted, etc. $wgUseDatabaseMessages = true; $wgMsgCacheExpiry	= 86400; $wgPartialMessageCache = false;
 * 1) Translation using MediaWiki: namespace
 * 2) This will increase load times by 25-60% unless memcached is installed
 * 3) Interface messages will be get from the database.

$wgDisableLangConversion = false;
 * 1) Whether to enable language variant conversion. Currently only zh
 * 2) supports this function, to convert between Traditional and Simplified
 * 3) Chinese. This flag is meant to isolate the (untested) conversion
 * 4) code, so that if it breaks, only zh will be affected

$wgUseZhdaemon = false; $wgZhdaemonHost="localhost"; $wgZhdaemonPort=2004;
 * 1) Whether to use zhdaemon to perform Chinese text processing
 * 2) zhdaemon is under developement, so normally you don't want to
 * 3) use it unless for testing


 * 1) Miscellaneous configuration settings

$wgLocalInterwiki  = 'w'; $wgInterwikiExpiry = 10800; # Expiry time for cache of interwiki table

$wgShowIPinHeader	= true; # For non-logged in users $wgMaxNameChars    = 32; # Maximum number of bytes in username

$wgExtraSubtitle	= ''; $wgSiteSupportPage	= ''; # A page where you users can receive donations

$wgReadOnlyFile        = "{$wgUploadDirectory}/lock_yBgMBwiR"; $wgUseData = false ;

$wgDebugLogFile        = '';
 * 1) The debug log file should be not be publicly accessible if it is
 * 2) used, as it may contain private data.

/**#@+ * @global bool */ $wgDebugRedirects		= false; $wgDebugRawPage        = false; # Avoid overlapping debug entries by leaving out CSS

$wgDebugComments       = false; $wgReadOnly            = false; $wgLogQueries          = false; $wgDebugDumpSql        = false;

$wgShowSQLErrors       = false;
 * 1) Whether to show "we're sorry, but there has been a database error" pages.
 * 2) Displaying errors aids in debugging, but may display information useful
 * 3) to an attacker.

$wgUseCategoryMagic		= true;
 * 1) Should  on a page associate it with the
 * 2) category "Dog"? (a link to that category page will be
 * 3) added to the article, clicking it reveals a list of
 * 4) all articles in the category)

$wgUseCategoryBrowser  = false;
 * 1) disable experimental dmoz-like category browsing. Output things like:
 * 2) Encyclopedia > Music > Style of Music > Jazz
 * 3) FIXME: need fixing

$wgEnablePersistentLC	= false;	# Obsolete, do not use $wgCompressedPersistentLC = true; # use gzcompressed blobs $wgUseOldExistenceCheck = false; # use old prefill link method, for debugging only

/** * Keep parsed pages in a cache (objectcache table, turck, or memcached) * to speed up output of the same page viewed by another user with the * same options. * * This can provide a significant speedup for medium to large pages, * so you probably want to keep it on. */ $wgEnableParserCache = true;

/**#@-*/


 * 1) wgHitcounterUpdateFreq sets how often page counters should be
 * 2) updated, higher values are easier on the database. A value of 1
 * 3) causes the counters to be updated on every hit, any higher value n
 * 4) cause them to update *on average* every n hits. Should be set to
 * 5) either 1 or something largish, eg 1000, for maximum efficiency.

$wgHitcounterUpdateFreq = 1;


 * 1) User rights
 * 2)   It's not 100% safe, there could be security hole using that one. Use at your
 * 3) own risks.

$wgWhitelistEdit = false;  # true = user must login to edit. $wgWhitelistRead = false;	# Pages anonymous user may see, like: = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help"); $wgWhitelistAccount = array ( 'user' => 1, 'sysop' => 1, 'developer' => 1 );

$wgAllowAnonymousMinor = false; # Allow anonymous users to mark changes as 'minor'

$wgSysopUserBans       = false; # Allow sysops to ban logged-in users $wgSysopRangeBans		= false; # Allow sysops to ban IP ranges $wgDefaultBlockExpiry	= '24 hours'; # default expiry time # strtotime format, or "infinite" for an infinite block $wgAutoblockExpiry		= 86400; # Number of seconds before autoblock entries expire

$wgBlockOpenProxies = false; # Automatic open proxy test on edit $wgProxyPorts = array( 80, 81, 1080, 3128, 6588, 8000, 8080, 8888, 65506 ); $wgProxyScriptPath = "$IP/proxy_check.php"; $wgProxyMemcExpiry = 86400; $wgProxyList = array; # big list of banned IP addresses, in the keys not the values
 * 1) Proxy scanner settings

$wgSecretKey = false;
 * 1) This should always be customised in LocalSettings.php

$wgProxyKey = false; # deprecated, replaced by $wgSecretKey

$wgAccountCreationThrottle = 0;
 * 1) Number of accounts each IP address may create, 0 to disable.
 * 2) Requires memcached

$wgCachePages      = true; # Allow client-side caching of pages
 * 1) Client-side caching:

$wgCacheEpoch = '20030516000000';
 * 1) Set this to current time to invalidate all prior cached pages.
 * 2) Affects both client- and server-side caching.

$wgUseFileCache = false; $wgFileCacheDirectory = "{$wgUploadDirectory}/cache";
 * 1) Server-side caching:
 * 2)  This will cache static pages for non-logged-in users
 * 3)  to reduce database traffic on public sites.
 * 4)  Must set $wgShowIPinHeader = false

$wgUseGzip = false;
 * 1) When using the file cache, we can store the cached HTML gzipped to save disk
 * 2) space. Pages will then also be served compressed to clients that support it.
 * 3) THIS IS NOT COMPATIBLE with ob_gzhandler which is now enabled if supported in
 * 4) the default LocalSettings.php! If you enable this, remove that setting first.
 * 5) Requires zlib support enabled in PHP.
 * 1) Requires zlib support enabled in PHP.

$wgCookieExpiration = 2592000;


 * 1) Squid-related settings

$wgUseSquid = false; $wgUseESI = false; $wgInternalServer = $wgServer; $wgSquidMaxage = 18000; $wgSquidServers = array; $wgSquidServersNoPurge = array;
 * 1) Enable/disable Squid
 * 1) If you run Squid3 with ESI support, enable this (default:false):
 * 1) Internal server name as known to Squid, if different
 * 2) $wgInternalServer = 'http://yourinternal.tld:8000';
 * 1) Cache timeout for the squid, will be sent as s-maxage (without ESI) or
 * 2) Surrogate-Control (with ESI). Without ESI, you should strip out s-maxage in the Squid config.
 * 3) 18000 seconds = 5 hours, more cache hits with 2678400 = 31 days
 * 1) A list of proxy servers (ips if possible) to purge on changes
 * 2) don't specify ports here (80 is default)
 * 3) $wgSquidServers = array('127.0.0.1');

$wgMaxSquidPurgeTitles = 400;
 * 1) Maximum number of titles to purge in any one client operation

$wgSquidFastPurge = true;
 * 1) When purging, use persistent connections and don't wait for the response

$wgCookieDomain = ''; $wgCookiePath = '/'; $wgDisableCookieCheck = false;
 * 1) Cookie settings:
 * 2)   Set to set an explicit domain on the login cookies
 * 3)   eg, "justthis.domain.org" or ".any.subdomain.net"

$wgAllowExternalImages = true;
 * 1) Whether to allow inline image pointing to other websites

$wgMiserMode = false; # Disable database-intensive features $wgDisableQueryPages = false; # Disable all query pages if miser mode is on, not just some $wgUseWatchlistCache = false; # Generate a watchlist once every hour or so $wgWLCacheTimeout = 3600;    # The hour or so mentioned above

$wgUseTeX = false; $wgTexvc = './math/texvc'; # Location of the texvc binary
 * 1) To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory
 * 2) of the MediaWiki package and have latex, dvips, gs (ghostscript), and
 * 3) convert (ImageMagick) installed and available in the PATH.
 * 4) Please see math/README for more information.

$wgProfiling = false; # Enable for more detailed by-function times in debug log $wgProfileLimit = 0.0; # Only record profiling info for pages that took longer than this $wgProfileOnly = false; # Don't put non-profiling info into log file $wgProfileToDatabase = false; # Log sums from profiling into "profiling" table in db. $wgProfileSampleRate = 1; # Only profile every n requests when profiling is turned on $wgProfileCallTree = false; # If true, print a raw call tree instead of per-function report
 * 1) Profiling / debugging

$wgDebugProfiling = false; # Detects non-matching wfProfileIn/wfProfileOut calls $wgDebugFunctionEntry = 0; # Output debug message on every wfProfileIn/wfProfileOut $wgDebugSquid = false; # Lots of debugging output from SquidUpdate.php

$wgDisableCounters = false; $wgDisableTextSearch = false; $wgDisableSearchUpdate = false; # If you've disabled search semi-permanently, this also disables updates to the table. If you ever re-enable, be sure to rebuild the search table. $wgDisableUploads = true; # Uploads have to be specially set up to be secure $wgRemoteUploads = false; # Set to true to enable the upload _link_ while local uploads are disabled. Assumes that the special page link will be bounced to another server where uploads do work. $wgDisableAnonTalk = false; $wgUseDumbLinkUpdate = false; # Do DELETE/INSERT for link updates instead of incremental

/** * Anti-lock flags - bitfield *  ALF_PRELOAD_LINKS *      Preload links during link update for save *  ALF_PRELOAD_EXISTENCE *      Preload cur_id during replaceLinkHolders */ $wgAntiLockFlags = 0;

$wgDiff3 = '/usr/bin/diff3';
 * 1) Path to the GNU diff3 utility. If the file doesn't exist,
 * 2) edit conflicts will fall back to the old behaviour (no merging).

$wgCompressRevisions = false;
 * 1) We can also compress text in the old revisions table. If this is set on,
 * 2) old revisions will be compressed on page save if zlib support is available.
 * 3) Any compressed revisions will be decompressed on load regardless of this
 * 4) setting *but will not be readable at all* if zlib support is not available.

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg' );
 * 1) This is the list of preferred extensions for uploading files. Uploading
 * 2) files with extensions not in this list will trigger a warning.

$wgFileBlacklist = array(	# HTML may contain cookie-stealing JavaScript and web bugs	'html', 'htm',	# PHP scripts may execute arbitrary code on the server	'php', 'phtml', 'php3', 'php4', 'phps',	# Other types that may be interpreted by some servers	'shtml', 'jhtml', 'pl', 'py', 'cgi',	# May contain harmful executables for Windows victims	'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' );
 * 1) Files with these extensions will never be allowed as uploads.

$wgCheckFileExtensions = true;
 * 1) This is a flag to determine whether or not to check file extensions on
 * 2) upload.

$wgStrictFileExtensions = true;
 * 1) If this is turned off, users may override the warning for files not
 * 2) covered by $wgFileExtensions.

$wgUploadSizeWarning = 150000;
 * 1) Warn if uploaded files are larger than this

$wgPasswordSalt = true; # For compatibility with old installations set to false

$wgNamespacesWithSubpages = array( -1 => 0, 0 => 0, 1 => 1, 2 => 1, 3 => 1, 4 => 0, 5 => 1, 6 => 0, 7 => 1, 8 => 0, 9 => 1, 10 => 0, 11 => 1);
 * 1) Which namespaces should support subpages?
 * 2) See Language.php for a list of namespaces.

$wgNamespacesToBeSearchedDefault = array( -1 => 0, 0 => 1, 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 6 => 0, 7 => 0, 8 => 0, 9 => 1, 10 => 0, 11 => 1 );

$wgSiteNotice = "";
 * 1) If set, a bold ugly notice will show up at the top of every page.

$wgUseImageResize		= false;
 * 1) Set $wgUseImageResize to true if you want to enable dynamic
 * 2) server side image resizing ("Thumbnails")

$wgUseImageMagick		= false; $wgImageMagickConvertCommand   = '/usr/bin/convert';
 * 1) Resizing can be done using PHP's internal image libraries
 * 2) or using ImageMagick. The later supports more file formats
 * 3) than PHP, which only supports PNG, GIF, JPG, XBM and WBMP.
 * 4) Set $wgUseImageMagick to true to use Image Magick instead
 * 5) of the builtin functions
 * 1) of the builtin functions

$wgSVGConverters = array(	'ImageMagick' => '$path/convert -background white -geometry $width $input $output',	'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',	'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',	'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d $output $input',	); $wgSVGConverter = 'ImageMagick'; # Pick one of the above $wgSVGConverterPath = ''; # If not in the executable PATH, specify
 * 1) Scalable Vector Graphics (SVG) may be uploaded as images.
 * 2) Since SVG support is not yet standard in browsers, it is
 * 3) necessary to rasterize SVGs to PNG as a fallback format.
 * 4) An external program is required to perform this conversion:
 * 1) An external program is required to perform this conversion:

$wgImageHtmlCacheExpiry = 0;
 * 1) Set to a number of seconds to cache the HTML associated with an image. This
 * 2) is an emergency optimisation feature and will cause lots of problems. It is
 * 3) recommended that the expiry be very short and that the users be warned.

if( !isset( $wgCommandLineMode ) ) { $wgCommandLineMode = false; }

$wgRCSeconds = false;
 * 1) Show seconds in Recent Changes

$wgPutIPinRC = false;
 * 1) Log IP addresses in the recentchanges table

$wgRCMaxAge = 7 * 24 * 3600; # our one week cutoff
 * 1) Recentchanges items are periodically purged;
 * 2) entries older than this many seconds will go.

$wgEnableDublinCoreRdf = false; $wgEnableCreativeCommonsRdf = false;
 * 1) RDF metadata toggles

$wgRightsPage = NULL; $wgRightsUrl = NULL; $wgRightsText = NULL; $wgRightsIcon = NULL;
 * 1) Override for copyright metadata.
 * 2) TODO: these options need documentation

$wgCopyrightIcon = NULL;
 * 1) Set this to some HTML to override the rights icon with an arbitrary logo

$wgUseCopyrightUpload = false;
 * 1) Set this to true if you want detailed copyright information forms on Upload.

$wgCheckCopyrightUpload = true;
 * 1) Set this to false if you want to disable checking that detailed
 * 2) copyright information values are not empty.

$wgCapitalLinks = true;
 * 1) Set this to false to avoid forcing the first letter of links
 * 2) to capitals. WARNING: may break links! This makes links
 * 3) COMPLETELY case-sensitive. Links appearing with a capital at
 * 4) the beginning of a sentence will *not* go to the same place
 * 5) as links in the middle of a sentence using a lowercase initial.

$wgImportSources = array;
 * 1) List of interwiki prefixes for wikis we'll accept as sources
 * 2) for Special:Import (for sysops). Since complete page history
 * 3) can be imported, these should be 'trusted'.

$wgMaxCredits = 0;
 * 1) Set this to the number of authors that you want to be credited below an
 * 2) article text. Set it to zero to hide the attribution block, and a
 * 3) negative number (like -1) to show all authors. Note that this will
 * 4) require 2-3 extra database hits, which can have a not insignificant
 * 5) impact on performance for large wikis.

$wgShowCreditsIfMax = true;
 * 1) If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
 * 2) Otherwise, link to a separate credits page.

$wgSpamRegex = false; $wgFilterCallback = false;
 * 1) Text matching this regular expression will be recognised as spam
 * 2) See http://en.wikipedia.org/wiki/Regular_expression
 * 1) Similarly if this function returns true

$wgGoToEdit = false;
 * 1) Go button goes straight to the edit screen if the article doesn't exist

$wgUserHtml = true;
 * 1) Allow limited user-specified HTML in wiki pages?
 * 2) It will be run through a whitelist for security.
 * 3) Set this to false if you want wiki pages to consist only of wiki
 * 4) markup. Note that replacements do not yet exist for all HTML
 * 5) constructs.

$wgRawHtml = false;
 * 1) Allow raw, unchecked HTML in ... sections.
 * 2) THIS IS VERY DANGEROUS on a publically editable site, so
 * 3) you can't enable it unless you've restricted editing to
 * 4) trusted users only with $wgWhitelistEdit.

$wgUseTidy = false; $wgTidyBin = 'tidy'; $wgTidyConf = $IP.'/extensions/tidy/tidy.conf'; $wgTidyOpts = '';
 * 1) $wgUseTidy: use tidy to make sure HTML output is sane.
 * 2) This should only be enabled if $wgUserHtml is true.
 * 3) tidy is a free tool that fixes broken HTML.
 * 4) See http://www.w3.org/People/Raggett/tidy/
 * 5) $wgTidyBin should be set to the path of the binary and
 * 6) $wgTidyConf to the path of the configuration file.
 * 7) $wgTidyOpts can include any number of parameters.

$wgDefaultSkin = 'monobook';
 * 1) See list of skins and their symbolic names in languagel/Language.php

$wgDefaultUserOptions = array;
 * 1) Settings added to this array will override the language globals for
 * 2) the user preferences used by anonymous visitors and newly created
 * 3) accounts. (See names and sample values in languages/Language.php)
 * 4) For instance, to disable section editing links:
 * 5)   $wgDefaultUserOptions['editsection'] = 0;
 * 1)   $wgDefaultUserOptions['editsection'] = 0;

$wgAllowRealName = true;
 * 1) Whether or not to allow real name fields. Defaults to true.


 * 1) Use XML parser?

$wgUseXMLparser = false ;

$wgSkinExtensionFunctions = array; $wgExtensionFunctions = array;
 * 1) Extensions

$wgAllowUserJs = false;
 * 1) Allow user Javascript page?
 * 2) This enables a lot of neat customizations, but may
 * 3) increase security risk to users and server load.

$wgAllowUserCss = false;
 * 1) Allow user Cascading Style Sheets (CSS)?
 * 2) This enables a lot of neat customizations, but may
 * 3) increase security risk to users and server load.

$wgUseSiteJs = true;
 * 1) Use the site's Javascript page?

$wgUseSiteCss = true; $wgExtraRandompageSQL = false;
 * 1) Use the site's Cascading Style Sheets (CSS)?
 * 1) Filter for Special:Randompage. Part of a WHERE clause

$wgAllowPageInfo = false;
 * 1) Allow the "info" action, very inefficient at the moment

$wgMaxTocLevel = 999;
 * 1) Maximum indent level of toc.

$wgUseGeoMode = false;
 * 1) Recognise longitude/latitude coordinates

$wgUseValidation = false;
 * 1) Validation for print or other production versions

$wgUseExternalDiffEngine = false;
 * 1) Use external C++ diff engine (module wikidiff from the
 * 2) extensions package)

$wgUseRCPatrol = true;
 * 1) Use RC Patrolling to check for vandalism

$wgFeedLimit = 50;
 * 1) Set maximum number of results to return in syndication feeds
 * 2) (RSS, Atom) for eg Recentchanges, Newpages.

$wgFeedCacheTimeout = 60;
 * 1) _Minimum_ timeout for cached Recentchanges feed, in seconds.
 * 2) A cached version will continue to be served out even if changes
 * 3) are made, until this many seconds runs out since the last render.

$wgFeedDiffCutoff = 32768;
 * 1) When generating Recentchanges RSS/Atom feed, diffs will not be
 * 2) generated for pages larger than this size.

$wgExtraNamespaces = NULL;
 * 1) Additional namespaces. If the namespaces defined in Language.php and Namespace.php are insufficient,
 * 2) you can create new ones here, for example, to import Help files in other languages.
 * 3) PLEASE NOTE: Once you delete a namespace, the pages in that namespace will no longer be accessible.
 * 4) If you rename it, then you can access them through the new namespace name.
 * 5) Custom namespaces should start at 100 and stop at 255 (hard limit set by database)
 * 6) $wgExtraNamespaces =
 * 7) 	array(100 => "Hilfe",
 * 8) 	     101 => "Hilfe_Diskussion",
 * 9) 	     102 => "Aide",
 * 10) 	     103 => "Discussion_Aide"
 * 1) 	     103 => "Discussion_Aide"

$wgEnableSOAP = false;
 * 1) Enable SOAP interface. Off by default
 * 2) SOAP is a protocoll for remote procedure calls (RPC) using http as middleware.
 * 3) This interface can be used by bots or special clients to receive articles from
 * 4) a wiki.
 * 5) Most bots use the normal HTTP interface and don't use SOAP.
 * 6) If unsure, set to false.

$wgImageLimits = array (	array(320,240),	array(640,480),	array(800,600),	array(1024,768),	array(1280,1024),	array(10000,10000) );
 * 1) Limit images on image description pages to a user-selectable limit. In order to
 * 2) reduce disk usage, limits can only be selected from a list. This is the list of
 * 3) settings the user can choose from:

/** Navigation links for the user sidebar. * 'text' is the name of the MediaWiki message that contains the label of this link * 'href' is the name of the MediaWiki message that contains the link target of this link. *       Link targets starting with http are considered remote links. Ones not starting with *       http are considered as names of local wiki pages. */ $wgNavigationLinks = array (	array( 'text'=>'mainpage',	'href'=>'mainpage' ),	array( 'text'=>'portal',	'href'=>'portal-url' ),	array( 'text'=>'currentevents', 'href'=>'currentevents-url' ),	array( 'text'=>'recentchanges', 'href'=>'recentchanges-url' ),	array( 'text'=>'randompage',	'href'=>'randompage-url' ),	array( 'text'=>'help', 		'href'=>'helppage' ),	array( 'text'=>'sitesupport',	'href'=>'sitesupport-url' ), );

$wgCategoryMagicGallery = true;
 * 1) On category pages, show thumbnail gallery for images belonging to that category
 * 2) instead of listing them as articles.

$wgBrowserBlackList = array(	"/Mozilla\/4\.78 \[en\] \(X11; U; Linux/" // FIXME: Add some accurate, true things here );
 * 1) Browser Blacklist for unicode non compliant browsers
 * 2) Contains a list of regexps : "/regexp/"  matching problematic browsers

$wgLocaltimezone = null;
 * 1) Fake out the timezone that the server thinks it's in. This will be used
 * 2) for date display and not for what's stored in the DB.
 * 3) Leave to null to retain your server's OS-based timezone value
 * 4) This is the same as the timezone
 * 5) $wgLocaltimezone = 'GMT';
 * 6) $wgLocaltimezone = 'PST8PDT';
 * 7) $wgLocaltimezone = 'Europe/Sweden';
 * 8) $wgLocaltimezone = 'CET';

/* When translating messages with wfMsg, it is not always clear what should be considered UI messages and what shoud be content messages.

For example, for regular wikipedia site like en, there should be only one 'mainpage', therefore when getting the link of 'mainpage', we should treate it as content of the site and call wfMsgForContent, while for rendering the text of the link, we call wfMsg. The code in default behaves this way. However, sites like common do offer different versions of 'mainpage' and the like for different languages. This array provides a way to override the default behavior. For example, to allow language specific mainpage and community portal, set

$wgForceUIMsgAsContentMsg = array( 'mainpage', 'portal-url' );

$wgForceUIMsgAsContentMsg = array;

/** * Authentication plugin. */ $wgAuth = null;

/** * Global list of hooks. * Add a hook by doing: *    $wgHooks['event_name'][] = $function; * or: *    $wgHooks['event_name'][] = array($function, $data); * or: *    $wgHooks['event_name'][] = array($object, 'method'); */ $wgHooks = array;

/** * Disable internal search so that extensions can implement it. */

$wgDisableInternalSearch = false;

/** * Set this to a URL to forward search requests to some external location. * If the URL includes '$1', this will be replaced with the URL-encoded * search term. * * For example, to forward to Google you'd have something like: * $wgSearchForwardUrl = 'http://www.google.com/search?q=$1'. *                      '&domains=http://example.com'. *                      '&sitesearch=http://example.com'. *                      '&ie=utf-8&oe=utf-8'; */ $wgSearchForwardUrl = null;

/** * If true, external URL links in wiki text will be given the * rel="nofollow" attribute as a hint to search engines that * they should not be followed for ranking purposes as they * are user-supplied and thus subject to spamming. */ $wgNoFollowLinks = true; -->