Commit a54b7320 authored by Steve's avatar Steve

Added Mediawiki 1.31-LTS


Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

The development of this software is covered by a [Code of Conduct](
This diff is collapsed.
This diff is collapsed.
The MediaWiki FAQ can be found at:
\ No newline at end of file
/* eslint-env node */
module.exports = function ( grunt ) {
var wgServer = process.env.MW_SERVER,
wgScriptPath = process.env.MW_SCRIPT_PATH,
karmaProxy = {};
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-contrib-copy' );
grunt.loadNpmTasks( 'grunt-contrib-watch' );
grunt.loadNpmTasks( 'grunt-eslint' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.loadNpmTasks( 'grunt-karma' );
grunt.loadNpmTasks( 'grunt-stylelint' );
grunt.loadNpmTasks( 'grunt-webdriver' );
karmaProxy[ wgScriptPath ] = {
target: wgServer + wgScriptPath,
changeOrigin: true
grunt.initConfig( {
eslint: {
all: [
// Third-party code of PHPUnit coverage report
// Explicitly say "**/*.js" here in case of symlinks
// Skip functions aren't even parseable
jsonlint: {
all: [
banana: {
options: {
disallowBlankTranslations: false
core: 'languages/i18n/',
api: 'includes/api/i18n/',
installer: 'includes/installer/i18n/'
stylelint: {
src: '{resources/src,mw-config}/**/*.{css,less}'
watch: {
files: [
tasks: 'test'
karma: {
options: {
proxies: karmaProxy,
files: [ {
pattern: wgServer + wgScriptPath + '/index.php?title=Special:JavaScriptTest/qunit/export',
watched: false,
included: true,
served: false
} ],
logLevel: 'DEBUG',
frameworks: [ 'qunit' ],
reporters: [ 'mocha' ],
singleRun: true,
autoWatch: false,
// Some tests in extensions don't yield for more than the default 10s (T89075)
browserNoActivityTimeout: 60 * 1000,
// Karma requires Same-Origin (or CORS) by default since v1.1.1
// for better stacktraces. But we load the first request from wgServer
crossOriginAttribute: false
main: {
browsers: [ 'Chrome' ]
chromium: {
browsers: [ 'Chromium' ]
firefox: {
browsers: [ 'Firefox' ]
copy: {
jsduck: {
src: 'resources/**/*',
dest: 'docs/js/modules',
expand: true,
rename: function ( dest, src ) {
return require( 'path' ).join( dest, src.replace( 'resources/', '' ) );
// Configure WebdriverIO task
webdriver: {
test: {
configFile: './tests/selenium/wdio.conf.js'
} );
grunt.registerTask( 'assert-mw-env', function () {
if ( !process.env.MW_SERVER ) {
grunt.log.error( 'Environment variable MW_SERVER must be set.\n' +
'Set this like $wgServer, e.g. "http://localhost"'
if ( !process.env.MW_SCRIPT_PATH ) {
grunt.log.error( 'Environment variable MW_SCRIPT_PATH must be set.\n' +
'Set this like $wgScriptPath, e.g. "/w"' );
return !!( process.env.MW_SERVER && process.env.MW_SCRIPT_PATH );
} );
grunt.registerTask( 'lint', [ 'eslint', 'banana', 'stylelint' ] );
grunt.registerTask( 'qunit', [ 'assert-mw-env', 'karma:main' ] );
grunt.registerTask( 'test', [ 'lint' ] );
grunt.registerTask( 'default', 'test' );
This diff is collapsed.
Installing MediaWiki
Starting with MediaWiki 1.2.0, it's possible to install and configure the wiki
"in-place", as long as you have the necessary prerequisites available.
Required software:
* Web server with PHP 7.0.0 or HHVM 3.18.5 or higher.
* A SQL server, the following types are supported
** MySQL 5.5.8 or higher
** PostgreSQL 9.2 or higher
** SQLite 3.3.7 or higher
** Oracle 9.0.1 or higher
** Microsoft SQL Server 2005 (9.00.1399)
MediaWiki is developed and tested mainly on Unix/Linux platforms, but should
work on Windows as well.
If your PHP is configured as a CGI plug-in rather than an Apache module you may
experience problems, as this configuration is not well tested.
Support for rendering mathematical formulas requires installing the Math extension,
Don't forget to check the RELEASE-NOTES file...
Additional documentation is available online, which may include more detailed
notes on particular operating systems and workarounds for difficult hosting
******************* WARNING *******************
******************* WARNING *******************
In-place web install
Decompress the MediaWiki installation archive either on your server, or on your
local machine and upload the directory tree. Rename it from "mediawiki-1.x.x" to
something nice, like "wiki", since it will be appearing in your URL,
ie. /wiki/index.php/Article.
| Note: If you plan to use a fancy URL-rewriting scheme to prettify your |
| URLs, such as, you should put the |
| files in a *different* directory from the virtual path where page names |
| will appear. It is common in this case to use w as the folder name and |
| /wiki/ as the virtual article path where your articles pretend to be. |
| |
| See: |
Hop into your browser and surf into the wiki directory. It'll direct you into
the config script. Fill out the form... remember you're probably not on an
encrypted connection.
Gaaah! :)
If all goes well, you should soon be told that it's set up your wiki database
and generated a configuration file. There is now a copy of "LocalSettings.php"
available to download from the installer. Download this now, there is not a
way (yet) to get it after you exit the installer. Place it in the main wiki
directory, and the wiki should now be working.
Once the wiki is set up, you should remove the mw-config directory (though it will
refuse to config again if the wiki is set up).
Don't forget that this is free software under development! Chances are good
there's a crucial step that hasn't made it into the documentation. You should
probably sign up for the MediaWiki developers' mailing list; you can ask for
help (please provide enough information to work with, and preferably be aware of
what you're doing!) and keep track of major changes to the software, including
performance improvements and security patches. (low traffic) (site admin support) (development)
== MediaWiki ==
MediaWiki is a free and open-source wiki software package written in PHP. It
serves as the platform for Wikipedia and the other Wikimedia projects, used
by hundreds of millions of people each month. MediaWiki is localised in over
350 languages and its reliability and robust feature set have earned it a large
and vibrant community of third-party users and developers.
MediaWiki is:
* feature-rich and extensible, both on-wiki and with hundreds of extensions;
* scalable and suitable for both small and large sites;
* simple to install, working on most hardware/software combinations; and
* available in your language.
For system requirements, installation, and upgrade details, see the files
* Ready to get started?
* Looking for the technical manual?
* Seeking help from a person?
* Looking to file a bug report or a feature request?
* Interested in helping out?
MediaWiki is the result of global collaboration and cooperation. The CREDITS
file lists technical contributors to the project. The COPYING file explains
MediaWiki's copyright and license (GNU General Public License, version 2 or
later). Many thanks to the Wikimedia community for testing and suggestions.
This diff is collapsed.
MediaWiki takes security very seriously. If you believe you have found a