MediaWiki  1.33.1
DefaultSettings.php
Go to the documentation of this file.
1 <?php
41 
47 if ( !defined( 'MEDIAWIKI' ) ) {
48  echo "This file is part of MediaWiki and is not a valid entry point\n";
49  die( 1 );
50 }
51 
60 
68  'main' => 'GlobalVarConfig::newInstance'
69 ];
70 
75 $wgVersion = '1.33.1';
76 
80 $wgSitename = 'MediaWiki';
81 
89 
107 
116 
123 
124 /************************************************************************/
138 $wgScriptPath = '/wiki';
139 
157 $wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
158  ( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
159  ( strpos( PHP_SAPI, 'isapi' ) === false );
160 
163 /************************************************************************/
186 $wgScript = false;
187 
195 
201 $wgStylePath = false;
203 
210 
217 
223 $wgExtensionDirectory = "{$IP}/extensions";
224 
230 $wgStyleDirectory = "{$IP}/skins";
231 
240 
246 
251 
257 
262 $wgLogo = false;
263 
290 $wgLogoHD = false;
291 
296 $wgFavicon = '/favicon.ico';
297 
304 
324 
340 
347 
356 
372 
375 /************************************************************************/
390 
394 $wgUploadStashMaxAge = 6 * 3600; // 6 hours
395 
400 
410 
418 $wgIllegalFileChars = ":\\/\\\\";
419 
425 
430 
446 
527 
542 
553 
583 
592 
601 
610 
617 $wgRepositoryBaseUrl = 'https://commons.wikimedia.org/wiki/File:';
618 
627 
637 
646 
655 
666 
677  // Fields to make available in the dialog. `true` means that this field is visible, `false` means
678  // that it is hidden. The "Name" field can't be hidden. Note that you also have to add the
679  // matching replacement to the 'filepage' format key below to make use of these.
680  'fields' => [
681  'description' => true,
682  'date' => false,
683  'categories' => false,
684  ],
685  // Suffix of localisation messages used to describe the license under which the uploaded file will
686  // be released. The same value may be set for both 'local' and 'foreign' uploads.
687  'licensemessages' => [
688  // The 'local' messages are used for local uploads on this wiki:
689  // * upload-form-label-own-work-message-generic-local
690  // * upload-form-label-not-own-work-message-generic-local
691  // * upload-form-label-not-own-work-local-generic-local
692  'local' => 'generic-local',
693  // The 'foreign' messages are used for cross-wiki uploads from other wikis to this wiki:
694  // * upload-form-label-own-work-message-generic-foreign
695  // * upload-form-label-not-own-work-message-generic-foreign
696  // * upload-form-label-not-own-work-local-generic-foreign
697  'foreign' => 'generic-foreign',
698  ],
699  // Upload comments to use for 'local' and 'foreign' uploads. This can also be set to a single
700  // string value, in which case it is used for both kinds of uploads. Available replacements:
701  // * $HOST - domain name from which a cross-wiki upload originates
702  // * $PAGENAME - wiki page name from which an upload originates
703  'comment' => [
704  'local' => '',
705  'foreign' => '',
706  ],
707  // Format of the file page wikitext to be generated from the fields input by the user.
708  'format' => [
709  // Wrapper for the whole page. Available replacements:
710  // * $DESCRIPTION - file description, as input by the user (only if the 'description' field is
711  // enabled), wrapped as defined below in the 'description' key
712  // * $DATE - file creation date, as input by the user (only if the 'date' field is enabled)
713  // * $SOURCE - as defined below in the 'ownwork' key, may be extended in the future
714  // * $AUTHOR - linked user name, may be extended in the future
715  // * $LICENSE - as defined below in the 'license' key, may be extended in the future
716  // * $CATEGORIES - file categories wikitext, as input by the user (only if the 'categories'
717  // field is enabled), or if no input, as defined below in the 'uncategorized' key
718  'filepage' => '$DESCRIPTION',
719  // Wrapped for file description. Available replacements:
720  // * $LANGUAGE - source wiki's content language
721  // * $TEXT - input by the user
722  'description' => '$TEXT',
723  'ownwork' => '',
724  'license' => '',
725  'uncategorized' => '',
726  ],
727 ];
728 
766 
782 
794 $wgShowEXIF = function_exists( 'exif_read_data' );
795 
802 
809 
816 
823 
829 
841 
858 $wgMaxUploadSize = 1024 * 1024 * 100; # 100MB
859 
867 
879 
886 
899 
908 
923 
932 $wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp' ];
933 
940  # HTML may contain cookie-stealing JavaScript and web bugs
941  'html', 'htm', 'js', 'jsb', 'mhtml', 'mht', 'xhtml', 'xht',
942  # PHP scripts may execute arbitrary code on the server
943  'php', 'phtml', 'php3', 'php4', 'php5', 'phps', 'phar',
944  # Other types that may be interpreted by some servers
945  'shtml', 'jhtml', 'pl', 'py', 'cgi',
946  # May contain harmful executables for Windows victims
947  'exe', 'scr', 'dll', 'msi', 'vbs', 'bat', 'com', 'pif', 'cmd', 'vxd', 'cpl' ];
948 
954  # HTML may contain cookie-stealing JavaScript and web bugs
955  'text/html', 'text/javascript', 'text/x-javascript', 'application/x-shellscript',
956  # PHP scripts may execute arbitrary code on the server
957  'application/x-php', 'text/x-php',
958  # Other types that may be interpreted by some servers
959  'text/x-python', 'text/x-perl', 'text/x-bash', 'text/x-sh', 'text/x-csh',
960  # Client-side hazards on Internet Explorer
961  'text/scriptlet', 'application/x-msdownload',
962  # Windows metafile, client-side vulnerability on some systems
963  'application/x-msmetafile',
964 ];
965 
972 
979 
987 
995 
1000 
1012  MEDIATYPE_BITMAP, // all bitmap formats
1013  MEDIATYPE_AUDIO, // all audio formats
1014  MEDIATYPE_VIDEO, // all plain video formats
1015  "image/svg+xml", // svg (only needed if inline rendering of svg is not supported)
1016  "application/pdf", // PDF files
1017  # "application/x-shockwave-flash", //flash/shockwave movie
1018 ];
1019 
1028 
1034  'image/jpeg' => 'MockBitmapHandler',
1035  'image/png' => 'MockBitmapHandler',
1036  'image/gif' => 'MockBitmapHandler',
1037  'image/tiff' => 'MockBitmapHandler',
1038  'image/webp' => 'MockBitmapHandler',
1039  'image/x-ms-bmp' => 'MockBitmapHandler',
1040  'image/x-bmp' => 'MockBitmapHandler',
1041  'image/x-xcf' => 'MockBitmapHandler',
1042  'image/svg+xml' => 'MockSvgHandler',
1043  'image/vnd.djvu' => 'MockDjVuHandler',
1044 ];
1045 
1054  // the usual case
1056  // dumb version, no syntax highlighting
1058  // simple implementation, for use by extensions, etc.
1060  // dumb version, no syntax highlighting
1062  // plain text, for use by extensions, etc.
1064 ];
1065 
1072 
1082 
1086 $wgImageMagickConvertCommand = '/usr/bin/convert';
1087 
1093 
1098 
1103 
1109 
1123 
1129 $wgJpegTran = '/usr/bin/jpegtran';
1130 
1151 
1160 
1165 $wgExiv2Command = '/usr/bin/exiv2';
1166 
1172 $wgExiftool = '/usr/bin/exiftool';
1173 
1184  'ImageMagick' =>
1185  '$path/convert -background "#ffffff00" -thumbnail $widthx$height\! $input PNG:$output',
1186  'sodipodi' => '$path/sodipodi -z -w $width -f $input -e $output',
1187  'inkscape' => '$path/inkscape -z -w $width -f $input -e $output',
1188  'batik' => 'java -Djava.awt.headless=true -jar $path/batik-rasterizer.jar -w $width -d '
1189  . '$output $input',
1190  'rsvg' => '$path/rsvg-convert -w $width -h $height -o $output $input',
1191  'imgserv' => '$path/imgserv-wrapper -i svg -o png -w$width $input $output',
1192  'ImagickExt' => [ 'SvgHandler::rasterizeImagickExt' ],
1193 ];
1194 
1198 $wgSVGConverter = 'ImageMagick';
1199 
1204 
1209 
1215 
1228 
1238 
1253 
1261 
1276 
1283 $wgThumbnailEpoch = '20030516000000';
1284 
1292 
1305 
1314 
1319 
1326 
1333 
1369 
1370  # setup for clamav
1371  'clamav' => [
1372  'command' => 'clamscan --no-summary ',
1373  'codemap' => [
1374  "0" => AV_NO_VIRUS, # no virus
1375  "1" => AV_VIRUS_FOUND, # virus found
1376  "52" => AV_SCAN_ABORTED, # unsupported file format (probably immune)
1377  "*" => AV_SCAN_FAILED, # else scan failed
1378  ],
1379  'messagepattern' => '/.*?:(.*)/sim',
1380  ],
1381 ];
1382 
1387 
1392 
1398 $wgMimeTypeFile = 'includes/mime.types';
1399 
1404 $wgMimeInfoFile = 'includes/mime.info';
1405 
1418 
1425 
1431  'http://www.w3.org/2000/svg:svg' => 'image/svg+xml',
1432  'svg' => 'image/svg+xml',
1433  'http://www.lysator.liu.se/~alla/dia/:diagram' => 'application/x-dia-diagram',
1434  'http://www.w3.org/1999/xhtml:html' => 'text/html', // application/xhtml+xml?
1435  'html' => 'text/html', // application/xhtml+xml?
1436 ];
1437 
1447  [ 320, 240 ],
1448  [ 640, 480 ],
1449  [ 800, 600 ],
1450  [ 1024, 768 ],
1451  [ 1280, 1024 ]
1452 ];
1453 
1460  120,
1461  150,
1462  180,
1463  200,
1464  250,
1465  300
1466 ];
1467 
1478 
1495 
1507 
1520 
1527 
1535 
1543 
1559 
1566 
1571 
1579 
1591 
1598 
1604 $wgDjvuTxt = null;
1605 
1621 
1627 $wgDjvuPostProcessor = 'pnmtojpeg';
1628 
1633  # end of DJvu }
1635  # end of file uploads }
1637 
1638 /************************************************************************/
1649 
1659 
1666 
1673 
1679 
1686 
1697 
1703 
1707 $wgNewPasswordExpiry = 3600 * 24 * 7;
1708 
1713 
1719 
1724 $wgPasswordExpireGrace = 3600 * 24 * 7; // 7 days
1725 
1743 $wgSMTP = false;
1744 
1749 
1755 
1768 
1769 // TODO move UPO to preferences probably ?
1770 # If set to true, users get a corresponding option in their preferences and can choose to
1771 # enable or disable at their discretion
1772 # If set to false, the corresponding input form on the user preference page is suppressed
1773 # It call this to be a "user-preferences-option (UPO)"
1774 
1781 
1786 
1795 
1811 
1826 
1835 
1841 
1846 
1852  # end of email settings
1854 
1855 /************************************************************************/
1863 $wgDBserver = 'localhost';
1864 
1868 $wgDBport = 5432;
1869 
1873 $wgDBname = 'my_wiki';
1874 
1878 $wgDBuser = 'wikiuser';
1879 
1884 
1888 $wgDBtype = 'mysql';
1889 
1898 $wgDBssl = false;
1899 
1909 
1914 
1919 
1927 
1936 
1943 
1947 $wgDBTableOptions = 'ENGINE=InnoDB, DEFAULT CHARSET=binary';
1948 
1956 
1961 
1968 
1973 
2000 
2005 
2009 $wgSharedTables = [ 'user', 'user_properties' ];
2010 
2016 
2073 
2085 
2093 
2098 
2118 
2146 
2161 
2168 
2173 
2178  # End of DB settings }
2180 
2181 /************************************************************************/
2193 
2206 
2222 
2238 
2246  # end text storage }
2248 
2249 /************************************************************************/
2258 
2263 
2268 
2273 
2278 
2283 
2288 
2294 
2302  # end performance hacks }
2304 
2305 /************************************************************************/
2319 
2338 
2346 
2354 
2361 
2371 
2386  CACHE_NONE => [ 'class' => EmptyBagOStuff::class, 'reportDupes' => false ],
2387  CACHE_DB => [ 'class' => SqlBagOStuff::class, 'loggroup' => 'SQLBagOStuff' ],
2388 
2389  CACHE_ANYTHING => [ 'factory' => 'ObjectCache::newAnything' ],
2390  CACHE_ACCEL => [ 'factory' => 'ObjectCache::getLocalServerInstance' ],
2391  CACHE_MEMCACHED => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2392 
2393  'db-replicated' => [
2394  'class' => ReplicatedBagOStuff::class,
2395  'readFactory' => [
2396  'class' => SqlBagOStuff::class,
2397  'args' => [ [ 'slaveOnly' => true ] ]
2398  ],
2399  'writeFactory' => [
2400  'class' => SqlBagOStuff::class,
2401  'args' => [ [ 'slaveOnly' => false ] ]
2402  ],
2403  'loggroup' => 'SQLBagOStuff',
2404  'reportDupes' => false
2405  ],
2406 
2407  'apc' => [ 'class' => APCBagOStuff::class, 'reportDupes' => false ],
2408  'apcu' => [ 'class' => APCUBagOStuff::class, 'reportDupes' => false ],
2409  'wincache' => [ 'class' => WinCacheBagOStuff::class, 'reportDupes' => false ],
2410  'memcached-php' => [ 'class' => MemcachedPhpBagOStuff::class, 'loggroup' => 'memcached' ],
2411  'memcached-pecl' => [ 'class' => MemcachedPeclBagOStuff::class, 'loggroup' => 'memcached' ],
2412  'hash' => [ 'class' => HashBagOStuff::class, 'reportDupes' => false ],
2413 ];
2414 
2431 
2447  CACHE_NONE => [
2448  'class' => WANObjectCache::class,
2449  'cacheId' => CACHE_NONE
2450  ]
2451  /* Example of a simple single data-center cache:
2452  'memcached-php' => [
2453  'class' => WANObjectCache::class,
2454  'cacheId' => 'memcached-php'
2455  ]
2456  */
2457 ];
2458 
2471 
2486 $wgMainStash = 'db-replicated';
2487 
2493 
2498 
2516 
2523 
2528 
2532 $wgMemCachedServers = [ '127.0.0.1:11211' ];
2533 
2539 
2544 
2557 
2565 
2589  'class' => LocalisationCache::class,
2590  'store' => 'detect',
2591  'storeClass' => false,
2592  'storeDirectory' => false,
2593  'manualRecache' => false,
2594 ];
2595 
2600 
2609 $wgCacheEpoch = '20030516000000';
2610 
2616 
2623 
2631 
2637 
2648 
2653 
2660 $wgUseGzip = false;
2661 
2672 
2689  # end of cache settings
2691 
2692 /************************************************************************/
2709 $wgUseSquid = false;
2710 
2715 $wgUseESI = false;
2716 
2724 
2734 
2744 
2753 
2760 
2776 
2783 
2790 
2800 
2808 
2830 
2878 
2884 
2889  # end of HTTP proxy settings
2891 
2892 /************************************************************************/
2914 
2920 
2931 
2936 
2941 
2956 
2961 
2976  // Language codes of macro languages, which get mapped to the main language
2977  'bh' => 'bho', // Bihari language family
2978  'no' => 'nb', // Norwegian language family
2979 
2980  // Language variants which get mapped to the main language
2981  'simple' => 'en', // Simple English
2982 ];
2983 
2991 
3003 
3016 
3028 
3040 
3054 
3060 
3066 
3072 
3077 
3082 
3087 
3092 
3097 
3103 
3114 
3133 
3140 
3161 
3186 
3197  # End of language/charset settings
3199 
3200 /*************************************************************************/
3208 $wgMimeType = 'text/html';
3209 
3218 
3227 
3235 $wgHtml5 = true;
3236 
3246 
3255 
3263 
3272 
3288 
3297 
3302 $wgDefaultSkin = 'vector';
3303 
3309 $wgFallbackSkin = 'fallback';
3310 
3317 
3322 
3329 
3336 
3344 
3349 
3354 
3360 
3381 
3393 
3398 
3427 $wgFragmentMode = [ 'legacy', 'html5' ];
3428 
3438 
3470  "copyright" => [
3471  "copyright" => [], // placeholder for the built in copyright icon
3472  ],
3473  "poweredby" => [
3474  "mediawiki" => [
3475  // Defaults to point at
3476  // "$wgResourceBasePath/resources/assets/poweredby_mediawiki_88x31.png"
3477  // plus srcset for 1.5x, 2x resolution variants.
3478  "src" => null,
3479  "url" => "//www.mediawiki.org/",
3480  "alt" => "Powered by MediaWiki",
3481  ]
3482  ],
3483 ];
3484 
3492 
3496 $wgEdititis = false;
3497 
3510 
3521 
3529 
3539  # End of output format settings }
3541 
3542 /*************************************************************************/
3565 
3655 
3667 
3673 
3691  'versioned' => [
3692  'server' => 30 * 24 * 60 * 60, // 30 days
3693  'client' => 30 * 24 * 60 * 60, // 30 days
3694  ],
3695  'unversioned' => [
3696  'server' => 5 * 60, // 5 minutes
3697  'client' => 5 * 60, // 5 minutes
3698  ],
3699 ];
3700 
3707 
3714 
3741 
3756 
3765 
3775 
3781 
3789 
3802  # End of ResourceLoader settings }
3804 
3805 /*************************************************************************/
3815 
3824 
3852 
3860 
3880 
3905 $wgLegalTitleChars = " %!\"$&'()*,\\-.\\/0-9:;=?@A-Z\\\\^_`a-z~\\x80-\\xFF+";
3906 
3913 
3923 
3928 
3953 
3961 
3966  # end of Interwiki caching settings.
3968 
3984 $wgRedirectSources = false;
3985 
3994 
4010 
4016  NS_TALK => true,
4017  NS_USER => true,
4018  NS_USER_TALK => true,
4019  NS_PROJECT => true,
4020  NS_PROJECT_TALK => true,
4021  NS_FILE_TALK => true,
4022  NS_MEDIAWIKI => true,
4023  NS_MEDIAWIKI_TALK => true,
4024  NS_TEMPLATE => true,
4025  NS_TEMPLATE_TALK => true,
4026  NS_HELP => true,
4027  NS_HELP_TALK => true,
4029 ];
4030 
4047 
4055 
4063 
4072 
4079 
4090 $wgInvalidRedirectTargets = [ 'Filepath', 'Mypage', 'Mytalk', 'Redirect' ];
4091  # End of title and interwiki settings }
4093 
4094 /************************************************************************/
4122  'class' => Parser::class,
4123  # 'preprocessorClass' => Preprocessor_Hash::class,
4124 ];
4125 
4130 
4136 
4147 
4155 
4160 
4172  'bitcoin:', 'ftp://', 'ftps://', 'geo:', 'git://', 'gopher://', 'http://',
4173  'https://', 'irc://', 'ircs://', 'magnet:', 'mailto:', 'mms://', 'news:',
4174  'nntp://', 'redis://', 'sftp://', 'sip:', 'sips:', 'sms:', 'ssh://',
4175  'svn://', 'tel:', 'telnet://', 'urn:', 'worldwind://', 'xmpp:', '//'
4176 ];
4177 
4182 
4187 
4201 
4214 
4224 
4244 $wgTidyConfig = [ 'driver' => 'RemexHtml' ];
4245 
4251 $wgRawHtml = false;
4252 
4263 
4271 
4277 
4291 $wgNoFollowDomainExceptions = [ 'mediawiki.org' ];
4292 
4297 
4304 
4310 
4316 
4321 
4327 
4335  'ISBN' => false,
4336  'PMID' => false,
4337  'RFC' => false
4338 ];
4339  # end of parser settings }
4341 
4342 /************************************************************************/
4364 
4373  # End of statistics }
4375 
4376 /************************************************************************/
4387  'local' => [ 'class' => LocalIdLookup::class ],
4388 ];
4389 
4395 
4463  'policies' => [
4464  'bureaucrat' => [
4465  'MinimalPasswordLength' => 10,
4466  'MinimumPasswordLengthToLogin' => 1,
4467  'PasswordNotInLargeBlacklist' => true,
4468  ],
4469  'sysop' => [
4470  'MinimalPasswordLength' => 10,
4471  'MinimumPasswordLengthToLogin' => 1,
4472  'PasswordNotInLargeBlacklist' => true,
4473  ],
4474  'interface-admin' => [
4475  'MinimalPasswordLength' => 10,
4476  'MinimumPasswordLengthToLogin' => 1,
4477  'PasswordNotInLargeBlacklist' => true,
4478  ],
4479  'bot' => [
4480  'MinimalPasswordLength' => 10,
4481  'MinimumPasswordLengthToLogin' => 1,
4482  'PasswordNotInLargeBlacklist' => true,
4483  ],
4484  'default' => [
4485  'MinimalPasswordLength' => [ 'value' => 1, 'suggestChangeOnLogin' => true ],
4486  'PasswordCannotMatchUsername' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4487  'PasswordCannotMatchBlacklist' => [ 'value' => true, 'suggestChangeOnLogin' => true ],
4488  'MaximalPasswordLength' => [ 'value' => 4096, 'suggestChangeOnLogin' => true ],
4489  ],
4490  ],
4491  'checks' => [
4492  'MinimalPasswordLength' => 'PasswordPolicyChecks::checkMinimalPasswordLength',
4493  'MinimumPasswordLengthToLogin' => 'PasswordPolicyChecks::checkMinimumPasswordLengthToLogin',
4494  'PasswordCannotMatchUsername' => 'PasswordPolicyChecks::checkPasswordCannotMatchUsername',
4495  'PasswordCannotMatchBlacklist' => 'PasswordPolicyChecks::checkPasswordCannotMatchBlacklist',
4496  'MaximalPasswordLength' => 'PasswordPolicyChecks::checkMaximalPasswordLength',
4497  'PasswordCannotBePopular' => 'PasswordPolicyChecks::checkPopularPasswordBlacklist',
4498  'PasswordNotInLargeBlacklist' => 'PasswordPolicyChecks::checkPasswordNotInLargeBlacklist',
4499  ],
4500 ];
4501 
4522 
4528  'preauth' => [
4531  'sort' => 0,
4532  ],
4533  ],
4534  'primaryauth' => [
4535  // TemporaryPasswordPrimaryAuthenticationProvider should come before
4536  // any other PasswordAuthenticationRequest-based
4537  // PrimaryAuthenticationProvider (or at least any that might return
4538  // FAIL rather than ABSTAIN for a wrong password), or password reset
4539  // won't work right. Do not remove this (or change the key) or
4540  // auto-configuration of other such providers in extensions will
4541  // probably auto-insert themselves in the wrong place.
4544  'args' => [ [
4545  // Fall through to LocalPasswordPrimaryAuthenticationProvider
4546  'authoritative' => false,
4547  ] ],
4548  'sort' => 0,
4549  ],
4552  'args' => [ [
4553  // Last one should be authoritative, or else the user will get
4554  // a less-than-helpful error message (something like "supplied
4555  // authentication info not supported" rather than "wrong
4556  // password") if it too fails.
4557  'authoritative' => true,
4558  ] ],
4559  'sort' => 100,
4560  ],
4561  ],
4562  'secondaryauth' => [
4565  'sort' => 0,
4566  ],
4569  'sort' => 100,
4570  ],
4571  // Linking during login is experimental, enable at your own risk - T134952
4572  // MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class => [
4573  // 'class' => MediaWiki\Auth\ConfirmLinkSecondaryAuthenticationProvider::class,
4574  // 'sort' => 100,
4575  // ],
4578  'sort' => 200,
4579  ],
4580  ],
4581 ];
4582 
4622  'default' => 300,
4623 ];
4624 
4641  'default' => true,
4642 ];
4643 
4655 ];
4656 
4668 ];
4669 
4675 
4682 
4695 
4702 
4709 
4730  'A' => [
4731  'class' => MWOldPassword::class,
4732  ],
4733  'B' => [
4734  'class' => MWSaltedPassword::class,
4735  ],
4736  'pbkdf2-legacyA' => [
4738  'types' => [
4739  'A',
4740  'pbkdf2',
4741  ],
4742  ],
4743  'pbkdf2-legacyB' => [
4745  'types' => [
4746  'B',
4747  'pbkdf2',
4748  ],
4749  ],
4750  'bcrypt' => [
4751  'class' => BcryptPassword::class,
4752  'cost' => 9,
4753  ],
4754  'pbkdf2' => [
4755  'class' => Pbkdf2Password::class,
4756  'algo' => 'sha512',
4757  'cost' => '30000',
4758  'length' => '64',
4759  ],
4760  'argon2' => [
4761  'class' => Argon2Password::class,
4762 
4763  // Algorithm used:
4764  // * 'argon2i' is optimized against side-channel attacks (PHP 7.2+)
4765  // * 'argon2id' is optimized against both side-channel and GPU cracking (PHP 7.3+)
4766  // * 'auto' to use best available algorithm. If you're using more than one server, be
4767  // careful when you're mixing PHP versions because newer PHP might generate hashes that
4768  // older versions might would not understand.
4769  'algo' => 'auto',
4770 
4771  // The parameters below are the same as options accepted by password_hash().
4772  // Set them to override that function's defaults.
4773  //
4774  // 'memory_cost' => PASSWORD_ARGON2_DEFAULT_MEMORY_COST,
4775  // 'time_cost' => PASSWORD_ARGON2_DEFAULT_TIME_COST,
4776  // 'threads' => PASSWORD_ARGON2_DEFAULT_THREADS,
4777  ],
4778 ];
4779 
4787  'username' => true,
4788  'email' => true,
4789 ];
4790 
4795 
4801 
4807  'MediaWiki default', // Default 'Main Page' and MediaWiki: message pages
4808  'Conversion script', // Used for the old Wikipedia software upgrade
4809  'Maintenance script', // Maintenance scripts which perform editing, image import script
4810  'Template namespace initialisation script', // Used in 1.2->1.3 upgrade
4811  'ScriptImporter', // Default user name used by maintenance/importSiteScripts.php
4812  'Unknown user', // Used in WikiImporter and RevisionStore for revisions with no author
4813  'msg:double-redirect-fixer', // Automatic double redirect fix
4814  'msg:usermessage-editor', // Default user for leaving user messages
4815  'msg:proxyblocker', // For $wgProxyList and Special:Blockme (removed in 1.22)
4816  'msg:sorbs', // For $wgEnableDnsBlacklist etc.
4817  'msg:spambot_username', // Used by cleanupSpam.php
4818  'msg:autochange-username', // Used by anon category RC entries (parser functions, Lua & purges)
4819 ];
4820 
4828  'ccmeonemails' => 0,
4829  'cols' => 80, // @deprecated since 1.29 No longer used in core
4830  'date' => 'default',
4831  'diffonly' => 0,
4832  'disablemail' => 0,
4833  'editfont' => 'monospace',
4834  'editondblclick' => 0,
4835  'editsectiononrightclick' => 0,
4836  'email-allow-new-users' => 1,
4837  'enotifminoredits' => 0,
4838  'enotifrevealaddr' => 0,
4839  'enotifusertalkpages' => 1,
4840  'enotifwatchlistpages' => 1,
4841  'extendwatchlist' => 1,
4842  'fancysig' => 0,
4843  'forceeditsummary' => 0,
4844  'gender' => 'unknown',
4845  'hideminor' => 0,
4846  'hidepatrolled' => 0,
4847  'hidecategorization' => 1,
4848  'imagesize' => 2,
4849  'minordefault' => 0,
4850  'newpageshidepatrolled' => 0,
4851  'nickname' => '',
4852  'norollbackdiff' => 0,
4853  'numberheadings' => 0,
4854  'previewonfirst' => 0,
4855  'previewontop' => 1,
4856  'rcdays' => 7,
4857  'rcenhancedfilters' => 0,
4858  'rcenhancedfilters-disable' => 0,
4859  'rclimit' => 50,
4860  'rows' => 25, // @deprecated since 1.29 No longer used in core
4861  'showhiddencats' => 0,
4862  'shownumberswatching' => 1,
4863  'showrollbackconfirmation' => 0,
4864  'skin' => false,
4865  'stubthreshold' => 0,
4866  'thumbsize' => 5,
4867  'underline' => 2,
4868  'uselivepreview' => 0,
4869  'usenewrc' => 1,
4870  'watchcreations' => 1,
4871  'watchdefault' => 1,
4872  'watchdeletion' => 0,
4873  'watchuploads' => 1,
4874  'watchlistdays' => 7.0,
4875  'watchlisthideanons' => 0,
4876  'watchlisthidebots' => 0,
4877  'watchlisthideliu' => 0,
4878  'watchlisthideminor' => 0,
4879  'watchlisthideown' => 0,
4880  'watchlisthidepatrolled' => 0,
4881  'watchlisthidecategorization' => 1,
4882  'watchlistreloadautomatically' => 0,
4883  'watchlistunwatchlinks' => 0,
4884  'watchmoves' => 0,
4885  'watchrollback' => 0,
4886  'wlenhancedfilters-disable' => 0,
4887  'wllimit' => 250,
4888  'useeditwarning' => 1,
4889  'prefershttps' => 1,
4890 ];
4891 
4896 
4903 
4914 
4922 
4934 
4946  'args' => [ [
4947  'priority' => 30,
4948  'callUserSetCookiesHook' => true,
4949  ] ],
4950  ],
4953  'args' => [ [
4954  'priority' => 75,
4955  ] ],
4956  ],
4957 ];
4958  # end user accounts }
4960 
4961 /************************************************************************/
4970 
4979 
4984 
5000  'IPv4' => 16, # Blocks larger than a /16 (64k addresses) will not be allowed
5001  'IPv6' => 19,
5002 ];
5003 
5012 
5034 
5062 
5068 
5074 
5100 
5102 // Implicit group for all visitors
5103 $wgGroupPermissions['*']['createaccount'] = true;
5104 $wgGroupPermissions['*']['read'] = true;
5105 $wgGroupPermissions['*']['edit'] = true;
5106 $wgGroupPermissions['*']['createpage'] = true;
5107 $wgGroupPermissions['*']['createtalk'] = true;
5108 $wgGroupPermissions['*']['writeapi'] = true;
5109 $wgGroupPermissions['*']['viewmywatchlist'] = true;
5110 $wgGroupPermissions['*']['editmywatchlist'] = true;
5111 $wgGroupPermissions['*']['viewmyprivateinfo'] = true;
5112 $wgGroupPermissions['*']['editmyprivateinfo'] = true;
5113 $wgGroupPermissions['*']['editmyoptions'] = true;
5114 # $wgGroupPermissions['*']['patrolmarks'] = false; // let anons see what was patrolled
5115 
5116 // Implicit group for all logged-in accounts
5117 $wgGroupPermissions['user']['move'] = true;
5118 $wgGroupPermissions['user']['move-subpages'] = true;
5119 $wgGroupPermissions['user']['move-rootuserpages'] = true; // can move root userpages
5120 $wgGroupPermissions['user']['move-categorypages'] = true;
5121 $wgGroupPermissions['user']['movefile'] = true;
5122 $wgGroupPermissions['user']['read'] = true;
5123 $wgGroupPermissions['user']['edit'] = true;
5124 $wgGroupPermissions['user']['createpage'] = true;
5125 $wgGroupPermissions['user']['createtalk'] = true;
5126 $wgGroupPermissions['user']['writeapi'] = true;
5127 $wgGroupPermissions['user']['upload'] = true;
5128 $wgGroupPermissions['user']['reupload'] = true;
5129 $wgGroupPermissions['user']['reupload-shared'] = true;
5130 $wgGroupPermissions['user']['minoredit'] = true;
5131 $wgGroupPermissions['user']['editmyusercss'] = true;
5132 $wgGroupPermissions['user']['editmyuserjson'] = true;
5133 $wgGroupPermissions['user']['editmyuserjs'] = true;
5134 $wgGroupPermissions['user']['purge'] = true;
5135 $wgGroupPermissions['user']['sendemail'] = true;
5136 $wgGroupPermissions['user']['applychangetags'] = true;
5137 $wgGroupPermissions['user']['changetags'] = true;
5138 $wgGroupPermissions['user']['editcontentmodel'] = true;
5139 
5140 // Implicit group for accounts that pass $wgAutoConfirmAge
5141 $wgGroupPermissions['autoconfirmed']['autoconfirmed'] = true;
5142 $wgGroupPermissions['autoconfirmed']['editsemiprotected'] = true;
5143 
5144 // Users with bot privilege can have their edits hidden
5145 // from various log pages by default
5146 $wgGroupPermissions['bot']['bot'] = true;
5147 $wgGroupPermissions['bot']['autoconfirmed'] = true;
5148 $wgGroupPermissions['bot']['editsemiprotected'] = true;
5149 $wgGroupPermissions['bot']['nominornewtalk'] = true;
5150 $wgGroupPermissions['bot']['autopatrol'] = true;
5151 $wgGroupPermissions['bot']['suppressredirect'] = true;
5152 $wgGroupPermissions['bot']['apihighlimits'] = true;
5153 $wgGroupPermissions['bot']['writeapi'] = true;
5154 
5155 // Most extra permission abilities go to this group
5156 $wgGroupPermissions['sysop']['block'] = true;
5157 $wgGroupPermissions['sysop']['createaccount'] = true;
5158 $wgGroupPermissions['sysop']['delete'] = true;
5159 // can be separately configured for pages with > $wgDeleteRevisionsLimit revs
5160 $wgGroupPermissions['sysop']['bigdelete'] = true;
5161 // can view deleted history entries, but not see or restore the text
5162 $wgGroupPermissions['sysop']['deletedhistory'] = true;
5163 // can view deleted revision text
5164 $wgGroupPermissions['sysop']['deletedtext'] = true;
5165 $wgGroupPermissions['sysop']['undelete'] = true;
5166 $wgGroupPermissions['sysop']['editinterface'] = true;
5167 $wgGroupPermissions['sysop']['editsitejson'] = true;
5168 $wgGroupPermissions['sysop']['edituserjson'] = true;
5169 $wgGroupPermissions['sysop']['import'] = true;
5170 $wgGroupPermissions['sysop']['importupload'] = true;
5171 $wgGroupPermissions['sysop']['move'] = true;
5172 $wgGroupPermissions['sysop']['move-subpages'] = true;
5173 $wgGroupPermissions['sysop']['move-rootuserpages'] = true;
5174 $wgGroupPermissions['sysop']['move-categorypages'] = true;
5175 $wgGroupPermissions['sysop']['patrol'] = true;
5176 $wgGroupPermissions['sysop']['autopatrol'] = true;
5177 $wgGroupPermissions['sysop']['protect'] = true;
5178 $wgGroupPermissions['sysop']['editprotected'] = true;
5179 $wgGroupPermissions['sysop']['rollback'] = true;
5180 $wgGroupPermissions['sysop']['upload'] = true;
5181 $wgGroupPermissions['sysop']['reupload'] = true;
5182 $wgGroupPermissions['sysop']['reupload-shared'] = true;
5183 $wgGroupPermissions['sysop']['unwatchedpages'] = true;
5184 $wgGroupPermissions['sysop']['autoconfirmed'] = true;
5185 $wgGroupPermissions['sysop']['editsemiprotected'] = true;
5186 $wgGroupPermissions['sysop']['ipblock-exempt'] = true;
5187 $wgGroupPermissions['sysop']['blockemail'] = true;
5188 $wgGroupPermissions['sysop']['markbotedits'] = true;
5189 $wgGroupPermissions['sysop']['apihighlimits'] = true;
5190 $wgGroupPermissions['sysop']['browsearchive'] = true;
5191 $wgGroupPermissions['sysop']['noratelimit'] = true;
5192 $wgGroupPermissions['sysop']['movefile'] = true;
5193 $wgGroupPermissions['sysop']['unblockself'] = true;
5194 $wgGroupPermissions['sysop']['suppressredirect'] = true;
5195 # $wgGroupPermissions['sysop']['pagelang'] = true;
5196 # $wgGroupPermissions['sysop']['upload_by_url'] = true;
5197 $wgGroupPermissions['sysop']['mergehistory'] = true;
5198 $wgGroupPermissions['sysop']['managechangetags'] = true;
5199 $wgGroupPermissions['sysop']['deletechangetags'] = true;
5200 
5201 $wgGroupPermissions['interface-admin']['editinterface'] = true;
5202 $wgGroupPermissions['interface-admin']['editsitecss'] = true;
5203 $wgGroupPermissions['interface-admin']['editsitejson'] = true;
5204 $wgGroupPermissions['interface-admin']['editsitejs'] = true;
5205 $wgGroupPermissions['interface-admin']['editusercss'] = true;
5206 $wgGroupPermissions['interface-admin']['edituserjson'] = true;
5207 $wgGroupPermissions['interface-admin']['edituserjs'] = true;
5208 
5209 // Permission to change users' group assignments
5210 $wgGroupPermissions['bureaucrat']['userrights'] = true;
5211 $wgGroupPermissions['bureaucrat']['noratelimit'] = true;
5212 // Permission to change users' groups assignments across wikis
5213 # $wgGroupPermissions['bureaucrat']['userrights-interwiki'] = true;
5214 // Permission to export pages including linked pages regardless of $wgExportMaxLinkDepth
5215 # $wgGroupPermissions['bureaucrat']['override-export-depth'] = true;
5216 
5217 # $wgGroupPermissions['sysop']['deletelogentry'] = true;
5218 # $wgGroupPermissions['sysop']['deleterevision'] = true;
5219 // To hide usernames from users and Sysops
5220 # $wgGroupPermissions['suppress']['hideuser'] = true;
5221 // To hide revisions/log items from users and Sysops
5222 # $wgGroupPermissions['suppress']['suppressrevision'] = true;
5223 // To view revisions/log items hidden from users and Sysops
5224 # $wgGroupPermissions['suppress']['viewsuppressed'] = true;
5225 // For private suppression log access
5226 # $wgGroupPermissions['suppress']['suppressionlog'] = true;
5227 
5234 # $wgGroupPermissions['developer']['siteadmin'] = true;
5235 
5248 
5252 $wgImplicitGroups = [ '*', 'user', 'autoconfirmed' ];
5253 
5276 
5281 
5289 $wgRestrictionTypes = [ 'create', 'edit', 'move', 'upload' ];
5290 
5302 $wgRestrictionLevels = [ '', 'autoconfirmed', 'sysop' ];
5303 
5314 
5328 
5337 
5348 
5370 
5381 
5440  'autoconfirmed' => [ '&',
5443  ],
5444 ];
5445 
5465  'onEdit' => [],
5466 ];
5467 
5473 
5497 
5502 
5508 
5514 
5520 
5529 
5552  'count' => 0,
5553  'seconds' => 86400,
5554 ] ];
5555 
5568 
5573 
5580 
5604 $wgDnsBlacklistUrls = [ 'http.dnsbl.sorbs.net.' ];
5605 
5611 
5620 
5627 
5664  // Page edits
5665  'edit' => [
5666  'ip' => [ 8, 60 ],
5667  'newbie' => [ 8, 60 ],
5668  'user' => [ 90, 60 ],
5669  ],
5670  // Page moves
5671  'move' => [
5672  'newbie' => [ 2, 120 ],
5673  'user' => [ 8, 60 ],
5674  ],
5675  // File uploads
5676  'upload' => [
5677  'ip' => [ 8, 60 ],
5678  'newbie' => [ 8, 60 ],
5679  ],
5680  // Page rollbacks
5681  'rollback' => [
5682  'user' => [ 10, 60 ],
5683  'newbie' => [ 5, 120 ]
5684  ],
5685  // Triggering password resets emails
5686  'mailpassword' => [
5687  'ip' => [ 5, 3600 ],
5688  ],
5689  // Emailing other users using MediaWiki
5690  'emailuser' => [
5691  'ip' => [ 5, 86400 ],
5692  'newbie' => [ 5, 86400 ],
5693  'user' => [ 20, 86400 ],
5694  ],
5695  'changeemail' => [
5696  'ip-all' => [ 10, 3600 ],
5697  'user' => [ 4, 86400 ]
5698  ],
5699  // Purging pages
5700  'purge' => [
5701  'ip' => [ 30, 60 ],
5702  'user' => [ 30, 60 ],
5703  ],
5704  // Purges of link tables
5705  'linkpurge' => [
5706  'ip' => [ 30, 60 ],
5707  'user' => [ 30, 60 ],
5708  ],
5709  // Files rendered via thumb.php or thumb_handler.php
5710  'renderfile' => [
5711  'ip' => [ 700, 30 ],
5712  'user' => [ 700, 30 ],
5713  ],
5714  // Same as above but for non-standard thumbnails
5715  'renderfile-nonstandard' => [
5716  'ip' => [ 70, 30 ],
5717  'user' => [ 70, 30 ],
5718  ],
5719  // Stashing edits into cache before save
5720  'stashedit' => [
5721  'ip' => [ 30, 60 ],
5722  'newbie' => [ 30, 60 ],
5723  ],
5724  // Adding or removing change tags
5725  'changetag' => [
5726  'ip' => [ 8, 60 ],
5727  'newbie' => [ 8, 60 ],
5728  ],
5729  // Changing the content model of a page
5730  'editcontentmodel' => [
5731  'newbie' => [ 2, 120 ],
5732  'user' => [ 8, 60 ],
5733  ],
5734 ];
5735 
5741 
5748 
5754 
5768  // Short term limit
5769  [ 'count' => 5, 'seconds' => 300 ],
5770  // Long term limit. We need to balance the risk
5771  // of somebody using this as a DoS attack to lock someone
5772  // out of their account, and someone doing a brute force attack.
5773  [ 'count' => 150, 'seconds' => 60 * 60 * 48 ],
5774 ];
5775 
5787 
5788 // @TODO: clean up grants
5789 // @TODO: auto-include read/editsemiprotected rights?
5790 
5791 $wgGrantPermissions['basic']['autoconfirmed'] = true;
5792 $wgGrantPermissions['basic']['autopatrol'] = true;
5793 $wgGrantPermissions['basic']['editsemiprotected'] = true;
5794 $wgGrantPermissions['basic']['ipblock-exempt'] = true;
5795 $wgGrantPermissions['basic']['nominornewtalk'] = true;
5796 $wgGrantPermissions['basic']['patrolmarks'] = true;
5797 $wgGrantPermissions['basic']['purge'] = true;
5798 $wgGrantPermissions['basic']['read'] = true;
5799 $wgGrantPermissions['basic']['skipcaptcha'] = true;
5800 $wgGrantPermissions['basic']['writeapi'] = true;
5801 
5802 $wgGrantPermissions['highvolume']['bot'] = true;
5803 $wgGrantPermissions['highvolume']['apihighlimits'] = true;
5804 $wgGrantPermissions['highvolume']['noratelimit'] = true;
5805 $wgGrantPermissions['highvolume']['markbotedits'] = true;
5806 
5807 $wgGrantPermissions['editpage']['edit'] = true;
5808 $wgGrantPermissions['editpage']['minoredit'] = true;
5809 $wgGrantPermissions['editpage']['applychangetags'] = true;
5810 $wgGrantPermissions['editpage']['changetags'] = true;
5811 
5812 $wgGrantPermissions['editprotected'] = $wgGrantPermissions['editpage'];
5813 $wgGrantPermissions['editprotected']['editprotected'] = true;
5814 
5815 // FIXME: Rename editmycssjs to editmyconfig
5816 $wgGrantPermissions['editmycssjs'] = $wgGrantPermissions['editpage'];
5817 $wgGrantPermissions['editmycssjs']['editmyusercss'] = true;
5818 $wgGrantPermissions['editmycssjs']['editmyuserjson'] = true;
5819 $wgGrantPermissions['editmycssjs']['editmyuserjs'] = true;
5820 
5821 $wgGrantPermissions['editmyoptions']['editmyoptions'] = true;
5822 $wgGrantPermissions['editmyoptions']['editmyuserjson'] = true;
5823 
5824 $wgGrantPermissions['editinterface'] = $wgGrantPermissions['editpage'];
5825 $wgGrantPermissions['editinterface']['editinterface'] = true;
5826 $wgGrantPermissions['editinterface']['edituserjson'] = true;
5827 $wgGrantPermissions['editinterface']['editsitejson'] = true;
5828 
5829 $wgGrantPermissions['editsiteconfig'] = $wgGrantPermissions['editinterface'];
5830 $wgGrantPermissions['editsiteconfig']['editusercss'] = true;
5831 $wgGrantPermissions['editsiteconfig']['edituserjs'] = true;
5832 $wgGrantPermissions['editsiteconfig']['editsitecss'] = true;
5833 $wgGrantPermissions['editsiteconfig']['editsitejs'] = true;
5834 
5835 $wgGrantPermissions['createeditmovepage'] = $wgGrantPermissions['editpage'];
5836 $wgGrantPermissions['createeditmovepage']['createpage'] = true;
5837 $wgGrantPermissions['createeditmovepage']['createtalk'] = true;
5838 $wgGrantPermissions['createeditmovepage']['move'] = true;
5839 $wgGrantPermissions['createeditmovepage']['move-rootuserpages'] = true;
5840 $wgGrantPermissions['createeditmovepage']['move-subpages'] = true;
5841 $wgGrantPermissions['createeditmovepage']['move-categorypages'] = true;
5842 
5843 $wgGrantPermissions['uploadfile']['upload'] = true;
5844 $wgGrantPermissions['uploadfile']['reupload-own'] = true;
5845 
5846 $wgGrantPermissions['uploadeditmovefile'] = $wgGrantPermissions['uploadfile'];
5847 $wgGrantPermissions['uploadeditmovefile']['reupload'] = true;
5848 $wgGrantPermissions['uploadeditmovefile']['reupload-shared'] = true;
5849 $wgGrantPermissions['uploadeditmovefile']['upload_by_url'] = true;
5850 $wgGrantPermissions['uploadeditmovefile']['movefile'] = true;
5851 $wgGrantPermissions['uploadeditmovefile']['suppressredirect'] = true;
5852 
5853 $wgGrantPermissions['patrol']['patrol'] = true;
5854 
5855 $wgGrantPermissions['rollback']['rollback'] = true;
5856 
5857 $wgGrantPermissions['blockusers']['block'] = true;
5858 $wgGrantPermissions['blockusers']['blockemail'] = true;
5859 
5860 $wgGrantPermissions['viewdeleted']['browsearchive'] = true;
5861 $wgGrantPermissions['viewdeleted']['deletedhistory'] = true;
5862 $wgGrantPermissions['viewdeleted']['deletedtext'] = true;
5863 
5864 $wgGrantPermissions['viewrestrictedlogs']['suppressionlog'] = true;
5865 
5866 $wgGrantPermissions['delete'] = $wgGrantPermissions['editpage'] +
5867  $wgGrantPermissions['viewdeleted'];
5868 $wgGrantPermissions['delete']['delete'] = true;
5869 $wgGrantPermissions['delete']['bigdelete'] = true;
5870 $wgGrantPermissions['delete']['deletelogentry'] = true;
5871 $wgGrantPermissions['delete']['deleterevision'] = true;
5872 $wgGrantPermissions['delete']['undelete'] = true;
5873 
5874 $wgGrantPermissions['oversight']['suppressrevision'] = true;
5875 
5876 $wgGrantPermissions['protect'] = $wgGrantPermissions['editprotected'];
5877 $wgGrantPermissions['protect']['protect'] = true;
5878 
5879 $wgGrantPermissions['viewmywatchlist']['viewmywatchlist'] = true;
5880 
5881 $wgGrantPermissions['editmywatchlist']['editmywatchlist'] = true;
5882 
5883 $wgGrantPermissions['sendemail']['sendemail'] = true;
5884 
5885 $wgGrantPermissions['createaccount']['createaccount'] = true;
5886 
5887 $wgGrantPermissions['privateinfo']['viewmyprivateinfo'] = true;
5888 
5894  // Hidden grants are implicitly present
5895  'basic' => 'hidden',
5896 
5897  'editpage' => 'page-interaction',
5898  'createeditmovepage' => 'page-interaction',
5899  'editprotected' => 'page-interaction',
5900  'patrol' => 'page-interaction',
5901 
5902  'uploadfile' => 'file-interaction',
5903  'uploadeditmovefile' => 'file-interaction',
5904 
5905  'sendemail' => 'email',
5906 
5907  'viewmywatchlist' => 'watchlist-interaction',
5908  'editviewmywatchlist' => 'watchlist-interaction',
5909 
5910  'editmycssjs' => 'customization',
5911  'editmyoptions' => 'customization',
5912 
5913  'editinterface' => 'administration',
5914  'editsiteconfig' => 'administration',
5915  'rollback' => 'administration',
5916  'blockusers' => 'administration',
5917  'delete' => 'administration',
5918  'viewdeleted' => 'administration',
5919  'viewrestrictedlogs' => 'administration',
5920  'protect' => 'administration',
5921  'oversight' => 'administration',
5922  'createaccount' => 'administration',
5923 
5924  'highvolume' => 'high-volume',
5925 
5926  'privateinfo' => 'private-information',
5927 ];
5928 
5934 
5941 
5951  # end of user rights settings
5953 
5954 /************************************************************************/
5963 
5974  # end of proxy scanner settings
5976 
5977 /************************************************************************/
5985 $wgCookieExpiration = 30 * 86400;
5986 
5994 
6000 
6006 
6013 $wgCookieSecure = 'detect';
6014 
6022 
6029 
6036 
6041 
6046 
6055 
6064  # end of cookie settings }
6066 
6067 /************************************************************************/
6078 $wgUseTeX = false;
6079  # end LaTeX }
6081 
6082 /************************************************************************/
6096 
6101 
6108 
6115 
6125 
6135 
6142  // HTTP GET/HEAD requests.
6143  // Master queries should not happen on GET requests
6144  'GET' => [
6145  'masterConns' => 0,
6146  'writes' => 0,
6147  'readQueryTime' => 5,
6148  'readQueryRows' => 10000
6149  ],
6150  // HTTP POST requests.
6151  // Master reads and writes will happen for a subset of these.
6152  'POST' => [
6153  'readQueryTime' => 5,
6154  'writeQueryTime' => 1,
6155  'readQueryRows' => 100000,
6156  'maxAffected' => 1000
6157  ],
6158  'POST-nonwrite' => [
6159  'writes' => 0,
6160  'readQueryTime' => 5,
6161  'readQueryRows' => 10000
6162  ],
6163  // Deferred updates that run after HTTP response is sent for GET requests
6164  'PostSend-GET' => [
6165  'readQueryTime' => 5,
6166  'writeQueryTime' => 1,
6167  'readQueryRows' => 10000,
6168  'maxAffected' => 1000,
6169  // Log master queries under the post-send entry point as they are discouraged
6170  'masterConns' => 0,
6171  'writes' => 0,
6172  ],
6173  // Deferred updates that run after HTTP response is sent for POST requests
6174  'PostSend-POST' => [
6175  'readQueryTime' => 5,
6176  'writeQueryTime' => 1,
6177  'readQueryRows' => 100000,
6178  'maxAffected' => 1000
6179  ],
6180  // Background job runner
6181  'JobRunner' => [
6182  'readQueryTime' => 30,
6183  'writeQueryTime' => 5,
6184  'readQueryRows' => 100000,
6185  'maxAffected' => 500 // ballpark of $wgUpdateRowsPerQuery
6186  ],
6187  // Command-line scripts
6188  'Maintenance' => [
6189  'writeQueryTime' => 5,
6190  'maxAffected' => 1000
6191  ]
6192 ];
6193 
6225 
6249 ];
6250 
6257 
6263 
6268 
6273 
6283 
6291 
6303 
6308 
6314 
6319 
6326 
6332 
6339 
6397 
6404 
6410 
6418 
6430 
6439 
6447  'wanobjectcache:*' => 0.001
6448 ];
6449 
6456 
6464 
6479 
6484 
6490 
6499  # end of profiling, testing and debugging }
6501 
6502 /************************************************************************/
6511 
6517 
6522 $wgSearchHighlightBoundaries = '[\p{Z}\p{P}\p{C}]';
6523 
6535 
6545  'application/x-suggestions+json' => false,
6546  'application/x-suggestions+xml' => false,
6547 ];
6548 
6556 
6562 
6567 
6572 
6578 
6589  NS_MAIN => true,
6590 ];
6591 
6597 
6614 
6621 
6628 
6644 
6651  # end of search settings
6653 
6654 /************************************************************************/
6663 $wgDiff3 = '/usr/bin/diff3';
6664 
6668 $wgDiff = '/usr/bin/diff';
6669 
6676  NS_CATEGORY => true
6677 ];
6678 
6685 
6692  # end edit UI }
6694 
6695 /************************************************************************/
6705 if ( !isset( $wgCommandLineMode ) ) {
6706  $wgCommandLineMode = false;
6707 }
6714 
6724 
6731 
6740 
6751 
6755 $wgGitBin = '/usr/bin/git';
6756 
6771  'https://(?:[a-z0-9_]+@)?gerrit.wikimedia.org/r/(?:p/)?(.*)' =>
6772  'https://gerrit.wikimedia.org/g/%R/+/%H',
6773  'ssh://(?:[a-z0-9_]+@)?gerrit.wikimedia.org:29418/(.*)' =>
6774  'https://gerrit.wikimedia.org/g/%R/+/%H',
6775 ];
6776  # End of maintenance }
6778 
6779 /************************************************************************/
6789 $wgRCMaxAge = 90 * 24 * 3600;
6790 
6796 $wgWatchersMaxAge = 180 * 24 * 3600;
6797 
6805 
6814 
6819 $wgRCLinkLimits = [ 50, 100, 250, 500 ];
6820 
6825 $wgRCLinkDays = [ 1, 3, 7, 14, 30 ];
6826 
6881 
6888  'redis' => RedisPubSubFeedEngine::class,
6889  'udp' => UDPRCFeedEngine::class,
6890 ];
6891 
6904 
6914 
6921 
6930 
6941 
6945 $wgFeed = true;
6946 
6952 
6962 
6968 
6982 
6989  'rss' => RSSFeed::class,
6990  'atom' => AtomFeed::class,
6991 ];
6992 
6998 
7003 
7008 
7015 
7021 
7027 
7033 
7049  'mw-contentmodelchange' => true,
7050  'mw-new-redirect' => true,
7051  'mw-removed-redirect' => true,
7052  'mw-changed-redirect-target' => true,
7053  'mw-blank' => true,
7054  'mw-replace' => true,
7055  'mw-rollback' => true,
7056  'mw-undo' => true,
7057 ];
7058 
7067 
7093  'newpage' => [
7094  'letter' => 'newpageletter',
7095  'title' => 'recentchanges-label-newpage',
7096  'legend' => 'recentchanges-legend-newpage',
7097  'grouping' => 'any',
7098  ],
7099  'minor' => [
7100  'letter' => 'minoreditletter',
7101  'title' => 'recentchanges-label-minor',
7102  'legend' => 'recentchanges-legend-minor',
7103  'class' => 'minoredit',
7104  'grouping' => 'all',
7105  ],
7106  'bot' => [
7107  'letter' => 'boteditletter',
7108  'title' => 'recentchanges-label-bot',
7109  'legend' => 'recentchanges-legend-bot',
7110  'class' => 'botedit',
7111  'grouping' => 'all',
7112  ],
7113  'unpatrolled' => [
7114  'letter' => 'unpatrolledletter',
7115  'title' => 'recentchanges-label-unpatrolled',
7116  'legend' => 'recentchanges-legend-unpatrolled',
7117  'grouping' => 'any',
7118  ],
7119 ];
7120  # end RC/watchlist }
7122 
7123 /************************************************************************/
7136 
7143 
7151 
7156 
7161 
7170 
7176  # end of copyright and credits settings }
7178 
7179 /************************************************************************/
7207 
7216 
7223 
7230 
7235 
7248 
7253 
7258 
7266  # end of import/export }
7268 
7269 /*************************************************************************/
7279 
7307 
7334 
7341 
7357 
7362 
7372 
7380 
7385 
7392 
7446 
7482 
7495  __DIR__ . '/ServiceWiring.php'
7496 ];
7497 
7505  'deletePage' => DeletePageJob::class,
7506  'refreshLinks' => RefreshLinksJob::class,
7507  'deleteLinks' => DeleteLinksJob::class,
7508  'htmlCacheUpdate' => HTMLCacheUpdateJob::class,
7509  'sendMail' => EmaillingJob::class,
7510  'enotifNotify' => EnotifNotifyJob::class,
7511  'fixDoubleRedirect' => DoubleRedirectJob::class,
7512  'AssembleUploadChunks' => AssembleUploadChunksJob::class,
7513  'PublishStashedFile' => PublishStashedFileJob::class,
7514  'ThumbnailRender' => ThumbnailRenderJob::class,
7515  'recentChangesUpdate' => RecentChangesUpdateJob::class,
7516  'refreshLinksPrioritized' => RefreshLinksJob::class,
7517  'refreshLinksDynamic' => RefreshLinksJob::class,
7518  'activityUpdateJob' => ActivityUpdateJob::class,
7519  'categoryMembershipChange' => function ( Title $title, $params = [] ) {
7520  $pc = MediaWikiServices::getInstance()->getParserCache();
7521  return new CategoryMembershipChangeJob( $pc, $title, $params );
7522  },
7523  'clearUserWatchlist' => ClearUserWatchlistJob::class,
7524  'cdnPurge' => CdnPurgeJob::class,
7525  'userGroupExpiry' => UserGroupExpiryJob::class,
7526  'clearWatchlistNotifications' => ClearWatchlistNotificationsJob::class,
7527  'enqueue' => EnqueueJob::class, // local queue for multi-DC setups
7528  'null' => NullJob::class,
7529 ];
7530 
7542 $wgJobTypesExcludedFromDefaultQueue = [ 'AssembleUploadChunks', 'PublishStashedFile' ];
7543 
7554 
7569 
7577  'default' => [ 'class' => JobQueueDB::class, 'order' => 'random', 'claimTTL' => 3600 ],
7578 ];
7579 
7592 
7598  'Statistics' => [ SiteStatsUpdate::class, 'cacheUpdate' ]
7599 ];
7600 
7609  'hiddencat' => 'categorylinks',
7610 ];
7611  # End extensions }
7613 
7614 /*************************************************************************/
7623 
7629 
7634 
7660 $wgCategoryCollation = 'uppercase';
7661  # End categories }
7663 
7664 /*************************************************************************/
7679  '',
7680  'block',
7681  'protect',
7682  'rights',
7683  'delete',
7684  'upload',
7685  'move',
7686  'import',
7687  'patrol',
7688  'merge',
7689  'suppress',
7690  'tag',
7691  'managetags',
7692  'contentmodel',
7693 ];
7694 
7703  'suppress' => 'suppressionlog'
7704 ];
7705 
7726  'patrol' => true,
7727  'tag' => true,
7728 ];
7729 
7740  '' => 'all-logs-page',
7741  'block' => 'blocklogpage',
7742  'protect' => 'protectlogpage',
7743  'rights' => 'rightslog',
7744  'delete' => 'dellogpage',
7745  'upload' => 'uploadlogpage',
7746  'move' => 'movelogpage',
7747  'import' => 'importlogpage',
7748  'patrol' => 'patrol-log-page',
7749  'merge' => 'mergelog',
7750  'suppress' => 'suppressionlog',
7751 ];
7752 
7763  '' => 'alllogstext',
7764  'block' => 'blocklogtext',
7765  'delete' => 'dellogpagetext',
7766  'import' => 'importlogpagetext',
7767  'merge' => 'mergelogpagetext',
7768  'move' => 'movelogpagetext',
7769  'patrol' => 'patrol-log-header',
7770  'protect' => 'protectlogtext',
7771  'rights' => 'rightslogtext',
7772  'suppress' => 'suppressionlogtext',
7773  'upload' => 'uploadlogpagetext',
7774 ];
7775 
7783 
7791  'block/block' => BlockLogFormatter::class,
7792  'block/reblock' => BlockLogFormatter::class,
7793  'block/unblock' => BlockLogFormatter::class,
7794  'contentmodel/change' => ContentModelLogFormatter::class,
7795  'contentmodel/new' => ContentModelLogFormatter::class,
7796  'delete/delete' => DeleteLogFormatter::class,
7797  'delete/delete_redir' => DeleteLogFormatter::class,
7798  'delete/event' => DeleteLogFormatter::class,
7799  'delete/restore' => DeleteLogFormatter::class,
7800  'delete/revision' => DeleteLogFormatter::class,
7801  'import/interwiki' => ImportLogFormatter::class,
7802  'import/upload' => ImportLogFormatter::class,
7803  'managetags/activate' => LogFormatter::class,
7804  'managetags/create' => LogFormatter::class,
7805  'managetags/deactivate' => LogFormatter::class,
7806  'managetags/delete' => LogFormatter::class,
7807  'merge/merge' => MergeLogFormatter::class,
7808  'move/move' => MoveLogFormatter::class,
7809  'move/move_redir' => MoveLogFormatter::class,
7810  'patrol/patrol' => PatrolLogFormatter::class,
7811  'patrol/autopatrol' => PatrolLogFormatter::class,
7812  'protect/modify' => ProtectLogFormatter::class,
7813  'protect/move_prot' => ProtectLogFormatter::class,
7814  'protect/protect' => ProtectLogFormatter::class,
7815  'protect/unprotect' => ProtectLogFormatter::class,
7816  'rights/autopromote' => RightsLogFormatter::class,
7817  'rights/rights' => RightsLogFormatter::class,
7818  'suppress/block' => BlockLogFormatter::class,
7819  'suppress/delete' => DeleteLogFormatter::class,
7820  'suppress/event' => DeleteLogFormatter::class,
7821  'suppress/reblock' => BlockLogFormatter::class,
7822  'suppress/revision' => DeleteLogFormatter::class,
7823  'tag/update' => TagLogFormatter::class,
7824  'upload/overwrite' => UploadLogFormatter::class,
7825  'upload/revert' => UploadLogFormatter::class,
7826  'upload/upload' => UploadLogFormatter::class,
7827 ];
7828 
7838  'block' => [
7839  'block' => [ 'block' ],
7840  'reblock' => [ 'reblock' ],
7841  'unblock' => [ 'unblock' ],
7842  ],
7843  'contentmodel' => [
7844  'change' => [ 'change' ],
7845  'new' => [ 'new' ],
7846  ],
7847  'delete' => [
7848  'delete' => [ 'delete' ],
7849  'delete_redir' => [ 'delete_redir' ],
7850  'restore' => [ 'restore' ],
7851  'event' => [ 'event' ],
7852  'revision' => [ 'revision' ],
7853  ],
7854  'import' => [
7855  'interwiki' => [ 'interwiki' ],
7856  'upload' => [ 'upload' ],
7857  ],
7858  'managetags' => [
7859  'create' => [ 'create' ],
7860  'delete' => [ 'delete' ],
7861  'activate' => [ 'activate' ],
7862  'deactivate' => [ 'deactivate' ],
7863  ],
7864  'move' => [
7865  'move' => [ 'move' ],
7866  'move_redir' => [ 'move_redir' ],
7867  ],
7868  'newusers' => [
7869  'create' => [ 'create', 'newusers' ],
7870  'create2' => [ 'create2' ],
7871  'autocreate' => [ 'autocreate' ],
7872  'byemail' => [ 'byemail' ],
7873  ],
7874  'protect' => [
7875  'protect' => [ 'protect' ],
7876  'modify' => [ 'modify' ],
7877  'unprotect' => [ 'unprotect' ],
7878  'move_prot' => [ 'move_prot' ],
7879  ],
7880  'rights' => [
7881  'rights' => [ 'rights' ],
7882  'autopromote' => [ 'autopromote' ],
7883  ],
7884  'suppress' => [
7885  'event' => [ 'event' ],
7886  'revision' => [ 'revision' ],
7887  'delete' => [ 'delete' ],
7888  'block' => [ 'block' ],
7889  'reblock' => [ 'reblock' ],
7890  ],
7891  'upload' => [
7892  'upload' => [ 'upload' ],
7893  'overwrite' => [ 'overwrite' ],
7894  'revert' => [ 'revert' ],
7895  ],
7896 ];
7897 
7902 
7908  # end logging }
7910 
7911 /*************************************************************************/
7920 
7926 
7932 
7938  # end special pages }
7940 
7941 /*************************************************************************/
7957  'credits' => true,
7958  'delete' => true,
7959  'edit' => true,
7960  'editchangetags' => SpecialPageAction::class,
7961  'history' => true,
7962  'info' => true,
7963  'markpatrolled' => true,
7964  'mcrundo' => McrUndoAction::class,
7965  'mcrrestore' => McrRestoreAction::class,
7966  'protect' => true,
7967  'purge' => true,
7968  'raw' => true,
7969  'render' => true,
7970  'revert' => true,
7971  'revisiondelete' => SpecialPageAction::class,
7972  'rollback' => true,
7973  'submit' => true,
7974  'unprotect' => true,
7975  'unwatch' => true,
7976  'view' => true,
7977  'watch' => true,
7978 ];
7979  # end actions }
7981 
7982 /*************************************************************************/
7993 $wgDefaultRobotPolicy = 'index,follow';
7994 
8010 
8038 
8050  # End robot policy }
8052 
8053 /************************************************************************/
8075 $wgDebugAPI = false;
8076 
8114 
8123 
8132 
8141 
8150 
8156 
8162 
8168 
8175 
8181 
8186 
8192  'MIMEsearch', // aiprop=mime
8193  'LinkSearch', // list=exturlusage
8194  'FileDuplicateSearch', // prop=duplicatefiles
8195 ];
8196 
8202 $wgUseAjax = true;
8203 
8210 
8215 
8220 
8226 
8248 
8255  # End AJAX and API }
8257 
8258 /************************************************************************/
8267 
8273 
8278 
8284 
8309 
8313 $wgPhpCli = '/usr/bin/php';
8314 
8349 $wgShellLocale = 'C.UTF-8';
8350 
8366  # End shell }
8368 
8369 /************************************************************************/
8379 
8385 
8390 
8395 
8410 
8416  # End HTTP client }
8418 
8419 /************************************************************************/
8431 
8440 
8445 
8450  # End job queue }
8452 
8453 /************************************************************************/
8465 
8479 
8489 
8495 
8501 
8506 
8512 
8518 
8552 
8557 
8570 
8582 
8597 
8609  CONTENT_MODEL_WIKITEXT, // Just for completeness, wikitext will always be parsed.
8610  CONTENT_MODEL_JAVASCRIPT, // Make categories etc work, people put them into comments.
8611  CONTENT_MODEL_CSS, // Make categories etc work, people put them into comments.
8612 ];
8613 
8620  'mediawiki' => MediaWikiSite::class,
8621 ];
8622 
8629 
8642 
8650 
8659 
8669 
8676 $wgHKDFAlgorithm = 'sha256';
8677 
8685 
8724  'paths' => [],
8725  'modules' => [],
8726  'global' => [
8727  # Timeout in seconds
8728  'timeout' => 360,
8729  # 'domain' is set to $wgCanonicalServer in Setup.php
8730  'forwardCookies' => false,
8731  'HTTPProxy' => null
8732  ]
8733 ];
8734 
8743 
8756 $wgPopularPasswordFile = __DIR__ . '/password/commonpasswords.cdb';
8757 
8758 /*
8759  * Max time (in seconds) a user-generated transaction can spend in writes.
8760  * If exceeded, the transaction is rolled back with an error instead of being committed.
8761  *
8762  * @var int|bool Disabled if false
8763  * @since 1.27
8764  */
8766 
8767 /*
8768  * Max time (in seconds) a job-generated transaction can spend in writes.
8769  * If exceeded, the transaction is rolled back with an error instead of being committed.
8770  *
8771  * @var int|bool Disabled if false
8772  * @since 1.30
8773  */
8775 
8797 
8805 
8817  'copyright',
8818  'history_copyright',
8819  'googlesearch',
8820  'feedback-terms',
8821  'feedback-termsofuse',
8822 ];
8823 
8844  'default' => [
8845  'class' => EventRelayerNull::class,
8846  ]
8847 ];
8848 
8862 $wgPingback = false;
8863 
8873  'https://3hub.co' => true,
8874  'https://morepro.info' => true,
8875  'https://p.ato.mx' => true,
8876  'https://s.ato.mx' => true,
8877  'https://adserver.adtech.de' => true,
8878  'https://ums.adtechus.com' => true,
8879  'https://cas.criteo.com' => true,
8880  'https://cat.nl.eu.criteo.com' => true,
8881  'https://atpixel.alephd.com' => true,
8882  'https://rtb.metrigo.com' => true,
8883  'https://d5p.de17a.com' => true,
8884  'https://ad.lkqd.net/vpaid/vpaid.js' => true,
8885  'https://ad.lkqd.net/vpaid/vpaid.js?fusion=1.0' => true,
8886  'https://t.lkqd.net/t' => true,
8887  'chrome-extension' => true,
8888 ];
8889 
8898  'IPv4' => 16,
8899  'IPv6' => 32,
8900 ];
8901 
8918 
8937 
8958 
8964 
8982 
8992 
9000 
9010 
9020 
$wgSend404Code
$wgSend404Code
Some web hosts attempt to rewrite all responses with a 404 (not found) status code,...
Definition: DefaultSettings.php:3509
$wgProfileLimit
$wgProfileLimit
Only record profiling info for pages that took longer than this.
Definition: DefaultSettings.php:6409
$wgConf
$wgConf
wgConf hold the site configuration.
Definition: DefaultSettings.php:59
$wgNonincludableNamespaces
$wgNonincludableNamespaces
Pages in namespaces in this array can not be used as templates.
Definition: DefaultSettings.php:5347
$wgEventRelayerConfig
$wgEventRelayerConfig
Mapping of event channels (or channel categories) to EventRelayer configuration.
Definition: DefaultSettings.php:8843
$wgInterwikiScopes
$wgInterwikiScopes
Specify number of domains to check for messages.
Definition: DefaultSettings.php:3960
$wgActionFilteredLogs
$wgActionFilteredLogs
List of log types that can be filtered by action types.
Definition: DefaultSettings.php:7837
$wgHiddenPrefs
$wgHiddenPrefs
An array of preferences to not show for the user.
Definition: DefaultSettings.php:4895
$wgMemCachedServers
$wgMemCachedServers
The list of MemCached servers and port numbers.
Definition: DefaultSettings.php:2532
$wgAppleTouchIcon
$wgAppleTouchIcon
The URL path of the icon for iPhone and iPod Touch web app bookmarks.
Definition: DefaultSettings.php:303
AV_NO_VIRUS
const AV_NO_VIRUS
Definition: Defines.php:111
$wgDjvuTxt
$wgDjvuTxt
Path of the djvutxt DJVU text extraction utility Enable this and $wgDjvuDump to enable text layer ext...
Definition: DefaultSettings.php:1604
$wgSharedUploadDirectory
string $wgSharedUploadDirectory
Shortcut for the 'directory' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:591
$wgLocalInterwiki
$wgLocalInterwiki
The interwiki prefix of the current wiki, or false if it doesn't have one.
Definition: DefaultSettings.php:3912
$wgJsMimeType
$wgJsMimeType
Previously used as content type in HTML script tags.
Definition: DefaultSettings.php:3217
$wgAdditionalMailParams
$wgAdditionalMailParams
Additional email parameters, will be passed as the last argument to mail() call.
Definition: DefaultSettings.php:1748
$wgFeedLimit
$wgFeedLimit
Set maximum number of results to return in syndication feeds (RSS, Atom) for eg Recentchanges,...
Definition: DefaultSettings.php:6951
$wgDebugRedirects
$wgDebugRedirects
If true, instead of redirecting, show a page with a link to the redirect destination.
Definition: DefaultSettings.php:6107
$wgRCLinkLimits
$wgRCLinkLimits
List of Limits options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
Definition: DefaultSettings.php:6819
$wgAllowJavaUploads
$wgAllowJavaUploads
Allow Java archive uploads.
Definition: DefaultSettings.php:971
$wgPhpCli
$wgPhpCli
Executable path of the PHP cli binary.
Definition: DefaultSettings.php:8313
CONTENT_MODEL_JSON
const CONTENT_MODEL_JSON
Definition: Defines.php:239
$wgActions
$wgActions
Array of allowed values for the "title=foo&action=<action>" parameter.
Definition: DefaultSettings.php:7956
$wgUpdateCompatibleMetadata
$wgUpdateCompatibleMetadata
If to automatically update the img_metadata field if the metadata field is outdated but compatible wi...
Definition: DefaultSettings.php:801
$wgUseAutomaticEditSummaries
$wgUseAutomaticEditSummaries
If user doesn't specify any edit summary when making a an edit, MediaWiki will try to automatically c...
Definition: DefaultSettings.php:6691
$wgAuthManagerConfig
$wgAuthManagerConfig
Configure AuthManager.
Definition: DefaultSettings.php:4521
$wgPingback
bool $wgPingback
Share data about this installation with MediaWiki developers.
Definition: DefaultSettings.php:8862
$wgSiteStatsAsyncFactor
$wgSiteStatsAsyncFactor
Set this to an integer to only do synchronous site_stats updates one every this many updates.
Definition: DefaultSettings.php:6463
$wgElementTiming
bool $wgElementTiming
Enable Element Timing.
Definition: DefaultSettings.php:9019
$wgAPIListModules
$wgAPIListModules
API Query list module extensions.
Definition: DefaultSettings.php:8149
$wgUseTagFilter
$wgUseTagFilter
Allow filtering by change tag in recentchanges, history, etc Has no effect if no tags are defined in ...
Definition: DefaultSettings.php:7032
$wgProxyWhitelist
$wgProxyWhitelist
Proxy whitelist, list of addresses that are assumed to be non-proxy despite what the other methods mi...
Definition: DefaultSettings.php:5610
$wgLocalVirtualHosts
$wgLocalVirtualHosts
Local virtual hosts.
Definition: DefaultSettings.php:8409
$wgSitemapNamespacesPriorities
$wgSitemapNamespacesPriorities
Custom namespace priorities for sitemaps.
Definition: DefaultSettings.php:6643
$wgHTTPConnectTimeout
$wgHTTPConnectTimeout
Timeout for connections done internally (in seconds) Only works for curl.
Definition: DefaultSettings.php:8415
$wgNamespaceContentModels
$wgNamespaceContentModels
Associative array mapping namespace IDs to the name of the content model pages in that namespace shou...
Definition: DefaultSettings.php:8569
$wgMaxCredits
$wgMaxCredits
Set this to the number of authors that you want to be credited below an article text.
Definition: DefaultSettings.php:7169
$wgAPIMaxUncachedDiffs
$wgAPIMaxUncachedDiffs
The maximum number of uncached diffs that can be retrieved in one API request.
Definition: DefaultSettings.php:8167
file
Using a hook running we can avoid having all this option specific stuff in our mainline code Using the function We ve cleaned up the code here by removing clumps of infrequently used code and moving them off somewhere else It s much easier for someone working with this code to see what s _really_ going and make changes or fix bugs In we can take all the code that deals with the little used title reversing we can concentrate it all in an extension file
Definition: hooks.txt:91
$wgChangeCredentialsBlacklist
string[] $wgChangeCredentialsBlacklist
List of AuthenticationRequest class names which are not changeable through Special:ChangeCredentials ...
Definition: DefaultSettings.php:4653
$wgProxyList
$wgProxyList
Big list of banned IP addresses.
Definition: DefaultSettings.php:5973
$wgThumbLimits
$wgThumbLimits
Adjust thumbnails on image pages according to a user setting.
Definition: DefaultSettings.php:1459
$wgLocalDatabases
string[] $wgLocalDatabases
Other wikis on this site, can be administered from a single developer account.
Definition: DefaultSettings.php:2160
$wgCSPFalsePositiveUrls
$wgCSPFalsePositiveUrls
List of urls which appear often to be triggering CSP reports but do not appear to be caused by actual...
Definition: DefaultSettings.php:8872
SCHEMA_COMPAT_READ_NEW
const SCHEMA_COMPAT_READ_NEW
Definition: Defines.php:287
$wgMaximalPasswordLength
$wgMaximalPasswordLength
Specifies the maximal length of a user password (T64685).
Definition: DefaultSettings.php:4694
$wgIncludeLegacyJavaScript
$wgIncludeLegacyJavaScript
Whether to ensure the mediawiki.legacy library is loaded before other modules.
Definition: DefaultSettings.php:3713
$wgShowSQLErrors
$wgShowSQLErrors
Whether to show "we're sorry, but there has been a database error" pages.
Definition: DefaultSettings.php:6282
$wgDBserver
$wgDBserver
Database host name or IP address.
Definition: DefaultSettings.php:1863
false
processing should stop and the error should be shown to the user * false
Definition: hooks.txt:187
$wgFileBlacklist
$wgFileBlacklist
Files with these extensions will never be allowed as uploads.
Definition: DefaultSettings.php:939
$wgDisableHardRedirects
$wgDisableHardRedirects
Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected f...
Definition: DefaultSettings.php:8488
NS_HELP
const NS_HELP
Definition: Defines.php:76
MEDIATYPE_AUDIO
const MEDIATYPE_AUDIO
Definition: defines.php:32
$wgBotPasswordsDatabase
string bool $wgBotPasswordsDatabase
Database name for the bot_passwords table.
Definition: DefaultSettings.php:5950
$wgRCLinkDays
$wgRCLinkDays
List of Days options to list in the Special:Recentchanges and Special:Recentchangeslinked pages.
Definition: DefaultSettings.php:6825
$wgMangleFlashPolicy
$wgMangleFlashPolicy
When OutputHandler is used, mangle any output that contains <cross-domain-policy>.
Definition: DefaultSettings.php:3538
$wgMimeType
$wgMimeType
The default Content-Type header.
Definition: DefaultSettings.php:3208
$wgMaxArticleSize
$wgMaxArticleSize
Maximum article size in kilobytes.
Definition: DefaultSettings.php:2287
$wgAPIModules
$wgAPIModules
API module extensions.
Definition: DefaultSettings.php:8113
$wgResourceLoaderMaxQueryLength
$wgResourceLoaderMaxQueryLength
If set to a positive number, ResourceLoader will not generate URLs whose query string is more than th...
Definition: DefaultSettings.php:3755
$wgProfileOnly
$wgProfileOnly
Don't put non-profiling info into log file.
Definition: DefaultSettings.php:6417
$wgDisabledVariants
$wgDisabledVariants
Disabled variants array of language variant conversion.
Definition: DefaultSettings.php:3113
$wgSysopEmailBans
$wgSysopEmailBans
Allow sysops to ban users from accessing Emailuser.
Definition: DefaultSettings.php:4983
$wgFixDoubleRedirects
$wgFixDoubleRedirects
Fix double redirects after a page move.
Definition: DefaultSettings.php:8511
$wgNewPasswordExpiry
$wgNewPasswordExpiry
The time, in seconds, when an emailed temporary password expires.
Definition: DefaultSettings.php:1707
$wgJobTypeConf
$wgJobTypeConf
Map of job types to configuration arrays.
Definition: DefaultSettings.php:7576
$wgPageCreationLog
$wgPageCreationLog
Maintain a log of page creations at Special:Log/create?
Definition: DefaultSettings.php:7907
$wgExemptFromUserRobotsControl
$wgExemptFromUserRobotsControl
An array of namespace keys in which the INDEX/__NOINDEX__ magic words will not function,...
Definition: DefaultSettings.php:8049
$wgHKDFAlgorithm
$wgHKDFAlgorithm
Algorithm for hmac-based key derivation function (fast, cryptographically secure random numbers).
Definition: DefaultSettings.php:8676
$wgStyleSheetPath
$wgStyleSheetPath
The URL path to index.php.
Definition: DefaultSettings.php:202
$wgResourceLoaderEnableJSProfiler
$wgResourceLoaderEnableJSProfiler
When enabled, execution of JavaScript modules is profiled client-side.
Definition: DefaultSettings.php:3774
$wgExternalStores
$wgExternalStores
External stores allow including content from non database sources following URL links.
Definition: DefaultSettings.php:2205
$wgResponsiveImages
$wgResponsiveImages
Generate and use thumbnails suitable for screens with 1.5 and 2.0 pixel densities.
Definition: DefaultSettings.php:1578
$wgInvalidateCacheOnLocalSettingsChange
$wgInvalidateCacheOnLocalSettingsChange
Invalidate various caches when LocalSettings.php changes.
Definition: DefaultSettings.php:2671
$wgAuthManagerAutoConfig
$wgAuthManagerAutoConfig
Definition: DefaultSettings.php:4527
$wgAjaxLicensePreview
$wgAjaxLicensePreview
Enable previewing licences via AJAX.
Definition: DefaultSettings.php:8219
SiteConfiguration
This is a class for holding configuration settings, particularly for multi-wiki sites.
Definition: SiteConfiguration.php:124
$wgDebugRawPage
$wgDebugRawPage
If true, log debugging data from action=raw and load.php.
Definition: DefaultSettings.php:6114
$wgTmpDirectory
$wgTmpDirectory
The local filesystem path to a temporary directory.
Definition: DefaultSettings.php:339
$wgRightsText
$wgRightsText
If either $wgRightsUrl or $wgRightsPage is specified then this variable gives the text for the link.
Definition: DefaultSettings.php:7150
$wgEnotifMinorEdits
$wgEnotifMinorEdits
Potentially send notification mails on minor edits to pages.
Definition: DefaultSettings.php:1825
$wgDBname
$wgDBname
Name of the database; this should be alphanumeric and not contain spaces nor hyphens.
Definition: DefaultSettings.php:1873
$wgRevokePermissions
$wgRevokePermissions
Permission keys revoked from users in each group.
Definition: DefaultSettings.php:5247
$wgMaximumMovedPages
$wgMaximumMovedPages
Maximum number of pages to move at once when moving subpages with a page.
Definition: DefaultSettings.php:8505
AV_SCAN_FAILED
const AV_SCAN_FAILED
Definition: Defines.php:114
$wgHTMLFormAllowTableFormat
$wgHTMLFormAllowTableFormat
Temporary variable that allows HTMLForms to be rendered as tables.
Definition: DefaultSettings.php:3254
$wgCopyUploadsDomains
$wgCopyUploadsDomains
A list of domains copy uploads can come from.
Definition: DefaultSettings.php:815
$wgBlockAllowsUTEdit
$wgBlockAllowsUTEdit
Set this to true to allow blocked users to edit their own user talk page.
Definition: DefaultSettings.php:4978
$wgEdititis
$wgEdititis
Display user edit counts in various prominent places.
Definition: DefaultSettings.php:3496
$wgSharedTables
$wgSharedTables
Definition: DefaultSettings.php:2009
$wgSharedSchema
$wgSharedSchema
Definition: DefaultSettings.php:2015
$wgExternalInterwikiFragmentMode
$wgExternalInterwikiFragmentMode
Which ID escaping mode should be used for external interwiki links? See documentation for $wgFragment...
Definition: DefaultSettings.php:3437
$wgLegacyEncoding
$wgLegacyEncoding
Set this to eg 'ISO-8859-1' to perform character set conversion when loading old revisions not marked...
Definition: DefaultSettings.php:3039
$wgFeedCacheTimeout
$wgFeedCacheTimeout
Minimum timeout for cached Recentchanges feed, in seconds.
Definition: DefaultSettings.php:6961
$wgJpegPixelFormat
$wgJpegPixelFormat
At default setting of 'yuv420', JPEG thumbnails will use 4:2:0 chroma subsampling to reduce file size...
Definition: DefaultSettings.php:1150
$wgShowUpdatedMarker
$wgShowUpdatedMarker
Show "Updated (since my last visit)" marker in RC view, watchlist and history view for watched pages ...
Definition: DefaultSettings.php:7020
$wgRedirectOnLogin
$wgRedirectOnLogin
Allow redirection to another page when a user logs in.
Definition: DefaultSettings.php:8517
NS_TEMPLATE_TALK
const NS_TEMPLATE_TALK
Definition: Defines.php:75
$wgMimeInfoFile
$wgMimeInfoFile
Sets the MIME type info file to use by includes/libs/mime/MimeAnalyzer.php.
Definition: DefaultSettings.php:1404
$wgLogHeaders
$wgLogHeaders
Lists the message key string for descriptive text to be shown at the top of each log type.
Definition: DefaultSettings.php:7762
$wgStatsdSamplingRates
$wgStatsdSamplingRates
Sampling rate for statsd metrics as an associative array of patterns and rates.
Definition: DefaultSettings.php:6446
$wgExiftool
$wgExiftool
Path to exiftool binary.
Definition: DefaultSettings.php:1172
$wgLegalTitleChars
$wgLegalTitleChars
Allowed title characters – regex character class Don't change this unless you know what you're doing.
Definition: DefaultSettings.php:3905
$wgJobBackoffThrottling
float[] $wgJobBackoffThrottling
Map of job types to how many job "work items" should be run per second on each job runner process.
Definition: DefaultSettings.php:7553
$wgDiff3
$wgDiff3
Path to the GNU diff3 utility.
Definition: DefaultSettings.php:6663
$wgExperiencedUserMemberSince
$wgExperiencedUserMemberSince
Name of the external diff engine to use.
Definition: DefaultSettings.php:8917
$wgPasswordDefault
$wgPasswordDefault
Default password type to use when hashing user passwords.
Definition: DefaultSettings.php:4708
$wgSearchTypeAlternatives
$wgSearchTypeAlternatives
Alternative search types Sometimes you want to support multiple search engines for testing.
Definition: DefaultSettings.php:1935
$wgParserConf
$wgParserConf
Parser configuration.
Definition: DefaultSettings.php:4121
$wgUsersNotifiedOnAllChanges
$wgUsersNotifiedOnAllChanges
Array of usernames who will be sent a notification email for every change which occurs on a wiki.
Definition: DefaultSettings.php:1851
$wgWhitelistReadRegexp
$wgWhitelistReadRegexp
Pages anonymous user may see, set as an array of regular expressions.
Definition: DefaultSettings.php:5061
$wgMaxTemplateDepth
$wgMaxTemplateDepth
Maximum recursion depth for templates within templates.
Definition: DefaultSettings.php:4154
$wgSharpenParameter
$wgSharpenParameter
Sharpening parameter to ImageMagick.
Definition: DefaultSettings.php:1097
$wgEnotifFromEditor
bool $wgEnotifFromEditor
Allow sending of e-mail notifications with the editor's address as sender.
Definition: DefaultSettings.php:1767
$wgScript
$wgScript
The URL path to index.php.
Definition: DefaultSettings.php:186
CACHE_NONE
const CACHE_NONE
Definition: Defines.php:102
$wgDBport
$wgDBport
Database port number (for PostgreSQL and Microsoft SQL Server).
Definition: DefaultSettings.php:1868
$wgCookiePath
$wgCookiePath
Set this variable if you want to restrict cookies to a certain path within the domain specified by $w...
Definition: DefaultSettings.php:6005
$wgHTCPMulticastTTL
$wgHTCPMulticastTTL
HTCP multicast TTL.
Definition: DefaultSettings.php:2883
$wgDBtype
$wgDBtype
Database type.
Definition: DefaultSettings.php:1888
$wgDisableQueryPages
$wgDisableQueryPages
Disable all query pages if miser mode is on, not just some.
Definition: DefaultSettings.php:2262
$wgTranscludeCacheExpiry
$wgTranscludeCacheExpiry
Expiry time for transcluded templates cached in object cache.
Definition: DefaultSettings.php:4326
$wgSharedDB
$wgSharedDB
Shared database for multiple wikis.
Definition: DefaultSettings.php:1999
$wgPasswordResetRoutes
$wgPasswordResetRoutes
Whether to allow password resets ("enter some identifying data, and we'll send an email with a tempor...
Definition: DefaultSettings.php:4786
$wgSVGMaxSize
$wgSVGMaxSize
Don't scale a SVG larger than this.
Definition: DefaultSettings.php:1208
$wgHideInterlanguageLinks
$wgHideInterlanguageLinks
Hide interlanguage links from the sidebar.
Definition: DefaultSettings.php:2940
$wgRemoveCredentialsBlacklist
string[] $wgRemoveCredentialsBlacklist
List of AuthenticationRequest class names which are not removable through Special:RemoveCredentials a...
Definition: DefaultSettings.php:4666
$wgLocalFileRepo
$wgLocalFileRepo
File repository structures.
Definition: DefaultSettings.php:526
CONTENT_MODEL_CSS
const CONTENT_MODEL_CSS
Definition: Defines.php:237
$wgWANObjectCaches
$wgWANObjectCaches
Advanced WAN object cache configuration.
Definition: DefaultSettings.php:2446
$wgSharedUploadDBname
bool string $wgSharedUploadDBname
Shortcut for the ForeignDBRepo 'dbName' setting in $wgForeignFileRepos.
Definition: DefaultSettings.php:636
$wgDjvuPostProcessor
$wgDjvuPostProcessor
Shell command for the DJVU post processor Default: pnmtojpeg, since ddjvu generates ppm output Set th...
Definition: DefaultSettings.php:1627
$wgVersion
$wgVersion
MediaWiki version number.
Definition: DefaultSettings.php:75
$wgAmericanDates
$wgAmericanDates
Enable dates like 'May 12' instead of '12 May', if the default date format is 'dmy or mdy'.
Definition: DefaultSettings.php:3059
CACHE_MEMCACHED
const CACHE_MEMCACHED
Definition: Defines.php:104
$wgAutoblockExpiry
$wgAutoblockExpiry
Number of seconds before autoblock entries expire.
Definition: DefaultSettings.php:4969
$wgUploadMaintenance
$wgUploadMaintenance
To disable file delete/restore temporarily.
Definition: DefaultSettings.php:8556
$wgExtensionMessagesFiles
$wgExtensionMessagesFiles
Extension messages files.
Definition: DefaultSettings.php:7306
$wgSessionInsecureSecrets
$wgSessionInsecureSecrets
If for some reason you can't install the PHP OpenSSL or mcrypt extensions, you can set this to true t...
Definition: DefaultSettings.php:8658
$wgShowCreditsIfMax
$wgShowCreditsIfMax
If there are more than $wgMaxCredits authors, show $wgMaxCredits of them.
Definition: DefaultSettings.php:7175
$wgSoftBlockRanges
string[] $wgSoftBlockRanges
IP ranges that should be considered soft-blocked (anon-only, account creation allowed).
Definition: DefaultSettings.php:5619
$wgBotPasswordsCluster
string bool $wgBotPasswordsCluster
Cluster for the bot_passwords table If false, the normal cluster will be used.
Definition: DefaultSettings.php:5940
$wgNoFollowDomainExceptions
$wgNoFollowDomainExceptions
If this is set to an array of domains, external links to these domain names (or any subdomains) will ...
Definition: DefaultSettings.php:4291
$wgUseTwoButtonsSearchForm
$wgUseTwoButtonsSearchForm
Search form behavior.
Definition: DefaultSettings.php:6620
$wgEnablePartialBlocks
bool $wgEnablePartialBlocks
Flag to enable Partial Blocks.
Definition: DefaultSettings.php:8991
$wgCategoryMagicGallery
$wgCategoryMagicGallery
On category pages, show thumbnail gallery for images belonging to that category instead of listing th...
Definition: DefaultSettings.php:7628
$wgSpecialPageCacheUpdates
$wgSpecialPageCacheUpdates
Additional functions to be performed with updateSpecialPages.
Definition: DefaultSettings.php:7597
$wgMessagesDirs
$wgMessagesDirs
Extension messages directories.
Definition: DefaultSettings.php:7333
$wgShowHostnames
$wgShowHostnames
Expose backend server host names through the API and various HTML comments.
Definition: DefaultSettings.php:6318
$wgEmailAuthentication
$wgEmailAuthentication
Require email authentication before sending mail to an email address.
Definition: DefaultSettings.php:1780
$wgDeprecationReleaseLimit
$wgDeprecationReleaseLimit
Release limitation to wfDeprecated warnings, if set to a release number development warnings will not...
Definition: DefaultSettings.php:6338
$wgMaxUploadSize
$wgMaxUploadSize
Max size for uploads, in bytes.
Definition: DefaultSettings.php:858
$wgDebugAPI
$wgDebugAPI
Definition: DefaultSettings.php:8075
$wgUseMediaWikiUIEverywhere
$wgUseMediaWikiUIEverywhere
Temporary variable that applies MediaWiki UI wherever it can be supported.
Definition: DefaultSettings.php:3262
$wgDBmwschema
$wgDBmwschema
Mediawiki schema; this should be alphanumeric and not contain spaces nor hyphens.
Definition: DefaultSettings.php:1960
$wgUseTeX
$wgUseTeX
To use inline TeX, you need to compile 'texvc' (in the 'math' subdirectory of the MediaWiki package a...
Definition: DefaultSettings.php:6078
$wgDefaultUserOptions
$wgDefaultUserOptions
Settings added to this array will override the default globals for the user preferences used by anony...
Definition: DefaultSettings.php:4827
$wgExternalServers
$wgExternalServers
An array of external MySQL servers.
Definition: DefaultSettings.php:2221
$wgMessageCacheType
$wgMessageCacheType
The cache type for storing the contents of the MediaWiki namespace.
Definition: DefaultSettings.php:2345
$wgServiceWiringFiles
$wgServiceWiringFiles
List of service wiring files to be loaded by the default instance of MediaWikiServices.
Definition: DefaultSettings.php:7494
$wgMaxMsgCacheEntrySize
$wgMaxMsgCacheEntrySize
Maximum entry size in the message cache, in bytes.
Definition: DefaultSettings.php:3081
CACHE_ACCEL
const CACHE_ACCEL
Definition: Defines.php:105
$wgAllowSecuritySensitiveOperationIfCannotReauthenticate
bool[] $wgAllowSecuritySensitiveOperationIfCannotReauthenticate
Whether to allow security-sensitive operations when re-authentication is not possible.
Definition: DefaultSettings.php:4640
$wgLegacySchemaConversion
$wgLegacySchemaConversion
If set to true, the MediaWiki 1.4 to 1.5 schema conversion will create stub reference rows in the tex...
Definition: DefaultSettings.php:3053
$wgReferrerPolicy
array string bool $wgReferrerPolicy
Value for the referrer policy meta tag.
Definition: DefaultSettings.php:323
$wgGenerateThumbnailOnParse
$wgGenerateThumbnailOnParse
Allow thumbnail rendering on page view.
Definition: DefaultSettings.php:1313
$wgDiff
$wgDiff
Path to the GNU diff utility.
Definition: DefaultSettings.php:6668
$wgFileExtensions
$wgFileExtensions
This is the list of preferred extensions for uploading files.
Definition: DefaultSettings.php:932
APCOND_EDITCOUNT
const APCOND_EDITCOUNT
Definition: Defines.php:205
$wgEnableUserEmail
$wgEnableUserEmail
Set to true to enable user-to-user e-mail.
Definition: DefaultSettings.php:1678
$wgWantedPagesThreshold
$wgWantedPagesThreshold
Number of links to a page required before it is deemed "wanted".
Definition: DefaultSettings.php:2272
$wgDisableTitleConversion
$wgDisableTitleConversion
Whether to enable language variant conversion for links.
Definition: DefaultSettings.php:3091
$wgUnwatchedPageSecret
$wgUnwatchedPageSecret
If active watchers (per above) are this number or less, do not disclose it.
Definition: DefaultSettings.php:6804
$wgHideIdentifiableRedirects
$wgHideIdentifiableRedirects
Should MediaWiki attempt to protect user's privacy when doing redirects? Keep this true if access cou...
Definition: DefaultSettings.php:5073
$wgCopyUploadTimeout
int bool $wgCopyUploadTimeout
Different timeout for upload by url This could be useful since when fetching large files,...
Definition: DefaultSettings.php:840
$params
$params
Definition: styleTest.css.php:44
$wgLangObjCacheSize
$wgLangObjCacheSize
Language cache size, or really how many languages can we handle simultaneously without degrading to c...
Definition: DefaultSettings.php:2919
$wgExtensionAssetsPath
$wgExtensionAssetsPath
The URL path of the extensions directory.
Definition: DefaultSettings.php:216
NS_TEMPLATE
const NS_TEMPLATE
Definition: Defines.php:74
$wgInterwikiCache
bool array string $wgInterwikiCache
Interwiki cache, either as an associative array or a path to a constant database (....
Definition: DefaultSettings.php:3952
$wgMultiContentRevisionSchemaMigrationStage
int $wgMultiContentRevisionSchemaMigrationStage
RevisionStore table schema migration stage (content, slots, content_models & slot_roles tables).
Definition: DefaultSettings.php:8957
$wgExportAllowAll
$wgExportAllowAll
Whether to allow exporting the entire wiki into a single file.
Definition: DefaultSettings.php:7257
$wgEnotifWatchlist
$wgEnotifWatchlist
Allow users to enable email notification ("enotif") on watchlist changes.
Definition: DefaultSettings.php:1785
$wgAjaxUploadDestCheck
$wgAjaxUploadDestCheck
Enable AJAX check for file overwrite, pre-upload.
Definition: DefaultSettings.php:8214
$wgMimeTypeBlacklist
$wgMimeTypeBlacklist
Files with these MIME types will never be allowed as uploads if $wgVerifyMimeType is enabled.
Definition: DefaultSettings.php:953
APCOND_AGE
const APCOND_AGE
Definition: Defines.php:206
$wgLBFactoryConf
$wgLBFactoryConf
Load balancer factory configuration To set up a multi-master wiki farm, set the class here to somethi...
Definition: DefaultSettings.php:2084
$wgEnableCanonicalServerLink
$wgEnableCanonicalServerLink
Output a <link rel="canonical"> tag on every page indicating the canonical server which should be use...
Definition: DefaultSettings.php:3528
$wgLogActions
$wgLogActions
Lists the message key string for formatting individual events of each type and action when listed in ...
Definition: DefaultSettings.php:7782
$wgUseSquid
$wgUseSquid
Enable/disable CDN.
Definition: DefaultSettings.php:2709
$wgAPIUselessQueryPages
$wgAPIUselessQueryPages
The ApiQueryQueryPages module should skip pages that are redundant to true API queries.
Definition: DefaultSettings.php:8191
a
</source > ! result< div class="mw-highlight mw-content-ltr" dir="ltr">< pre >< span ></span >< span class="kd"> var</span >< span class="nx"> a</span >< span class="p"></span ></pre ></div > ! end ! test Multiline< source/> in lists !input *< source > a b</source > *foo< source > a b</source > ! html< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! html tidy< ul >< li >< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul >< ul >< li > foo< div class="mw-highlight mw-content-ltr" dir="ltr">< pre > a b</pre ></div ></li ></ul > ! end ! test Custom attributes !input< source lang="javascript" id="foo" class="bar" dir="rtl" style="font-size: larger;"> var a
Definition: parserTests.txt:85
$wgFragmentMode
$wgFragmentMode
How should section IDs be encoded? This array can contain 1 or 2 elements, each of them can be one of...
Definition: DefaultSettings.php:3427
$wgAllowSchemaUpdates
$wgAllowSchemaUpdates
Allow schema updates.
Definition: DefaultSettings.php:2282
$wgDisableTextSearch
$wgDisableTextSearch
Set this to true to disable the full text search feature.
Definition: DefaultSettings.php:6510
$wgArticleRobotPolicies
$wgArticleRobotPolicies
Robot policies per article.
Definition: DefaultSettings.php:8037
$wgCacheDirectory
$wgCacheDirectory
Directory for caching data in the local filesystem.
Definition: DefaultSettings.php:2318
$wgSidebarCacheExpiry
$wgSidebarCacheExpiry
Expiry time for the sidebar cache, in seconds.
Definition: DefaultSettings.php:2652
$wgOpenSearchTemplate
$wgOpenSearchTemplate
Template for OpenSearch suggestions, defaults to API action=opensearch.
Definition: DefaultSettings.php:6534
CONTENT_MODEL_WIKITEXT
const CONTENT_MODEL_WIKITEXT
Definition: Defines.php:235
$wgThumbnailBuckets
$wgThumbnailBuckets
When defined, is an array of image widths used as buckets for thumbnail generation.
Definition: DefaultSettings.php:1477
$wgHTTPTimeout
int $wgHTTPTimeout
Timeout for HTTP requests done internally, in seconds.
Definition: DefaultSettings.php:8378
$wgTransactionalTimeLimit
$wgTransactionalTimeLimit
The minimum amount of time that MediaWiki needs for "slow" write request, particularly ones with mult...
Definition: DefaultSettings.php:2301
$wgBreakFrames
$wgBreakFrames
Break out of framesets.
Definition: DefaultSettings.php:3359
$wgDefaultExternalStore
array $wgDefaultExternalStore
The place to put new revisions, false to put them in the local text table.
Definition: DefaultSettings.php:2237
$wgDebugLogPrefix
$wgDebugLogPrefix
Prefix for debug log lines.
Definition: DefaultSettings.php:6100
$wgDBOracleDRCP
$wgDBOracleDRCP
Set true to enable Oracle DCRP (supported from 11gR1 onward)
Definition: DefaultSettings.php:2145
$wgStrictFileExtensions
$wgStrictFileExtensions
If this is turned off, users may override the warning for files not covered by $wgFileExtensions.
Definition: DefaultSettings.php:986
$wgSharedThumbnailScriptPath
string $wgSharedThumbnailScriptPath
Shortcut for the 'thumbScriptUrl' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:907
$wgContentHandlerUseDB
$wgContentHandlerUseDB
Set to false to disable use of the database fields introduced by the ContentHandler facility.
Definition: DefaultSettings.php:8596
$wgForeignUploadTargets
$wgForeignUploadTargets
Array of foreign file repo names (set in $wgForeignFileRepos above) that are allowable upload targets...
Definition: DefaultSettings.php:665
cache
you have access to all of the normal MediaWiki so you can get a DB use the cache
Definition: maintenance.txt:52
$wgLogo
$wgLogo
The URL path of the wiki logo.
Definition: DefaultSettings.php:262
$wgStructuredChangeFiltersLiveUpdatePollingRate
$wgStructuredChangeFiltersLiveUpdatePollingRate
Polling rate, in seconds, used by the 'live update' and 'view newest' features of the RCFilters app o...
Definition: DefaultSettings.php:6920
$wgHideUserContribLimit
$wgHideUserContribLimit
The maximum number of edits a user can have and can still be hidden by users with the hideuser permis...
Definition: DefaultSettings.php:5528
$wgOpenSearchTemplates
$wgOpenSearchTemplates
Templates for OpenSearch suggestions, defaults to API action=opensearch.
Definition: DefaultSettings.php:6544
$wgUseRCPatrol
$wgUseRCPatrol
Use RC Patrolling to check for vandalism (from recent changes and watchlists) New pages and new files...
Definition: DefaultSettings.php:6913
$wgEnableOpenSearchSuggest
$wgEnableOpenSearchSuggest
Enable OpenSearch suggestions requested by MediaWiki.
Definition: DefaultSettings.php:6555
$wgUseNPPatrol
$wgUseNPPatrol
Use new page patrolling to check new pages on Special:Newpages.
Definition: DefaultSettings.php:6929
$wgDjvuRenderer
$wgDjvuRenderer
Path of the ddjvu DJVU renderer Enable this and $wgDjvuDump to enable djvu rendering example: $wgDjvu...
Definition: DefaultSettings.php:1597
$wgJobRunRate
$wgJobRunRate
Number of jobs to perform per request.
Definition: DefaultSettings.php:8430
$wgMetaNamespace
$wgMetaNamespace
Name of the project namespace.
Definition: DefaultSettings.php:3814
$wgDBpassword
$wgDBpassword
Database user's password.
Definition: DefaultSettings.php:1883
$wgFixMalayalamUnicode
$wgFixMalayalamUnicode
Set this to true to replace ZWJ-based chillu sequences in Malayalam text with their Unicode 5....
Definition: DefaultSettings.php:3015
$wgDBprefix
$wgDBprefix
Table name prefix.
Definition: DefaultSettings.php:1942
$wgFetchCommonsDescriptions
bool $wgFetchCommonsDescriptions
Shortcut for the 'fetchDescription' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:626
$wgStylePath
$wgStylePath
The URL path of the skins directory.
Definition: DefaultSettings.php:201
$wgThumbnailMinimumBucketDistance
$wgThumbnailMinimumBucketDistance
When using thumbnail buckets as defined above, this sets the minimum distance to the bucket above the...
Definition: DefaultSettings.php:1494
$wgAllowSiteCSSOnRestrictedPages
$wgAllowSiteCSSOnRestrictedPages
Whether to allow site-wide CSS (MediaWiki:Common.css and friends) on restricted pages like Special:Us...
Definition: DefaultSettings.php:3801
$wgExtensionEntryPointListFiles
$wgExtensionEntryPointListFiles
Array of files with list(s) of extension entry points to be used in maintenance/mergeMessageFileList....
Definition: DefaultSettings.php:7340
$wgReadOnlyWatchedItemStore
bool $wgReadOnlyWatchedItemStore
Set this to true to put the wiki watchlists into read-only mode.
Definition: DefaultSettings.php:6730
php
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency which acts as the top level factory for services in MediaWiki which can be used to gain access to default instances of various services MediaWikiServices however also allows new services to be defined and default services to be redefined Services are defined or redefined by providing a callback the instantiator that will return a new instance of the service When it will create an instance of MediaWikiServices and populate it with the services defined in the files listed by thereby bootstrapping the DI framework Per $wgServiceWiringFiles lists includes ServiceWiring php
Definition: injection.txt:35
$wgUseSiteJs
$wgUseSiteJs
Use the site's Javascript page?
Definition: DefaultSettings.php:3348
$wgPutIPinRC
$wgPutIPinRC
Log IP addresses in the recentchanges table; can be accessed only by extensions (e....
Definition: DefaultSettings.php:5747
pages
The ContentHandler facility adds support for arbitrary content types on wiki pages
Definition: contenthandler.txt:1
AV_SCAN_ABORTED
const AV_SCAN_ABORTED
Definition: Defines.php:113
$wgUploadStashScalerBaseUrl
$wgUploadStashScalerBaseUrl
To enable remote on-demand scaling, set this to the thumbnail base URL.
Definition: DefaultSettings.php:355
$wgThumbnailEpoch
$wgThumbnailEpoch
If rendered thumbnail files are older than this timestamp, they will be rerendered on demand as if th...
Definition: DefaultSettings.php:1283
$wgCrossSiteAJAXdomainExceptions
$wgCrossSiteAJAXdomainExceptions
Domains that should not be allowed to make AJAX requests, even if they match one of the domains allow...
Definition: DefaultSettings.php:8254
$wgWhitelistRead
$wgWhitelistRead
Pages anonymous user may see, set as an array of pages titles.
Definition: DefaultSettings.php:5033
$wgMaxNameChars
$wgMaxNameChars
Maximum number of bytes in username.
Definition: DefaultSettings.php:4800
$wgResourceLoaderStorageVersion
$wgResourceLoaderStorageVersion
Cache version for client-side ResourceLoader module storage.
Definition: DefaultSettings.php:3788
$wgDBerrorLog
$wgDBerrorLog
File to log database errors to.
Definition: DefaultSettings.php:2097
$wgPasswordExpireGrace
$wgPasswordExpireGrace
If a user's password is expired, the number of seconds when they can still login, and cancel their pa...
Definition: DefaultSettings.php:1724
$wgUploadStashMaxAge
$wgUploadStashMaxAge
The maximum age of temporary (incomplete) uploaded files.
Definition: DefaultSettings.php:394
$wgRepositoryBaseUrl
$wgRepositoryBaseUrl
Shortcut for the 'descBaseUrl' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:617
$wgEnableWANCacheReaper
bool $wgEnableWANCacheReaper
Verify and enforce WAN cache purges using reliable DB sources as streams.
Definition: DefaultSettings.php:2470
$wgExperiencedUserEdits
$wgExperiencedUserEdits
Name of the external diff engine to use.
Definition: DefaultSettings.php:8916
$wgAssumeProxiesUseDefaultProtocolPorts
bool $wgAssumeProxiesUseDefaultProtocolPorts
When the wiki is running behind a proxy and this is set to true, assumes that the proxy exposes the w...
Definition: DefaultSettings.php:88
$wgSearchHighlightBoundaries
$wgSearchHighlightBoundaries
Regexp to match word boundaries, defaults for non-CJK languages should be empty for CJK since the wor...
Definition: DefaultSettings.php:6522
$wgPropagateErrors
$wgPropagateErrors
If true, the MediaWiki error handler passes errors/warnings to the default error handler after loggin...
Definition: DefaultSettings.php:6313
NS_MAIN
const NS_MAIN
Definition: Defines.php:64
$wgUseInstantCommons
$wgUseInstantCommons
Use Wikimedia Commons as a foreign file repository.
Definition: DefaultSettings.php:552
$wgMediaHandlers
$wgMediaHandlers
Plugins for media file type handling.
Definition: DefaultSettings.php:1027
$wgDBadminuser
$wgDBadminuser
Separate username for maintenance tasks.
Definition: DefaultSettings.php:1913
$wgResourceModules
$wgResourceModules
Client-side resource modules.
Definition: DefaultSettings.php:3564
$wgResourceLoaderValidateJS
$wgResourceLoaderValidateJS
If set to true, JavaScript modules loaded from wiki pages will be parsed prior to minification to val...
Definition: DefaultSettings.php:3764
$wgAPIRequestLog
$wgAPIRequestLog
Log file or URL (TCP or UDP) to log API requests to, or false to disable API request logging.
Definition: DefaultSettings.php:8180
$wgHashedUploadDirectory
$wgHashedUploadDirectory
Set this to false if you do not want MediaWiki to divide your images directory into many subdirectori...
Definition: DefaultSettings.php:922
$wgMediaInTargetLanguage
$wgMediaInTargetLanguage
Whether thumbnails should be generated in target language (usually, same as page language),...
Definition: DefaultSettings.php:1237
$wgAutopromote
$wgAutopromote
Array containing the conditions of automatic promotion of a user to specific groups.
Definition: DefaultSettings.php:5439
$wgContentHandlerTextFallback
$wgContentHandlerTextFallback
How to react if a plain text version of a non-text Content object is requested using ContentHandler::...
Definition: DefaultSettings.php:8581
$wgAllowImageTag
$wgAllowImageTag
A different approach to the above: simply allow the "<img>" tag to be used.
Definition: DefaultSettings.php:4223
$wgShowDebug
$wgShowDebug
Display debug data at the bottom of the main content area.
Definition: DefaultSettings.php:6256
$wgRightsPage
$wgRightsPage
Override for copyright metadata.
Definition: DefaultSettings.php:7135
$wgHTTPProxy
$wgHTTPProxy
Proxy to use for CURL requests.
Definition: DefaultSettings.php:8394
$wgRawHtml
$wgRawHtml
Allow raw, unchecked HTML in "<html>...</html>" sections.
Definition: DefaultSettings.php:4251
$wgEnableScaryTranscluding
$wgEnableScaryTranscluding
Enable interwiki transcluding.
Definition: DefaultSettings.php:4320
$wgAttemptFailureEpoch
$wgAttemptFailureEpoch
Certain operations are avoided if there were too many recent failures, for example,...
Definition: DefaultSettings.php:1291
$wgEnotifUseRealName
$wgEnotifUseRealName
Use real name instead of username in e-mail "from" field.
Definition: DefaultSettings.php:1845
$wgDBservers
$wgDBservers
Database load balancer This is a two-dimensional array, an array of server info structures Fields are...
Definition: DefaultSettings.php:2072
$wgRCChangedSizeThreshold
$wgRCChangedSizeThreshold
If the difference between the character counts of the text before and after the edit is below that va...
Definition: DefaultSettings.php:7014
$wgAllowUserCss
$wgAllowUserCss
Allow user Cascading Style Sheets (CSS)? This enables a lot of neat customizations,...
Definition: DefaultSettings.php:3335
$wgHashedSharedUploadDirectory
bool $wgHashedSharedUploadDirectory
Shortcut for the 'hashLevels' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:609
$wgDBDefaultGroup
$wgDBDefaultGroup
Default group to use when getting database connections.
Definition: DefaultSettings.php:1967
$wgAdaptiveMessageCache
$wgAdaptiveMessageCache
Instead of caching everything, only cache those messages which have been customised in the site conte...
Definition: DefaultSettings.php:2564
$wgResourceLoaderMaxage
$wgResourceLoaderMaxage
Maximum time in seconds to cache resources served by ResourceLoader.
Definition: DefaultSettings.php:3690
$wgSVGConverterPath
$wgSVGConverterPath
If not in the executable PATH, specify the SVG converter path.
Definition: DefaultSettings.php:1203
$wgRawHtmlMessages
string[] $wgRawHtmlMessages
List of messages which might contain raw HTML.
Definition: DefaultSettings.php:8816
$wgNoReplyAddress
$wgNoReplyAddress
Reply-To address for e-mail notifications.
Definition: DefaultSettings.php:1665
$wgDBWindowsAuthentication
$wgDBWindowsAuthentication
Use Windows Authentication instead of $wgDBuser / $wgDBpassword for MS SQL Server.
Definition: DefaultSettings.php:2177
$wgParserTestMediaHandlers
$wgParserTestMediaHandlers
Media handler overrides for parser tests (they don't need to generate actual thumbnails,...
Definition: DefaultSettings.php:1033
$wgHooks
$wgHooks
Global list of hooks.
Definition: DefaultSettings.php:7481
$wgProfiler
$wgProfiler
Profiler configuration.
Definition: DefaultSettings.php:6396
$wgRecentChangesFlags
$wgRecentChangesFlags
Flags (letter symbols) shown in recent changes and watchlist to indicate certain types of edits.
Definition: DefaultSettings.php:7092
$wgInvalidPasswordReset
$wgInvalidPasswordReset
Specifies if users should be sent to a password-reset form on login, if their password doesn't meet t...
Definition: DefaultSettings.php:4701
$title
namespace and then decline to actually register it file or subcat img or subcat $title
Definition: hooks.txt:925
$wgGrantPermissions
array $wgGrantPermissions
Map of (grant => right => boolean) Users authorize consumers (like Apps) to act on their behalf but o...
Definition: DefaultSettings.php:5786
$wgSQLiteDataDir
$wgSQLiteDataDir
To override default SQLite data directory ($docroot/../data)
Definition: DefaultSettings.php:1972
$wgUseKeyHeader
$wgUseKeyHeader
Send the Key HTTP header for better caching.
Definition: DefaultSettings.php:2723
$wgEnableProfileInfo
$wgEnableProfileInfo
Allow the profileinfo.php entrypoint to be used.
Definition: DefaultSettings.php:6403
$wgSquidServersNoPurge
$wgSquidServersNoPurge
As above, except these servers aren't purged on page changes; use to set a list of trusted proxies,...
Definition: DefaultSettings.php:2807
NS_PROJECT
const NS_PROJECT
Definition: Defines.php:68
$wgLoginLanguageSelector
$wgLoginLanguageSelector
Show a bar of language selection links in the user login and user registration forms; edit the "login...
Definition: DefaultSettings.php:3139
$wgUploadSizeWarning
$wgUploadSizeWarning
Warn if uploaded files are larger than this (in bytes), or false to disable.
Definition: DefaultSettings.php:999
$wgEmergencyContact
$wgEmergencyContact
Site admin email address.
Definition: DefaultSettings.php:1648
user
This document is intended to provide useful advice for parties seeking to redistribute MediaWiki to end users It s targeted particularly at maintainers for Linux since it s been observed that distribution packages of MediaWiki often break We ve consistently had to recommend that users seeking support use official tarballs instead of their distribution s and this often solves whatever problem the user is having It would be nice if this could such and we might be restricted by PHP settings such as safe mode or open_basedir We cannot assume that the software even has read access anywhere useful Many shared hosts run all users web applications under the same user
Definition: distributors.txt:9
$wgAuthenticationTokenVersion
string null $wgAuthenticationTokenVersion
Versioning for authentication tokens.
Definition: DefaultSettings.php:4933
$wgContentHandlers
$wgContentHandlers
Plugins for page content model handling.
Definition: DefaultSettings.php:1053
$wgFooterIcons
$wgFooterIcons
Abstract list of footer icons for skins in place of old copyrightico and poweredbyico code You can ad...
Definition: DefaultSettings.php:3469
$wgMaxUserDBWriteDuration
$wgMaxUserDBWriteDuration
Name of the external diff engine to use.
Definition: DefaultSettings.php:8765
$wgXmlDumpSchemaVersion
$wgXmlDumpSchemaVersion
The schema to use per default when generating XML dumps.
Definition: DefaultSettings.php:8963
$wgAntivirusRequired
$wgAntivirusRequired
Determines if a failed virus scan (AV_SCAN_FAILED) will cause the file to be rejected.
Definition: DefaultSettings.php:1386
$wgPreprocessorCacheThreshold
$wgPreprocessorCacheThreshold
Preprocessor caching threshold Setting it to 'false' will disable the preprocessor cache.
Definition: DefaultSettings.php:4315
$wgLinkHolderBatchSize
$wgLinkHolderBatchSize
LinkHolderArray batch size For debugging.
Definition: DefaultSettings.php:8494
$wgLockManagers
$wgLockManagers
Array of configuration arrays for each lock manager.
Definition: DefaultSettings.php:781
$wgFilterLogTypes
$wgFilterLogTypes
Show/hide links on Special:Log will be shown for these log types.
Definition: DefaultSettings.php:7725
$wgLanguageConverterCacheType
$wgLanguageConverterCacheType
The cache type for storing language conversion tables, which are used when parsing certain text and i...
Definition: DefaultSettings.php:2370
$wgCentralIdLookupProvider
string $wgCentralIdLookupProvider
Central ID lookup provider to use by default.
Definition: DefaultSettings.php:4394
$wgUseImageMagick
$wgUseImageMagick
Resizing can be done using PHP's internal image libraries or using ImageMagick or another third-party...
Definition: DefaultSettings.php:1081
$wgExtraSignatureNamespaces
$wgExtraSignatureNamespaces
Array of namespaces, in addition to the talk namespaces, where signatures (~~~~) are likely to be use...
Definition: DefaultSettings.php:4071
$wgFallbackSkin
$wgFallbackSkin
Fallback skin used when the skin defined by $wgDefaultSkin can't be found.
Definition: DefaultSettings.php:3309
$wgUseFileCache
$wgUseFileCache
This will cache static pages for non-logged-in users to reduce database traffic on public sites.
Definition: DefaultSettings.php:2622
$wgCacheVaryCookies
$wgCacheVaryCookies
A list of cookies that vary the cache (for use by extensions)
Definition: DefaultSettings.php:6040
$wgCrossSiteAJAXdomains
$wgCrossSiteAJAXdomains
Settings for incoming cross-site AJAX requests: Newer browsers support cross-site AJAX when the targe...
Definition: DefaultSettings.php:8247
$wgDefaultLanguageVariant
$wgDefaultLanguageVariant
Default variant code, if false, the default will be the language code.
Definition: DefaultSettings.php:3096
$wgCachePrefix
$wgCachePrefix
Overwrite the caching key prefix with custom value.
Definition: DefaultSettings.php:6489
$wgAPICacheHelpTimeout
$wgAPICacheHelpTimeout
Set the timeout for the API help text cache.
Definition: DefaultSettings.php:8185
$wgEnableSidebarCache
$wgEnableSidebarCache
If on, the sidebar navigation links are cached for users with the current language set.
Definition: DefaultSettings.php:2647
$wgCommandLineMode
global $wgCommandLineMode
Definition: DevelopmentSettings.php:27
$wgDisableInternalSearch
$wgDisableInternalSearch
Disable the internal MySQL-based search, to allow it to be implemented by an extension instead.
Definition: DefaultSettings.php:6596
copyright
in the Source form of any Derivative Works that You all copyright
Definition: APACHE-LICENSE-2.0.txt:102
$wgAllowExternalImagesFrom
$wgAllowExternalImagesFrom
If the above is false, you can specify an exception here.
Definition: DefaultSettings.php:4200
$wgStatsdMetricPrefix
$wgStatsdMetricPrefix
Prefix for metric names sent to $wgStatsdServer.
Definition: DefaultSettings.php:6438
$wgUploadThumbnailRenderMap
$wgUploadThumbnailRenderMap
When defined, is an array of thumbnail widths to be rendered at upload time.
Definition: DefaultSettings.php:1506
$wgQueryPageDefaultLimit
$wgQueryPageDefaultLimit
Integer defining default number of entries to show on special pages which are query-pages such as Spe...
Definition: DefaultSettings.php:5753
$wgDjvuToXML
$wgDjvuToXML
Path of the djvutoxml executable This works like djvudump except much, much slower as of version 3....
Definition: DefaultSettings.php:1620
$wgHtml5Version
$wgHtml5Version
Defines the value of the version attribute in the <html> tag, if any.
Definition: DefaultSettings.php:3245
NS_MEDIAWIKI_TALK
const NS_MEDIAWIKI_TALK
Definition: Defines.php:73
$wgDebugLogGroups
$wgDebugLogGroups
Map of string log group names to log destinations.
Definition: DefaultSettings.php:6224
$wgUseDatabaseMessages
$wgUseDatabaseMessages
Translation using MediaWiki: namespace.
Definition: DefaultSettings.php:3071
$wgLoadScript
$wgLoadScript
The URL path to load.php.
Definition: DefaultSettings.php:194
not
if not
Definition: COPYING.txt:307
$wgMimeTypeFile
$wgMimeTypeFile
Sets the MIME type definition file to use by includes/libs/mime/MimeAnalyzer.php.
Definition: DefaultSettings.php:1398
$wgExpensiveParserFunctionLimit
$wgExpensiveParserFunctionLimit
Maximum number of calls per parse to expensive parser functions such as PAGESINCATEGORY.
Definition: DefaultSettings.php:4309
$wgAntivirusSetup
$wgAntivirusSetup
Configuration for different virus scanners.
Definition: DefaultSettings.php:1368
$wgApiFrameOptions
$wgApiFrameOptions
Disallow framing of API pages directly, by setting the X-Frame-Options header.
Definition: DefaultSettings.php:3392
$wgObjectCaches
$wgObjectCaches
Advanced object cache configuration.
Definition: DefaultSettings.php:2385
$wgSharedPrefix
$wgSharedPrefix
Definition: DefaultSettings.php:2004
$wgExportAllowHistory
$wgExportAllowHistory
If set to false, disables the full-history option on Special:Export.
Definition: DefaultSettings.php:7222
$wgHTCPRouting
$wgHTCPRouting
Routing configuration for HTCP multicast purging.
Definition: DefaultSettings.php:2877
$wgLogExceptionBacktrace
$wgLogExceptionBacktrace
If true, send the exception backtrace to the error log.
Definition: DefaultSettings.php:6307
$wgRCFeeds
$wgRCFeeds
Recentchanges items are periodically purged; entries older than this many seconds will go.
Definition: DefaultSettings.php:6880
$wgMimeDetectorCommand
$wgMimeDetectorCommand
Sets an external MIME detector program.
Definition: DefaultSettings.php:1417
$wgFixArabicUnicode
$wgFixArabicUnicode
Set this to true to replace Arabic presentation forms with their standard forms in the U+0600-U+06FF ...
Definition: DefaultSettings.php:3002
$wgParserCacheExpireTime
$wgParserCacheExpireTime
The expiry time for the parser cache, in seconds.
Definition: DefaultSettings.php:2492
$wgPasswordReminderResendTime
$wgPasswordReminderResendTime
Minimum time, in hours, which must elapse between password reminder emails for a given account.
Definition: DefaultSettings.php:1702
$wgJobSerialCommitThreshold
float bool $wgJobSerialCommitThreshold
Make job runners commit changes for replica DB-lag prone jobs one job at a time.
Definition: DefaultSettings.php:7568
$wgImgAuthDetails
$wgImgAuthDetails
Set this to true if you use img_auth and want the user to see details on why access failed.
Definition: DefaultSettings.php:429
use
as see the revision history and available at free of to any person obtaining a copy of this software and associated documentation to deal in the Software without including without limitation the rights to use
Definition: MIT-LICENSE.txt:10
$wgUseGzip
$wgUseGzip
When using the file cache, we can store the cached HTML gzipped to save disk space.
Definition: DefaultSettings.php:2660
$wgInvalidRedirectTargets
$wgInvalidRedirectTargets
Array of invalid page redirect targets.
Definition: DefaultSettings.php:4090
$wgAPIMaxLagThreshold
$wgAPIMaxLagThreshold
Maximum amount of DB lag on a majority of DB replica DBs to tolerate before forcing bots to retry any...
Definition: DefaultSettings.php:8174
$wgUserrightsInterwikiDelimiter
$wgUserrightsInterwikiDelimiter
Character used as a delimiter when testing for interwiki userrights (In Special:UserRights,...
Definition: DefaultSettings.php:4913
$wgVaryOnXFP
$wgVaryOnXFP
Add X-Forwarded-Proto to the Vary and Key headers for API requests and RSS/Atom feeds.
Definition: DefaultSettings.php:2733
$wgImplicitGroups
$wgImplicitGroups
Implicit groups, aren't shown on Special:Listusers or somewhere else.
Definition: DefaultSettings.php:5252
$wgCdnMaxageSubstitute
$wgCdnMaxageSubstitute
Cache timeout for the CDN when a response is known to be wrong or incomplete (due to load)
Definition: DefaultSettings.php:2782
$wgPreviewOnOpenNamespaces
$wgPreviewOnOpenNamespaces
Which namespaces have special treatment where they should be preview-on-open Internally only Category...
Definition: DefaultSettings.php:6675
$wgInterwikiMagic
$wgInterwikiMagic
Treat language links as magic connectors, not inline links.
Definition: DefaultSettings.php:2935
$wgLogTypes
$wgLogTypes
The logging system has two levels: an event type, which describes the general category and can be vie...
Definition: DefaultSettings.php:7678
$wgExtendedLoginCookieExpiration
$wgExtendedLoginCookieExpiration
Default login cookie lifetime, in seconds.
Definition: DefaultSettings.php:5993
$wgPasswordSalt
$wgPasswordSalt
For compatibility with old installations set to false.
Definition: DefaultSettings.php:4674
$wgResourceLoaderSources
$wgResourceLoaderSources
Extensions should register foreign module sources here.
Definition: DefaultSettings.php:3666
AV_VIRUS_FOUND
const AV_VIRUS_FOUND
Definition: Defines.php:112
$wgParserCacheType
$wgParserCacheType
The cache type for storing article HTML.
Definition: DefaultSettings.php:2353
$wgOriginTrials
array $wgOriginTrials
Origin Trials tokens.
Definition: DefaultSettings.php:8999
$wgLocalisationCacheConf
$wgLocalisationCacheConf
Localisation cache configuration.
Definition: DefaultSettings.php:2588
$wgMaxImageArea
$wgMaxImageArea
The maximum number of pixels a source image can have if it is to be scaled down by a scaler that requ...
Definition: DefaultSettings.php:1252
$wgUseCombinedLoginLink
$wgUseCombinedLoginLink
Login / create account link behavior when it's possible for anonymous users to create an account.
Definition: DefaultSettings.php:3491
$wgUseCopyrightUpload
$wgUseCopyrightUpload
Set this to true if you want detailed copyright information forms on Upload.
Definition: DefaultSettings.php:7160
$wgMaxPPExpandDepth
$wgMaxPPExpandDepth
Definition: DefaultSettings.php:4159
$wgEnableEmail
$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc.
Definition: DefaultSettings.php:1672
$wgUseCategoryBrowser
$wgUseCategoryBrowser
Use experimental, DMOZ-like category browser.
Definition: DefaultSettings.php:7622
$wgEnableDnsBlacklist
$wgEnableDnsBlacklist
Whether to use DNS blacklists in $wgDnsBlacklistUrls to check for open proxies.
Definition: DefaultSettings.php:5579
$wgDefaultSkin
$wgDefaultSkin
Default skin, for new users and anonymous visitors.
Definition: DefaultSettings.php:3302
$wgUpdateRowsPerQuery
$wgUpdateRowsPerQuery
Number of rows to update per query.
Definition: DefaultSettings.php:8449
$wgReservedUsernames
$wgReservedUsernames
Array of usernames which may not be registered or logged in from Maintenance scripts can still use th...
Definition: DefaultSettings.php:4806
$wgEnableMagicLinks
$wgEnableMagicLinks
Enable the magic links feature of automatically turning ISBN xxx, PMID xxx, RFC xxx into links.
Definition: DefaultSettings.php:4334
MEDIATYPE_BITMAP
const MEDIATYPE_BITMAP
Definition: defines.php:28
rights
and that you know you can do these things To protect your rights
Definition: COPYING.txt:28
$wgSessionName
$wgSessionName
Override to customise the session name.
Definition: DefaultSettings.php:6045
$wgParserTestFiles
$wgParserTestFiles
Parser test suite files to be run by parserTests.php when no specific filename is passed to it.
Definition: DefaultSettings.php:6478
$wgMaxInterlacingAreas
$wgMaxInterlacingAreas
Array of max pixel areas for interlacing per MIME type.
Definition: DefaultSettings.php:1092
$wgImportSources
$wgImportSources
List of interwiki prefixes for wikis we'll accept as sources for Special:Import and API action=import...
Definition: DefaultSettings.php:7206
$wgCopyUploadProxy
$wgCopyUploadProxy
Proxy to use for copy upload requests.
Definition: DefaultSettings.php:828
$wgAPIMetaModules
$wgAPIMetaModules
API Query meta module extensions.
Definition: DefaultSettings.php:8131
NS_CATEGORY
const NS_CATEGORY
Definition: Defines.php:78
$wgFileBackends
$wgFileBackends
File backend structure configuration.
Definition: DefaultSettings.php:765
settings
globals will be eliminated from MediaWiki replaced by an application object which would be passed to constructors Whether that would be an convenient solution remains to be but certainly PHP makes such object oriented programming models easier than they were in previous versions For the time being MediaWiki programmers will have to work in an environment with some global context At the time of globals were initialised on startup by MediaWiki of these were configuration settings
Definition: globals.txt:25
$wgDjvuOutputExtension
$wgDjvuOutputExtension
File extension for the DJVU post processor output.
Definition: DefaultSettings.php:1632
$wgMemCachedDebug
$wgMemCachedDebug
If enabled, will send MemCached debugging information to $wgDebugLogFile.
Definition: DefaultSettings.php:2527
$wgNamespaceProtection
$wgNamespaceProtection
Set the minimum permissions required to edit pages in each namespace.
Definition: DefaultSettings.php:5336
$wgExternalLinkTarget
$wgExternalLinkTarget
Set a default target for external links, e.g.
Definition: DefaultSettings.php:4262
$wgMaxJobDBWriteDuration
$wgMaxJobDBWriteDuration
Name of the external diff engine to use.
Definition: DefaultSettings.php:8774
$wgMaxShellTime
$wgMaxShellTime
Maximum CPU time in seconds for shell processes under Linux.
Definition: DefaultSettings.php:8277
$wgPageInfoTransclusionLimit
$wgPageInfoTransclusionLimit
InfoAction retrieves a list of transclusion links (both to and from).
Definition: DefaultSettings.php:6455
$wgEnableSearchContributorsByIP
$wgEnableSearchContributorsByIP
If true, searches for IP addresses will be redirected to that IP's contributions page.
Definition: DefaultSettings.php:6650
$wgSoftwareTags
array $wgSoftwareTags
List of core tags to enable.
Definition: DefaultSettings.php:7048
$wgDeleteRevisionsLimit
$wgDeleteRevisionsLimit
Optional to restrict deletion of pages with higher revision counts to users with the 'bigdelete' perm...
Definition: DefaultSettings.php:5513
$wgMemCachedTimeout
$wgMemCachedTimeout
Read/write timeout for MemCached server communication, in microseconds.
Definition: DefaultSettings.php:2543
$wgUpdateRowsPerJob
$wgUpdateRowsPerJob
Number of rows to update per job.
Definition: DefaultSettings.php:8444
$wgCommandLineDarkBg
$wgCommandLineDarkBg
For colorized maintenance script output, is your terminal background dark ?
Definition: DefaultSettings.php:6713
$wgRCShowWatchingUsers
$wgRCShowWatchingUsers
Show watching users in recent changes, watchlist and page history views.
Definition: DefaultSettings.php:7002
$wgExtensionCredits
$wgExtensionCredits
An array of information about installed extensions keyed by their type.
Definition: DefaultSettings.php:7445
$wgImportTargetNamespace
$wgImportTargetNamespace
Optional default target namespace for interwiki imports.
Definition: DefaultSettings.php:7215
$wgCookieHttpOnly
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
Definition: DefaultSettings.php:6035
array
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))
$wgCompressRevisions
$wgCompressRevisions
We can also compress text stored in the 'text' table.
Definition: DefaultSettings.php:2192
$wgExportAllowListContributors
$wgExportAllowListContributors
Return distinct author list (when not returning full history)
Definition: DefaultSettings.php:7234
$wgFeedClasses
$wgFeedClasses
Available feeds objects.
Definition: DefaultSettings.php:6988
$wgAutoConfirmAge
$wgAutoConfirmAge
Number of seconds an account is required to age before it's given the implicit 'autoconfirm' group me...
Definition: DefaultSettings.php:5369
$wgDebugLogFile
$wgDebugLogFile
Filename for debug logging.
Definition: DefaultSettings.php:6095
$wgUseFilePatrol
$wgUseFilePatrol
Use file patrolling to check new files on Special:Newfiles.
Definition: DefaultSettings.php:6940
$wgEnableUserEmailBlacklist
$wgEnableUserEmailBlacklist
Set to true to enable user-to-user e-mail blacklist.
Definition: DefaultSettings.php:1685
$wgDisableLangConversion
$wgDisableLangConversion
Whether to enable language variant conversion.
Definition: DefaultSettings.php:3086
$wgRemoveGroups
$wgRemoveGroups
Definition: DefaultSettings.php:5501
$wgSearchForwardUrl
$wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
Definition: DefaultSettings.php:6613
$wgShowDBErrorBacktrace
$wgShowDBErrorBacktrace
If true, show a backtrace for database errors.
Definition: DefaultSettings.php:6302
$wgAPIMaxResultSize
$wgAPIMaxResultSize
The maximum size (in bytes) of an API result.
Definition: DefaultSettings.php:8161
$wgCanonicalServer
$wgCanonicalServer
Canonical URL of the server, to use in IRC feeds and notification e-mails.
Definition: DefaultSettings.php:115
$wgSkipSkin
$wgSkipSkin
Definition: DefaultSettings.php:3321
$wgPriorityHints
bool $wgPriorityHints
Enable client-side Priority Hints.
Definition: DefaultSettings.php:9009
$wgMemoryLimit
$wgMemoryLimit
The minimum amount of memory that MediaWiki "needs"; MediaWiki will try to raise PHP's memory limit i...
Definition: DefaultSettings.php:2293
$wgUniversalEditButton
$wgUniversalEditButton
Enable the UniversalEditButton for browsers that support it (currently only Firefox with an extension...
Definition: DefaultSettings.php:6684
$wgConfigRegistry
$wgConfigRegistry
Registry of factory functions to create config objects: The 'main' key must be set,...
Definition: DefaultSettings.php:67
$wgExternalDiffEngine
$wgExternalDiffEngine
Name of the external diff engine to use.
Definition: DefaultSettings.php:8464
$wgValidSkinNames
$wgValidSkinNames
List of valid skin names.
Definition: DefaultSettings.php:7371
CategoryMembershipChangeJob
Job to add recent change entries mentioning category membership changes.
Definition: CategoryMembershipChangeJob.php:38
$wgUseSharedUploads
bool $wgUseSharedUploads
Shortcut for adding an entry to $wgForeignFileRepos.
Definition: DefaultSettings.php:582
$wgMaxAnimatedGifArea
$wgMaxAnimatedGifArea
Force thumbnailing of animated GIFs above this size to a single frame instead of an animated thumbnai...
Definition: DefaultSettings.php:1260
will
</td >< td > &</td >< td > t want your writing to be edited mercilessly and redistributed at will
Definition: All_system_messages.txt:914
null
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not null
Definition: hooks.txt:780
$wgInterwikiExpiry
$wgInterwikiExpiry
Expiry time for cache of interwiki table.
Definition: DefaultSettings.php:3927
$wgAutopromoteOnceLogInRC
$wgAutopromoteOnceLogInRC
Put user rights log entries for autopromotion in recent changes?
Definition: DefaultSettings.php:5472
$wgPageLanguageUseDB
bool $wgPageLanguageUseDB
Enable page language feature Allows setting page language in database.
Definition: DefaultSettings.php:8684
$wgCachePages
$wgCachePages
Allow client-side caching of pages.
Definition: DefaultSettings.php:2599
$wgTranslateNumerals
$wgTranslateNumerals
For Hindi and Arabic use local numerals instead of Western style (0-9) numerals in interface.
Definition: DefaultSettings.php:3065
$wgSVGMetadataCutoff
$wgSVGMetadataCutoff
Don't read SVG metadata beyond this point.
Definition: DefaultSettings.php:1214
$wgAllowUserCssPrefs
$wgAllowUserCssPrefs
Allow style-related user-preferences?
Definition: DefaultSettings.php:3343
$wgDebugTimestamps
$wgDebugTimestamps
Prefix debug messages with relative timestamp.
Definition: DefaultSettings.php:6262
$wgExtraLanguageNames
$wgExtraLanguageNames
List of language names or overrides for default names in Names.php.
Definition: DefaultSettings.php:2960
$wgDBcompress
$wgDBcompress
Whether to use compression in DB connection.
Definition: DefaultSettings.php:1908
$wgMaxShellFileSize
$wgMaxShellFileSize
Maximum file size created by shell processes under linux, in KB ImageMagick convert for example can b...
Definition: DefaultSettings.php:8272
$wgRangeContributionsCIDRLimit
array $wgRangeContributionsCIDRLimit
Shortest CIDR limits that can be checked in any individual range check at Special:Contributions.
Definition: DefaultSettings.php:8897
$wgAdvancedSearchHighlighting
$wgAdvancedSearchHighlighting
Set to true to have nicer highlighted text in search results, by default off due to execution overhea...
Definition: DefaultSettings.php:6516
performance
MediaWiki has optional support for a high performance
Definition: memcached.txt:1
$wgEnotifUserTalk
$wgEnotifUserTalk
Allow users to enable email notification ("enotif") when someone edits their user talk page.
Definition: DefaultSettings.php:1794
$wgJobTypesExcludedFromDefaultQueue
$wgJobTypesExcludedFromDefaultQueue
Jobs that must be explicitly requested, i.e.
Definition: DefaultSettings.php:7542
$wgMsgCacheExpiry
$wgMsgCacheExpiry
Expiry time for the message cache key.
Definition: DefaultSettings.php:3076
$wgSessionPbkdf2Iterations
$wgSessionPbkdf2Iterations
Number of internal PBKDF2 iterations to use when deriving session secrets.
Definition: DefaultSettings.php:2522
$wgCookieExpiration
$wgCookieExpiration
Default cookie lifetime, in seconds.
Definition: DefaultSettings.php:5985
$wgShowRollbackEditCount
$wgShowRollbackEditCount
The $wgShowRollbackEditCount variable is used to show how many edits can be rolled back.
Definition: DefaultSettings.php:3520
$wgImgAuthUrlPathMap
$wgImgAuthUrlPathMap
Map of relative URL directories to match to internal mwstore:// base storage paths.
Definition: DefaultSettings.php:445
$wgNamespaceAliases
$wgNamespaceAliases
Namespace aliases.
Definition: DefaultSettings.php:3879
$wgForcedRawSMaxage
$wgForcedRawSMaxage
Default maximum age for raw CSS/JS accesses.
Definition: DefaultSettings.php:2789
$wgShellRestrictionMethod
string bool $wgShellRestrictionMethod
Method to use to restrict shell commands.
Definition: DefaultSettings.php:8365
NS_USER_TALK
const NS_USER_TALK
Definition: Defines.php:67
$wgDebugPrintHttpHeaders
$wgDebugPrintHttpHeaders
Print HTTP headers for every request in the debug information.
Definition: DefaultSettings.php:6267
$wgSlaveLagWarning
$wgSlaveLagWarning
If lag is higher than $wgSlaveLagWarning, show a warning in some special pages (like watchlist).
Definition: DefaultSettings.php:2167
$wgGitBin
$wgGitBin
Fully specified path to git binary.
Definition: DefaultSettings.php:6755
$wgFileCacheDepth
$wgFileCacheDepth
Depth of the subdirectory hierarchy to be created under $wgFileCacheDirectory.
Definition: DefaultSettings.php:2630
$wgNoFollowNsExceptions
$wgNoFollowNsExceptions
Namespaces in which $wgNoFollowLinks doesn't apply.
Definition: DefaultSettings.php:4276
$wgUrlProtocols
$wgUrlProtocols
URL schemes that should be recognized as valid by wfParseUrl().
Definition: DefaultSettings.php:4171
$wgLocalTZoffset
$wgLocalTZoffset
Set an offset from UTC in minutes to use for the default timezone setting for anonymous users and new...
Definition: DefaultSettings.php:3196
$wgExportMaxHistory
$wgExportMaxHistory
If set nonzero, Special:Export requests for history of pages with more revisions than this will be re...
Definition: DefaultSettings.php:7229
$wgExportFromNamespaces
$wgExportFromNamespaces
Whether to allow the "export all pages in namespace" option.
Definition: DefaultSettings.php:7252
$wgExtensionDirectory
$wgExtensionDirectory
Filesystem extensions directory.
Definition: DefaultSettings.php:223
$wgNoFollowLinks
$wgNoFollowLinks
If true, external URL links in wiki text will be given the rel="nofollow" attribute as a hint to sear...
Definition: DefaultSettings.php:4270
$wgServerName
$wgServerName
Server name.
Definition: DefaultSettings.php:122
$wgRateLimits
$wgRateLimits
Simple rate limiter options to brake edit floods.
Definition: DefaultSettings.php:5663
$wgLogoHD
$wgLogoHD
Array with URL paths to HD versions of the wiki logo.
Definition: DefaultSettings.php:290
$wgResourceLoaderStorageEnabled
$wgResourceLoaderStorageEnabled
Whether ResourceLoader should attempt to persist modules in localStorage on browsers that support the...
Definition: DefaultSettings.php:3780
$wgUsePrivateIPs
$wgUsePrivateIPs
Should forwarded Private IPs be accepted?
Definition: DefaultSettings.php:2888
$wgLogRestrictions
$wgLogRestrictions
This restricts log access to those who have a certain right Users without this will not see it in the...
Definition: DefaultSettings.php:7702
$wgMaxRedirectLinksRetrieved
$wgMaxRedirectLinksRetrieved
Maximum number of links to a redirect page listed on Special:Whatlinkshere/RedirectDestination.
Definition: DefaultSettings.php:7937
$wgCookieDomain
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or "....
Definition: DefaultSettings.php:5999
$wgImageMagickConvertCommand
$wgImageMagickConvertCommand
The convert command shipped with ImageMagick.
Definition: DefaultSettings.php:1086
$wgLocalInterwikis
$wgLocalInterwikis
Array for multiple $wgLocalInterwiki values, in case there are several interwiki prefixes that point ...
Definition: DefaultSettings.php:3922
$wgDeletedDirectory
$wgDeletedDirectory
What directory to place deleted uploads in.
Definition: DefaultSettings.php:424
$wgIgnoreImageErrors
$wgIgnoreImageErrors
If set, inline scaled images will still produce "<img>" tags ready for output instead of showing an e...
Definition: DefaultSettings.php:1304
$wgSharpenReductionThreshold
$wgSharpenReductionThreshold
Reduction in linear dimensions below which sharpening will be enabled.
Definition: DefaultSettings.php:1102
$wgCacheSharedUploads
bool $wgCacheSharedUploads
Shortcut for the ForeignDBRepo 'hasSharedCache' setting in $wgForeignFileRepos.
Definition: DefaultSettings.php:654
$wgParserOutputHooks
$wgParserOutputHooks
Parser output hooks.
Definition: DefaultSettings.php:7356
$wgMetaNamespaceTalk
$wgMetaNamespaceTalk
Name of the project talk namespace.
Definition: DefaultSettings.php:3823
title
title
Definition: parserTests.txt:245
$wgServer
$wgServer
URL of the server.
Definition: DefaultSettings.php:106
$wgRevisionCacheExpiry
$wgRevisionCacheExpiry
Revision text may be cached in $wgMemc to reduce load on external storage servers and object extracti...
Definition: DefaultSettings.php:2245
extensions
The ContentHandler facility adds support for arbitrary content types on wiki instead of relying on wikitext for everything It was introduced in MediaWiki Each kind of and so on Built in content types as usual *javascript user provided javascript code *json simple implementation for use by extensions
Definition: contenthandler.txt:5
language
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two distribute and or modify the software for each author s protection and we want to make certain that everyone understands that there is no warranty for this free software If the software is modified by someone else and passed we want its recipients to know that what they have is not the so that any problems introduced by others will not reflect on the original authors reputations any free program is threatened constantly by software patents We wish to avoid the danger that redistributors of a free program will individually obtain patent in effect making the program proprietary To prevent we have made it clear that any patent must be licensed for everyone s free use or not licensed at all The precise terms and conditions for distribution and modification follow GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR DISTRIBUTION AND MODIFICATION This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License The refers to any such program or and a work based on the Program means either the Program or any derivative work under copyright a work containing the Program or a portion of either verbatim or with modifications and or translated into another language(Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying
$wgAllowImageMoving
$wgAllowImageMoving
Allows to move images and other media files.
Definition: DefaultSettings.php:399
$wgActiveUserDays
$wgActiveUserDays
How many days user must be idle before he is considered inactive.
Definition: DefaultSettings.php:4372
$wgUploadDialog
$wgUploadDialog
Configuration for file uploads using the embeddable upload dialog (https://www.mediawiki....
Definition: DefaultSettings.php:676
$wgRCMaxAge
$wgRCMaxAge
Recentchanges items are periodically purged; entries older than this many seconds will go.
Definition: DefaultSettings.php:6789
$wgEnotifRevealEditorAddress
bool $wgEnotifRevealEditorAddress
Allow sending of e-mail notifications with the editor's address in "Reply-To".
Definition: DefaultSettings.php:1810
$wgSummarySpamRegex
$wgSummarySpamRegex
Same as the above except for edit summaries.
Definition: DefaultSettings.php:5572
$wgLanguageCode
$wgLanguageCode
Site language code.
Definition: DefaultSettings.php:2913
$wgEnableParserLimitReporting
$wgEnableParserLimitReporting
Whether to include the NewPP limit report as a HTML comment.
Definition: DefaultSettings.php:7361
$wgExportMaxLinkDepth
$wgExportMaxLinkDepth
If non-zero, Special:Export accepts a "pagelink-depth" parameter up to this specified level,...
Definition: DefaultSettings.php:7247
$wgSitename
$wgSitename
Name of the site.
Definition: DefaultSettings.php:80
$wgReadOnly
$wgReadOnly
Set this to a string to put the wiki into read-only mode.
Definition: DefaultSettings.php:6723
$wgDevelopmentWarnings
$wgDevelopmentWarnings
If set to true MediaWiki will throw notices for some possible error conditions and for deprecated fun...
Definition: DefaultSettings.php:6331
$wgRightsIcon
$wgRightsIcon
Override for copyright metadata.
Definition: DefaultSettings.php:7155
$wgEditSubmitButtonLabelPublish
$wgEditSubmitButtonLabelPublish
Whether to label the store-to-database-and-show-to-others button in the editor as "Save page"/"Save c...
Definition: DefaultSettings.php:3271
$wgFeedDiffCutoff
$wgFeedDiffCutoff
When generating Recentchanges RSS/Atom feed, diffs will not be generated for pages larger than this s...
Definition: DefaultSettings.php:6967
$wgPasswordAttemptThrottle
$wgPasswordAttemptThrottle
Limit password attempts to X attempts per Y seconds per IP per account.
Definition: DefaultSettings.php:5767
$wgDirectoryMode
$wgDirectoryMode
Default value for chmoding of new directories.
Definition: DefaultSettings.php:1570
$wgBlockDisablesLogin
$wgBlockDisablesLogin
If true, blocked users will not be allowed to login.
Definition: DefaultSettings.php:5011
CACHE_ANYTHING
const CACHE_ANYTHING
Definition: Defines.php:101
NS_PROJECT_TALK
const NS_PROJECT_TALK
Definition: Defines.php:69
$wgRCShowChangedSize
$wgRCShowChangedSize
Show the amount of changed characters in recent changes.
Definition: DefaultSettings.php:7007
$wgExtensionFunctions
$wgExtensionFunctions
A list of callback functions which are called once MediaWiki is fully initialised.
Definition: DefaultSettings.php:7278
$wgUploadBaseUrl
$wgUploadBaseUrl
If set, this URL is added to the start of $wgUploadPath to form a complete upload URL.
Definition: DefaultSettings.php:346
$wgNamespaceRobotPolicies
$wgNamespaceRobotPolicies
Robot policies per namespaces.
Definition: DefaultSettings.php:8009
$wgTiffThumbnailType
$wgTiffThumbnailType
Browsers don't support TIFF inline generally...
Definition: DefaultSettings.php:1275
$wgSearchType
$wgSearchType
Search type.
Definition: DefaultSettings.php:1926
$wgAddGroups
$wgAddGroups
$wgAddGroups and $wgRemoveGroups can be used to give finer control over who can assign which groups a...
Definition: DefaultSettings.php:5496
$wgSearchSuggestCacheExpiry
$wgSearchSuggestCacheExpiry
Expiry time for search suggestion responses.
Definition: DefaultSettings.php:6571
$wgDisableOutputCompression
$wgDisableOutputCompression
Disable output compression (enabled by default if zlib is available)
Definition: DefaultSettings.php:3397
$wgSMTP
$wgSMTP
SMTP Mode.
Definition: DefaultSettings.php:1743
$wgUploadDirectory
$wgUploadDirectory
The filesystem path of the images directory.
Definition: DefaultSettings.php:250
$wgUploadThumbnailRenderHttpCustomHost
$wgUploadThumbnailRenderHttpCustomHost
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom Host HTTP header.
Definition: DefaultSettings.php:1526
$wgSitemapNamespaces
$wgSitemapNamespaces
Array of namespaces to generate a Google sitemap for when the maintenance/generateSitemap....
Definition: DefaultSettings.php:6627
$wgIllegalFileChars
$wgIllegalFileChars
Additional characters that are not allowed in filenames.
Definition: DefaultSettings.php:418
$wgHtml5
$wgHtml5
Previously used to determine if we should output an HTML5 doctype.
Definition: DefaultSettings.php:3235
$wgAllowHTMLEmail
$wgAllowHTMLEmail
For parts of the system that have been updated to provide HTML email content, send both text and HTML...
Definition: DefaultSettings.php:1754
$wgDBTableOptions
$wgDBTableOptions
MySQL table options to use during installation or update.
Definition: DefaultSettings.php:1947
$wgSquidServers
$wgSquidServers
List of proxy servers to purge on changes; default port is 80.
Definition: DefaultSettings.php:2799
$wgTrivialMimeDetection
$wgTrivialMimeDetection
Switch for trivial MIME detection.
Definition: DefaultSettings.php:1424
$wgCustomConvertCommand
$wgCustomConvertCommand
Use another resizing converter, e.g.
Definition: DefaultSettings.php:1122
$wgDeleteRevisionsBatchSize
$wgDeleteRevisionsBatchSize
Page deletions with > this number of revisions will use the job queue.
Definition: DefaultSettings.php:5519
$wgInvalidUsernameCharacters
$wgInvalidUsernameCharacters
Characters to prevent during new account creations.
Definition: DefaultSettings.php:4902
$wgAutoloadClasses
$wgAutoloadClasses
Array mapping class names to filenames, for autoloading.
Definition: DefaultSettings.php:7384
$wgFavicon
$wgFavicon
The URL path of the shortcut icon.
Definition: DefaultSettings.php:296
$wgCSPReportOnlyHeader
bool array $wgCSPReportOnlyHeader
Controls Content-Security-Policy-Report-Only header.
Definition: DefaultSettings.php:8804
format
if the prop value should be in the metadata multi language array format
Definition: hooks.txt:1644
$wgLegacyJavaScriptGlobals
$wgLegacyJavaScriptGlobals
Whether or not to assign configuration variables to the global window object.
Definition: DefaultSettings.php:3740
$wgLearnerEdits
$wgLearnerEdits
The following variables define 3 user experience levels:
Definition: DefaultSettings.php:8914
$wgLogActionsHandlers
$wgLogActionsHandlers
The same as above, but here values are names of classes, not messages.
Definition: DefaultSettings.php:7790
$wgEnableAsyncUploads
$wgEnableAsyncUploads
Enable deferred upload tasks that use the job queue.
Definition: DefaultSettings.php:409
$wgUploadNavigationUrl
$wgUploadNavigationUrl
Point the upload navigation link to an external URL Useful if you want to use a shared repository by ...
Definition: DefaultSettings.php:878
$wgOverrideHostname
$wgOverrideHostname
Override server hostname detection with a hardcoded value.
Definition: DefaultSettings.php:6325
$wgResourceBasePath
$wgResourceBasePath
The default 'remoteBasePath' value for instances of ResourceLoaderFileModule.
Definition: DefaultSettings.php:3672
$wgShortPagesNamespaceBlacklist
$wgShortPagesNamespaceBlacklist
Optional array of namespaces which should be blacklisted from Special:ShortPages Only pages inside $w...
Definition: DefaultSettings.php:4062
$wgForceUIMsgAsContentMsg
$wgForceUIMsgAsContentMsg
When translating messages with wfMessage(), it is not always clear what should be considered UI messa...
Definition: DefaultSettings.php:3160
$wgSiteTypes
$wgSiteTypes
Register handlers for specific types of sites.
Definition: DefaultSettings.php:8619
$wgMinUploadChunkSize
$wgMinUploadChunkSize
Minimum upload chunk size, in bytes.
Definition: DefaultSettings.php:866
$wgContentNamespaces
$wgContentNamespaces
Array of namespaces which can be deemed to contain valid "content", as far as the site statistics are...
Definition: DefaultSettings.php:4054
$wgJobClasses
$wgJobClasses
Maps jobs to their handlers; extensions can add to this to provide custom jobs.
Definition: DefaultSettings.php:7504
$wgEmailConfirmToEdit
$wgEmailConfirmToEdit
Should editors be required to have a validated e-mail address before being allowed to edit?
Definition: DefaultSettings.php:5067
$wgExtraInterlanguageLinkPrefixes
$wgExtraInterlanguageLinkPrefixes
List of additional interwiki prefixes that should be treated as interlanguage links (i....
Definition: DefaultSettings.php:2955
$wgCopyUploadsFromSpecialUpload
$wgCopyUploadsFromSpecialUpload
Enable copy uploads from Special:Upload.
Definition: DefaultSettings.php:822
$wgRunJobsAsync
$wgRunJobsAsync
When $wgJobRunRate > 0, try to run jobs asynchronously, spawning a new process to handle the job exec...
Definition: DefaultSettings.php:8439
$wgMaxShellWallClockTime
$wgMaxShellWallClockTime
Maximum wall clock time (i.e.
Definition: DefaultSettings.php:8283
$wgCascadingRestrictionLevels
$wgCascadingRestrictionLevels
Restriction levels that can be used with cascading protection.
Definition: DefaultSettings.php:5313
$wgArticlePath
$wgArticlePath
The URL path for primary article page views.
Definition: DefaultSettings.php:239
$wgSessionCacheType
$wgSessionCacheType
The cache type for storing session data.
Definition: DefaultSettings.php:2360
$wgSquidPurgeUseHostHeader
$wgSquidPurgeUseHostHeader
Whether to use a Host header in purge requests sent to the proxy servers configured in $wgSquidServer...
Definition: DefaultSettings.php:2829
$wgJpegTran
$wgJpegTran
used for lossless jpeg rotation
Definition: DefaultSettings.php:1129
text
This list may contain false positives That usually means there is additional text with links below the first Each row contains links to the first and second as well as the first line of the second redirect text
Definition: All_system_messages.txt:1267
$wgDisableCookieCheck
$wgDisableCookieCheck
By default, MediaWiki checks if the client supports cookies during the login process,...
Definition: DefaultSettings.php:6021
$wgDisableSearchUpdate
$wgDisableSearchUpdate
If you've disabled search semi-permanently, this also disables updates to the table.
Definition: DefaultSettings.php:6577
$wgMWLoggerDefaultSpi
$wgMWLoggerDefaultSpi
Default service provider for creating Psr\Log\LoggerInterface instances.
Definition: DefaultSettings.php:6247
$wgCacheEpoch
$wgCacheEpoch
Set this to current time to invalidate all prior cached pages.
Definition: DefaultSettings.php:2609
$wgShellCgroup
$wgShellCgroup
Under Linux: a cgroup directory used to constrain memory usage of shell commands.
Definition: DefaultSettings.php:8308
$wgAjaxExportList
$wgAjaxExportList
List of Ajax-callable functions.
Definition: DefaultSettings.php:8209
$wgUserEmailConfirmationTokenExpiry
$wgUserEmailConfirmationTokenExpiry
The time, in seconds, when an email confirmation email expires.
Definition: DefaultSettings.php:1712
$wgGitInfoCacheDirectory
$wgGitInfoCacheDirectory
Directory where GitInfo will look for pre-computed cache files.
Definition: DefaultSettings.php:2615
$wgImageLimits
$wgImageLimits
Limit images on image description pages to a user-selectable limit.
Definition: DefaultSettings.php:1446
Title
Represents a title within MediaWiki.
Definition: Title.php:40
$wgAutoConfirmCount
$wgAutoConfirmCount
Number of edits an account requires before it is autoconfirmed.
Definition: DefaultSettings.php:5380
$wgCentralIdLookupProviders
$wgCentralIdLookupProviders
Central ID lookup providers Key is the provider ID, value is a specification for ObjectFactory.
Definition: DefaultSettings.php:4386
$wgXhtmlDefaultNamespace
$wgXhtmlDefaultNamespace
The default xmlns attribute.
Definition: DefaultSettings.php:3226
$wgActionPaths
$wgActionPaths
To set 'pretty' URL paths for actions other than plain page views, add to this array.
Definition: DefaultSettings.php:371
and
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgBlockCIDRLimit
$wgBlockCIDRLimit
Limits on the possible sizes of range blocks.
Definition: DefaultSettings.php:4999
$wgMiserMode
$wgMiserMode
Disable database-intensive features.
Definition: DefaultSettings.php:2257
$wgGitRepositoryViewers
$wgGitRepositoryViewers
Map GIT repository URLs to viewer URLs to provide links in Special:Version.
Definition: DefaultSettings.php:6770
$wgTidyConfig
$wgTidyConfig
Configuration for HTML postprocessing tool.
Definition: DefaultSettings.php:4244
$wgEnableJavaScriptTest
$wgEnableJavaScriptTest
Allow running of javascript test suites via [[Special:JavaScriptTest]] (such as QUnit).
Definition: DefaultSettings.php:6483
$wgPoolCounterConf
$wgPoolCounterConf
Configuration for processing pool control, for use in high-traffic wikis.
Definition: DefaultSettings.php:8551
$wgUseTinyRGBForJPGThumbnails
$wgUseTinyRGBForJPGThumbnails
When this variable is true and JPGs use the sRGB ICC profile, swaps it for the more lightweight (and ...
Definition: DefaultSettings.php:1542
$wgAvailableRights
$wgAvailableRights
A list of available rights, in addition to the ones defined by the core.
Definition: DefaultSettings.php:5507
MEDIATYPE_VIDEO
const MEDIATYPE_VIDEO
Definition: defines.php:35
$wgMainCacheType
CACHE_MEMCACHED $wgMainCacheType
Definition: memcached.txt:63
$wgSemiprotectedRestrictionLevels
$wgSemiprotectedRestrictionLevels
Restriction levels that should be considered "semiprotected".
Definition: DefaultSettings.php:5327
$wgDisableUploadScriptChecks
$wgDisableUploadScriptChecks
Setting this to true will disable the upload system's checks for HTML/JavaScript.
Definition: DefaultSettings.php:994
$wgCookieSetOnAutoblock
$wgCookieSetOnAutoblock
Whether to set a cookie when a user is autoblocked.
Definition: DefaultSettings.php:6054
$wgRateLimitsExcludedIPs
$wgRateLimitsExcludedIPs
Array of IPs / CIDR ranges which should be excluded from rate limits.
Definition: DefaultSettings.php:5740
$wgCapitalLinks
$wgCapitalLinks
Set this to false to avoid forcing the first letter of links to capitals.
Definition: DefaultSettings.php:3993
$wgReadOnlyFile
$wgReadOnlyFile
If this lock file exists (size > 0), the wiki will be forced into read-only mode.
Definition: DefaultSettings.php:6739
$wgApplyIpBlocksToXff
$wgApplyIpBlocksToXff
Whether to look at the X-Forwarded-For header's list of (potentially spoofed) IPs and apply IP blocks...
Definition: DefaultSettings.php:5626
NS_HELP_TALK
const NS_HELP_TALK
Definition: Defines.php:77
$wgThumbnailScriptPath
$wgThumbnailScriptPath
Give a path here to use thumb.php for thumbnail generation on client request, instead of generating t...
Definition: DefaultSettings.php:898
$wgRCEngines
$wgRCEngines
Used by RecentChange::getEngine to find the correct engine for a given URI scheme.
Definition: DefaultSettings.php:6887
$wgCSPHeader
bool array $wgCSPHeader
Controls Content-Security-Policy header [Experimental].
Definition: DefaultSettings.php:8796
$wgEditPageFrameOptions
$wgEditPageFrameOptions
The X-Frame-Options header to send on pages sensitive to clickjacking attacks, such as edit pages.
Definition: DefaultSettings.php:3380
$wgGroupPermissions
$wgGroupPermissions
Permission keys given to users in each group.
Definition: DefaultSettings.php:5099
SCHEMA_COMPAT_NEW
const SCHEMA_COMPAT_NEW
Definition: Defines.php:291
$wgDebugComments
$wgDebugComments
Send debug data to an HTML comment in the output.
Definition: DefaultSettings.php:6124
$wgExiv2Command
$wgExiv2Command
Some tests and extensions use exiv2 to manipulate the Exif metadata in some image formats.
Definition: DefaultSettings.php:1165
$wgGrammarForms
$wgGrammarForms
Some languages need different word forms, usually for different cases.
Definition: DefaultSettings.php:2930
$wgLocaltimezone
$wgLocaltimezone
Fake out the timezone that the server thinks it's in.
Definition: DefaultSettings.php:3185
$wgPagePropLinkInvalidations
$wgPagePropLinkInvalidations
Page property link table invalidation lists.
Definition: DefaultSettings.php:7608
$wgAjaxEditStash
$wgAjaxEditStash
Have clients send edits to be prepared when filling in edit summaries.
Definition: DefaultSettings.php:8225
$wgHttpsPort
$wgHttpsPort
For installations where the canonical server is HTTP but HTTPS is optionally supported,...
Definition: DefaultSettings.php:8641
$wgCleanSignatures
$wgCleanSignatures
If true, removes (by substituting) templates in signatures.
Definition: DefaultSettings.php:4181
$wgOpenSearchDescriptionLength
$wgOpenSearchDescriptionLength
Minimum length of extract in .
Definition: DefaultSettings.php:6566
Interwiki
Value object for representing interwiki records.
Definition: Interwiki.php:27
$wgShowExceptionDetails
$wgShowExceptionDetails
If set to true, uncaught exceptions will print the exception message and a complete stack trace to ou...
Definition: DefaultSettings.php:6290
$wgThumbUpright
$wgThumbUpright
Adjust width of upright images when parameter 'upright' is used This allows a nicer look for upright ...
Definition: DefaultSettings.php:1565
$wgVerifyMimeType
$wgVerifyMimeType
Determines if the MIME type of uploaded files should be checked.
Definition: DefaultSettings.php:1391
$wgExtraGenderNamespaces
$wgExtraGenderNamespaces
Same as above, but for namespaces with gender distinction.
Definition: DefaultSettings.php:3859
$wgQueryCacheLimit
$wgQueryCacheLimit
Number of rows to cache in 'querycache' table when miser mode is on.
Definition: DefaultSettings.php:2267
$wgInterwikiFallbackSite
$wgInterwikiFallbackSite
Fallback site, if unable to resolve from cache.
Definition: DefaultSettings.php:3965
$wgReauthenticateTime
int[] $wgReauthenticateTime
Time frame for re-authentication.
Definition: DefaultSettings.php:4621
$wgSharedUploadDBprefix
string $wgSharedUploadDBprefix
Shortcut for the ForeignDBRepo 'tablePrefix' setting in $wgForeignFileRepos.
Definition: DefaultSettings.php:645
$wgCookieSecure
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
Definition: DefaultSettings.php:6013
$wgSessionProviders
$wgSessionProviders
MediaWiki\Session\SessionProvider configuration.
Definition: DefaultSettings.php:4943
$wgSiteNotice
$wgSiteNotice
Site notice shown at the top of each page.
Definition: DefaultSettings.php:3296
$wgCapitalLinkOverrides
$wgCapitalLinkOverrides
Definition: DefaultSettings.php:4009
SCHEMA_COMPAT_WRITE_BOTH
const SCHEMA_COMPAT_WRITE_BOTH
Definition: Defines.php:288
WebRequest\detectServer
static detectServer()
Work out an appropriate URL prefix containing scheme and host, based on information detected from $_S...
Definition: WebRequest.php:200
$wgTrackingCategories
$wgTrackingCategories
Array holding default tracking category names.
Definition: DefaultSettings.php:4046
$wgShellLocale
$wgShellLocale
Locale for LC_ALL, to provide a known environment for locale-sensitive operations.
Definition: DefaultSettings.php:8349
$wgRestrictionLevels
$wgRestrictionLevels
Rights which can be required for each protection level (via action=protect)
Definition: DefaultSettings.php:5302
$wgDnsBlacklistUrls
$wgDnsBlacklistUrls
List of DNS blacklists to use, if $wgEnableDnsBlacklist is true.
Definition: DefaultSettings.php:5604
$wgEnableUploads
$wgEnableUploads
Allow users to upload files.
Definition: DefaultSettings.php:389
$wgRenderHashAppend
$wgRenderHashAppend
Append a configured value to the parser cache and the sitenotice key so that they can be kept separat...
Definition: DefaultSettings.php:2636
$wgMaxGeneratedPPNodeCount
$wgMaxGeneratedPPNodeCount
A complexity limit on template expansion: the maximum number of elements generated by Preprocessor::p...
Definition: DefaultSettings.php:4146
NS_USER
const NS_USER
Definition: Defines.php:66
$wgLearnerMemberSince
$wgLearnerMemberSince
Name of the external diff engine to use.
Definition: DefaultSettings.php:8915
$wgAdvertisedFeedTypes
$wgAdvertisedFeedTypes
Which feed types should we provide by default? This can include 'rss', 'atom', neither,...
Definition: DefaultSettings.php:6997
$wgSlaveLagCritical
$wgSlaveLagCritical
Definition: DefaultSettings.php:2172
true
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return true
Definition: hooks.txt:1993
$wgSVGConverters
$wgSVGConverters
Scalable Vector Graphics (SVG) may be uploaded as images.
Definition: DefaultSettings.php:1183
$wgExtensionInfoMTime
int bool $wgExtensionInfoMTime
When loading extensions through the extension registration system, this can be used to invalidate the...
Definition: DefaultSettings.php:2688
$wgGroupsRemoveFromSelf
$wgGroupsRemoveFromSelf
Definition: DefaultSettings.php:5280
$wgAllowCopyUploads
$wgAllowCopyUploads
Allow for upload to be copied from an URL.
Definition: DefaultSettings.php:808
NS_TALK
const NS_TALK
Definition: Defines.php:65
$wgTextModelsToParse
$wgTextModelsToParse
Determines which types of text are parsed as wikitext.
Definition: DefaultSettings.php:8608
$wgAPIPropModules
$wgAPIPropModules
API Query prop module extensions.
Definition: DefaultSettings.php:8140
$wgOverrideSiteFeed
$wgOverrideSiteFeed
Override the site's default RSS/ATOM feed for recentchanges that appears on every page.
Definition: DefaultSettings.php:6981
$wgSkipSkins
$wgSkipSkins
Specify the names of skins that should not be presented in the list of available skins in user prefer...
Definition: DefaultSettings.php:3316
$wgPopularPasswordFile
string $wgPopularPasswordFile
Where popular password file is located.
Definition: DefaultSettings.php:8756
$wgCategoryCollation
$wgCategoryCollation
Specify how category names should be sorted, when listed on a category page.
Definition: DefaultSettings.php:7660
$wgLogNames
$wgLogNames
Lists the message key string for each log type.
Definition: DefaultSettings.php:7739
$wgEnotifImpersonal
$wgEnotifImpersonal
Send a generic mail instead of a personalised mail for each user.
Definition: DefaultSettings.php:1834
captcha-old.parser
parser
Definition: captcha-old.py:210
$wgFileCacheDirectory
$wgFileCacheDirectory
Directory where the cached page will be saved.
Definition: DefaultSettings.php:256
$wgCookieSetOnIpBlock
$wgCookieSetOnIpBlock
Whether to set a cookie when a logged-out user is blocked.
Definition: DefaultSettings.php:6063
$wgUploadPath
$wgUploadPath
The URL path for the images directory.
Definition: DefaultSettings.php:245
of
globals txt Globals are evil The original MediaWiki code relied on globals for processing context far too often MediaWiki development since then has been a story of slowly moving context out of global variables and into objects Storing processing context in object member variables allows those objects to be reused in a much more flexible way Consider the elegance of
Definition: globals.txt:10
$wgMaxTocLevel
$wgMaxTocLevel
Maximum indent level of toc.
Definition: DefaultSettings.php:4129
$wgMaxRedirects
$wgMaxRedirects
Max number of redirects to follow when resolving redirects.
Definition: DefaultSettings.php:4078
$wgDjvuDump
$wgDjvuDump
Path of the djvudump executable Enable this and $wgDjvuRenderer to enable djvu rendering example: $wg...
Definition: DefaultSettings.php:1590
$wgRestrictionTypes
$wgRestrictionTypes
Set of available actions that can be restricted via action=protect You probably shouldn't change this...
Definition: DefaultSettings.php:5289
$wgSearchRunSuggestedQuery
bool $wgSearchRunSuggestedQuery
Controls whether zero-result search queries with suggestions should display results for these suggest...
Definition: DefaultSettings.php:8742
$wgArticleCountMethod
$wgArticleCountMethod
Method used to determine if a page in a content namespace should be counted as a valid article.
Definition: DefaultSettings.php:4363
$wgEnableBotPasswords
bool $wgEnableBotPasswords
Whether to enable bot passwords.
Definition: DefaultSettings.php:5933
NS_MEDIAWIKI
const NS_MEDIAWIKI
Definition: Defines.php:72
$wgXhtmlNamespaces
$wgXhtmlNamespaces
Permit other namespaces in addition to the w3.org default.
Definition: DefaultSettings.php:3287
class
you have access to all of the normal MediaWiki so you can get a DB use the etc For full docs on the Maintenance class
Definition: maintenance.txt:52
CONTENT_MODEL_JAVASCRIPT
const CONTENT_MODEL_JAVASCRIPT
Definition: Defines.php:236
$wgMaxSigChars
$wgMaxSigChars
Maximum number of Unicode characters in signature.
Definition: DefaultSettings.php:4794
$wgDBuser
$wgDBuser
Database username.
Definition: DefaultSettings.php:1878
$wgDBerrorLogTZ
$wgDBerrorLogTZ
Timezone to use in the error log.
Definition: DefaultSettings.php:2117
$wgJpegQuality
$wgJpegQuality
When scaling a JPEG thumbnail, this is the quality we request from the backend.
Definition: DefaultSettings.php:1159
$wgAllowTitlesInSVG
$wgAllowTitlesInSVG
Disallow <title> element in SVG files.
Definition: DefaultSettings.php:1227
$wgPasswordPolicy
$wgPasswordPolicy
Password policy for the wiki.
Definition: DefaultSettings.php:4462
$wgDataCenterUpdateStickTTL
$wgDataCenterUpdateStickTTL
After a state-changing request is done by a client, this determines how many seconds that client shou...
Definition: DefaultSettings.php:2092
$wgWikiDiff2MovedParagraphDetectionCutoff
$wgWikiDiff2MovedParagraphDetectionCutoff
wikidiff2 supports detection of changes in moved paragraphs.
Definition: DefaultSettings.php:8478
$wgDebugDumpSql
$wgDebugDumpSql
Write SQL queries to the debug log.
Definition: DefaultSettings.php:6134
$wgAllowSlowParserFunctions
$wgAllowSlowParserFunctions
Enable slow parser functions.
Definition: DefaultSettings.php:2277
$wgPagePropsHaveSortkey
$wgPagePropsHaveSortkey
Whether the page_props table has a pp_sortkey column.
Definition: DefaultSettings.php:8628
$wgUploadMissingFileUrl
$wgUploadMissingFileUrl
Point the upload link for missing files to an external URL, as with $wgUploadNavigationUrl.
Definition: DefaultSettings.php:885
captcha-old.output
output
Definition: captcha-old.py:240
$wgResourceModuleSkinStyles
$wgResourceModuleSkinStyles
Skin-specific styles for resource modules.
Definition: DefaultSettings.php:3654
MediaWikiServices
injection txt This is an overview of how MediaWiki makes use of dependency injection The design described here grew from the discussion of RFC T384 The term dependency this means that anything an object needs to operate should be injected from the the object itself should only know narrow no concrete implementation of the logic it relies on The requirement to inject everything typically results in an architecture that based on two main types of and essentially stateless service objects that use other service objects to operate on the value objects As of the beginning MediaWiki is only starting to use the DI approach Much of the code still relies on global state or direct resulting in a highly cyclical dependency MediaWikiServices
Definition: injection.txt:23
$wgMinimalPasswordLength
$wgMinimalPasswordLength
Specifies the minimal length of a user password.
Definition: DefaultSettings.php:4681
$wgGroupsAddToSelf
$wgGroupsAddToSelf
A map of group names that the user is in, to group names that those users are allowed to add or revok...
Definition: DefaultSettings.php:5275
CONTENT_MODEL_TEXT
const CONTENT_MODEL_TEXT
Definition: Defines.php:238
$wgRCFilterByAge
$wgRCFilterByAge
Filter $wgRCLinkDays by $wgRCMaxAge to avoid showing links for numbers higher than what will be store...
Definition: DefaultSettings.php:6813
$wgSpecialPages
$wgSpecialPages
Special page list.
Definition: DefaultSettings.php:7379
$wgDebugToolbar
$wgDebugToolbar
Display the new debugging toolbar.
Definition: DefaultSettings.php:6498
$wgAntivirus
$wgAntivirus
Internal name of virus scanner.
Definition: DefaultSettings.php:1332
$wgDisableQueryPageUpdate
$wgDisableQueryPageUpdate
Set this to an array of special page names to prevent maintenance/updateSpecialPages....
Definition: DefaultSettings.php:7925
NS_FILE_TALK
const NS_FILE_TALK
Definition: Defines.php:71
$wgTrustedMediaFormats
$wgTrustedMediaFormats
list of trusted media-types and MIME types.
Definition: DefaultSettings.php:1011
NS_CATEGORY_TALK
const NS_CATEGORY_TALK
Definition: Defines.php:79
$wgHKDFSecret
$wgHKDFSecret
Secret for hmac-based key derivation function (fast, cryptographically secure random numbers).
Definition: DefaultSettings.php:8668
$wgHTTPImportTimeout
$wgHTTPImportTimeout
Timeout for HTTP requests done internally for transwiki imports, in seconds.
Definition: DefaultSettings.php:8384
$wgRestrictDisplayTitle
$wgRestrictDisplayTitle
For consistency, restrict DISPLAYTITLE to text that normalizes to the same canonical DB key.
Definition: DefaultSettings.php:4303
$wgAutoloadAttemptLowercase
$wgAutoloadAttemptLowercase
Switch controlling legacy case-insensitive classloading.
Definition: DefaultSettings.php:7391
$wgPasswordSender
$wgPasswordSender
Sender email address for e-mail notifications.
Definition: DefaultSettings.php:1658
$wgPHPSessionHandling
string $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
Definition: DefaultSettings.php:2515
$wgAllowDisplayTitle
$wgAllowDisplayTitle
Allow DISPLAYTITLE to change title display.
Definition: DefaultSettings.php:4296
$wgUseSiteCss
$wgUseSiteCss
Use the site's Cascading Style Sheets (CSS)?
Definition: DefaultSettings.php:3353
$wgExtraLanguageCodes
$wgExtraLanguageCodes
List of mappings from one language code to another.
Definition: DefaultSettings.php:2975
$wgAPIFormatModules
$wgAPIFormatModules
API format module extensions.
Definition: DefaultSettings.php:8122
$wgUseESI
$wgUseESI
If you run Squid3 with ESI support, enable this (default:false):
Definition: DefaultSettings.php:2715
$wgRegisterInternalExternals
$wgRegisterInternalExternals
By default MediaWiki does not register links pointing to same server in externallinks dataset,...
Definition: DefaultSettings.php:8500
$wgSecretKey
$wgSecretKey
This should always be customised in LocalSettings.php.
Definition: DefaultSettings.php:5962
$wgScriptPath
$wgScriptPath
The path we should point to.
Definition: DefaultSettings.php:138
$wgNamespacesWithSubpages
$wgNamespacesWithSubpages
Which namespaces should support subpages? See Language.php for a list of namespaces.
Definition: DefaultSettings.php:4015
$wgXMLMimeTypes
$wgXMLMimeTypes
Additional XML types we can allow via MIME-detection.
Definition: DefaultSettings.php:1430
$wgPasswordConfig
$wgPasswordConfig
Configuration for built-in password types.
Definition: DefaultSettings.php:4729
$wgDBadminpassword
$wgDBadminpassword
Separate password for maintenance tasks.
Definition: DefaultSettings.php:1918
$wgUseAjax
$wgUseAjax
Enable AJAX framework.
Definition: DefaultSettings.php:8202
$wgDBssl
$wgDBssl
Whether to use SSL in DB connection.
Definition: DefaultSettings.php:1898
$wgWatchersMaxAge
$wgWatchersMaxAge
Page watchers inactive for more than this many seconds are considered inactive.
Definition: DefaultSettings.php:6796
$wgGrantPermissionGroups
array $wgGrantPermissionGroups
Map of grants to their UI grouping.
Definition: DefaultSettings.php:5893
$wgVariantArticlePath
$wgVariantArticlePath
Like $wgArticlePath, but on multi-variant wikis, this provides a path format that describes which par...
Definition: DefaultSettings.php:3132
XML_DUMP_SCHEMA_VERSION_10
const XML_DUMP_SCHEMA_VERSION_10
Definition: Defines.php:328
$wgMaxShellMemory
$wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under linux, in KB.
Definition: DefaultSettings.php:8266
$wgResourceLoaderDebug
$wgResourceLoaderDebug
The default debug mode (on/off) for of ResourceLoader requests.
Definition: DefaultSettings.php:3706
$wgUseImageResize
$wgUseImageResize
Whether to enable server-side image thumbnailing.
Definition: DefaultSettings.php:1071
$wgForeignFileRepos
$wgForeignFileRepos
Enable the use of files from one or more other wikis.
Definition: DefaultSettings.php:541
$wgAccountCreationThrottle
$wgAccountCreationThrottle
Number of accounts each IP address may create per specified period(s).
Definition: DefaultSettings.php:5551
$wgEnotifMaxRecips
$wgEnotifMaxRecips
Maximum number of users to mail at once when using impersonal mail.
Definition: DefaultSettings.php:1840
$wgUploadThumbnailRenderMethod
$wgUploadThumbnailRenderMethod
The method through which the thumbnails will be prerendered for the entries in $wgUploadThumbnailRend...
Definition: DefaultSettings.php:1519
$wgLocalStylePath
$wgLocalStylePath
The URL path of the skins directory.
Definition: DefaultSettings.php:209
$wgSpecialVersionShowHooks
$wgSpecialVersionShowHooks
Show the contents of $wgHooks in Special:Version.
Definition: DefaultSettings.php:6272
$wgMemCachedPersistent
$wgMemCachedPersistent
Use persistent connections to MemCached, which are shared across multiple requests.
Definition: DefaultSettings.php:2538
$wgShowEXIF
$wgShowEXIF
Show Exif data, on by default if available.
Definition: DefaultSettings.php:794
$wgMaxPPNodeCount
$wgMaxPPNodeCount
A complexity limit on template expansion: the maximum number of nodes visited by PPFrame::expand()
Definition: DefaultSettings.php:4135
$wgSecureLogin
$wgSecureLogin
This is to let user authenticate using https when they come from http.
Definition: DefaultSettings.php:4921
$wgCookiePrefix
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
Definition: DefaultSettings.php:6028
$wgUserEmailUseReplyTo
$wgUserEmailUseReplyTo
If true put the sending user's email in a Reply-To header instead of From (false).
Definition: DefaultSettings.php:1696
$wgAPIMaxDBRows
$wgAPIMaxDBRows
Maximum amount of rows to scan in a DB query in the API The default value is generally fine.
Definition: DefaultSettings.php:8155
$wgMainStash
$wgMainStash
Main object stash type.
Definition: DefaultSettings.php:2486
$wgStyleDirectory
$wgStyleDirectory
Filesystem stylesheets directory.
Definition: DefaultSettings.php:230
$wgUpgradeKey
$wgUpgradeKey
When you run the web-based upgrade utility, it will tell you what to set this to in order to authoriz...
Definition: DefaultSettings.php:6750
$wgSVGConverter
$wgSVGConverter
Pick a converter defined in $wgSVGConverters.
Definition: DefaultSettings.php:1198
$wgSessionSecret
$wgSessionSecret
Secret for session storage.
Definition: DefaultSettings.php:8649
$wgDefaultRobotPolicy
$wgDefaultRobotPolicy
Default robot policy.
Definition: DefaultSettings.php:7993
$wgAllowUserJs
$wgAllowUserJs
Allow user Javascript page? This enables a lot of neat customizations, but may increase security risk...
Definition: DefaultSettings.php:3328
$wgUnwatchedPageThreshold
$wgUnwatchedPageThreshold
If set to an integer, pages that are watched by this many users or more will not require the unwatche...
Definition: DefaultSettings.php:7066
$wgTrxProfilerLimits
$wgTrxProfilerLimits
Performance expectations for DB usage.
Definition: DefaultSettings.php:6141
$wgExtraNamespaces
$wgExtraNamespaces
Additional namespaces.
Definition: DefaultSettings.php:3851
$wgUploadThumbnailRenderHttpCustomDomain
$wgUploadThumbnailRenderHttpCustomDomain
When using the "http" wgUploadThumbnailRenderMethod, lets one specify a custom domain to send the HTT...
Definition: DefaultSettings.php:1534
addresses
storage can be distributed across multiple and multiple web servers can use the same cache cluster *********************W A R N I N G ***********************Memcached has no security or authentication Please ensure that your server is appropriately and that the anyone on the internet can put data into and read data from your cache An attacker familiar with MediaWiki internals could use this to steal passwords and email addresses
Definition: memcached.txt:43
$wgCategoryPagingLimit
$wgCategoryPagingLimit
Paging limit for categories.
Definition: DefaultSettings.php:7633
$wgNewUserLog
$wgNewUserLog
Maintain a log of newusers at Special:Log/newusers?
Definition: DefaultSettings.php:7901
$wgNamespacesToBeSearchedDefault
$wgNamespacesToBeSearchedDefault
List of namespaces which are searched by default.
Definition: DefaultSettings.php:6588
$wgUsePigLatinVariant
$wgUsePigLatinVariant
Whether to enable the pig Latin variant of English (en-x-piglatin), used to ease variant development ...
Definition: DefaultSettings.php:3102
$wgMainWANCache
$wgMainWANCache
Main Wide-Area-Network cache type.
Definition: DefaultSettings.php:2430
$wgGalleryOptions
$wgGalleryOptions
Parameters for the "<gallery>" tag.
Definition: DefaultSettings.php:1558
$wgAutopromoteOnce
$wgAutopromoteOnce
Automatically add a usergroup to any user who matches certain conditions.
Definition: DefaultSettings.php:5464
$wgJobQueueIncludeInMaxLagFactor
$wgJobQueueIncludeInMaxLagFactor
Whether to include the number of jobs that are queued for the API's maxlag parameter.
Definition: DefaultSettings.php:7591
$wgCdnReboundPurgeDelay
$wgCdnReboundPurgeDelay
If set, any SquidPurge call on a URL or URLs will send a second purge no less than this many seconds ...
Definition: DefaultSettings.php:2775
$wgEnableAutoRotation
$wgEnableAutoRotation
If set to true, images that contain certain the exif orientation tag will be rotated accordingly.
Definition: DefaultSettings.php:1325
$wgVirtualRestConfig
array $wgVirtualRestConfig
Global configuration variable for Virtual REST Services.
Definition: DefaultSettings.php:8723
$wgCheckFileExtensions
$wgCheckFileExtensions
This is a flag to determine whether or not to check file extensions on upload.
Definition: DefaultSettings.php:978
CACHE_DB
const CACHE_DB
Definition: Defines.php:103
$wgAllUnicodeFixes
$wgAllUnicodeFixes
Set this to always convert certain Unicode sequences to modern ones regardless of the content languag...
Definition: DefaultSettings.php:3027
$wgInternalServer
$wgInternalServer
Internal server name as known to CDN, if different.
Definition: DefaultSettings.php:2743
$wgDisableAnonTalk
$wgDisableAnonTalk
Disable links to talk pages of anonymous users (IPs) in listings on special pages like page history,...
Definition: DefaultSettings.php:7026
$wgSquidMaxage
$wgSquidMaxage
Cache TTL for the CDN sent as s-maxage (without ESI) or Surrogate-Control (with ESI).
Definition: DefaultSettings.php:2752
$wgInterwikiPrefixDisplayTypes
$wgInterwikiPrefixDisplayTypes
Mapping of interwiki index prefixes to descriptors that can be used to change the display of interwik...
Definition: DefaultSettings.php:8936
$wgUseLocalMessageCache
$wgUseLocalMessageCache
Set this to true to maintain a copy of the message cache on the local server.
Definition: DefaultSettings.php:2556
$wgStatsdServer
$wgStatsdServer
Destination of statsd metrics.
Definition: DefaultSettings.php:6429
$wgCountCategorizedImagesAsUsed
$wgCountCategorizedImagesAsUsed
On Special:Unusedimages, consider images "used", if they are put into a category.
Definition: DefaultSettings.php:7931
$wgDummyLanguageCodes
$wgDummyLanguageCodes
Functionally the same as $wgExtraLanguageCodes, but deprecated.
Definition: DefaultSettings.php:2990
$wgPasswordExpirationDays
$wgPasswordExpirationDays
The number of days that a user's password is good for.
Definition: DefaultSettings.php:1718
$wgRCWatchCategoryMembership
$wgRCWatchCategoryMembership
Treat category membership changes as a RecentChange.
Definition: DefaultSettings.php:6903
$wgObjectCacheSessionExpiry
$wgObjectCacheSessionExpiry
The expiry time to use for session storage, in seconds.
Definition: DefaultSettings.php:2497
$wgFeed
$wgFeed
Provide syndication feeds (RSS, Atom) for, e.g., Recentchanges, Newpages.
Definition: DefaultSettings.php:6945
$wgAsyncHTTPTimeout
$wgAsyncHTTPTimeout
Timeout for Asynchronous (background) HTTP requests, in seconds.
Definition: DefaultSettings.php:8389
$wgRightsUrl
$wgRightsUrl
Set this to specify an external URL containing details about the content license used on your wiki.
Definition: DefaultSettings.php:7142
$wgAllowExternalImages
$wgAllowExternalImages
Whether to allow inline image pointing to other websites.
Definition: DefaultSettings.php:4186
$wgUsePathInfo
$wgUsePathInfo
Whether to support URLs like index.php/Page_title These often break when PHP is set up in CGI mode.
Definition: DefaultSettings.php:157
$wgImageMagickTempDir
$wgImageMagickTempDir
Temporary directory used for ImageMagick.
Definition: DefaultSettings.php:1108
$wgSQLMode
$wgSQLMode
SQL Mode - default is turning off all modes, including strict, if set.
Definition: DefaultSettings.php:1955
$wgEnableImageWhitelist
$wgEnableImageWhitelist
If $wgAllowExternalImages is false, you can allow an on-wiki whitelist of regular expression fragment...
Definition: DefaultSettings.php:4213
$wgExportPagelistLimit
$wgExportPagelistLimit
Maximum number of pages returned by the GetPagesFromCategory and GetPagesFromNamespace functions.
Definition: DefaultSettings.php:7265
$wgSpamRegex
$wgSpamRegex
Edits matching these regular expressions in body text will be recognised as spam and rejected automat...
Definition: DefaultSettings.php:5567
$wgSharedUploadPath
string $wgSharedUploadPath
Shortcut for the 'url' setting of $wgForeignFileRepos.
Definition: DefaultSettings.php:600
$wgOpenSearchDefaultLimit
$wgOpenSearchDefaultLimit
Integer defining default number of entries to show on OpenSearch call.
Definition: DefaultSettings.php:6561
$wgCdnMaxageLagged
$wgCdnMaxageLagged
Cache timeout for the CDN when DB replica DB lag is high.
Definition: DefaultSettings.php:2759
$wgShowArchiveThumbnails
$wgShowArchiveThumbnails
Show thumbnails for old images on the image description page.
Definition: DefaultSettings.php:1318
$wgAllowSpecialInclusion
$wgAllowSpecialInclusion
Allow special page inclusions such as {{Special:Allpages}}.
Definition: DefaultSettings.php:7919
$wgActorTableSchemaMigrationStage
int $wgActorTableSchemaMigrationStage
Actor table schema migration stage.
Definition: DefaultSettings.php:8981