MediaWiki  master
README
Go to the documentation of this file.
1 == MediaWiki ==
2 
3 MediaWiki is a free and open-source wiki software package written in PHP. It
4 serves as the platform for Wikipedia and the other Wikimedia projects, used
5 by hundreds of millions of people each month. MediaWiki is localised in over
6 350 languages and its reliability and robust feature set have earned it a large
7 and vibrant community of third-party users and developers.
8 
9 MediaWiki is:
10 
11 * feature-rich and extensible, both on-wiki and with hundreds of extensions;
12 * scalable and suitable for both small and large sites;
13 * simple to install, working on most hardware/software combinations; and
14 * available in your language.
15 
17 RELEASE-NOTES, INSTALL, and UPGRADE.
18 
19 * Ready to get started?
20 ** https://www.mediawiki.org/wiki/Download
21 * Looking for the technical manual?
22 ** https://www.mediawiki.org/wiki/Manual:Contents
23 * Seeking help from a person?
24 ** https://www.mediawiki.org/wiki/Communication
25 * Looking to file a bug report or a feature request?
26 ** https://bugs.mediawiki.org/
27 * Interested in helping out?
28 ** https://www.mediawiki.org/wiki/How_to_contribute
29 
30 MediaWiki is the result of global collaboration and cooperation. The CREDITS
31 file lists technical contributors to the project. The COPYING file explains
32 MediaWiki's copyright and license (GNU General Public License, version 2 or
33 later). Many thanks to the Wikimedia community for testing and suggestions.
#define the
table suitable for use with IDatabase::select()
and *available in your language For system and upgrade details
Definition: README:16
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable from
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
database rows
Definition: globals.txt:10
null for the local wiki Added in
Definition: hooks.txt:1435
and *available in your language For system requirements
Definition: README:16
The MediaWiki class is the helper class for the index.php entry point.
Definition: MediaWiki.php:28
processing should stop and the error should be shown to the user if you wanted to authenticate users to a custom system(LDAP, another PHP program, whatever)
when a variable name is used in a it is silently declared as a new local masking the global
Definition: design.txt:93
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and local administrators to define code that will be run at certain points in the mainline and to modify the data run by that mainline code Hooks can keep mainline code simple
Definition: hooks.txt:23
Prior to maintenance scripts were a hodgepodge of code that had no cohesion or formal method of action Beginning maintenance scripts have been cleaned up to use a unified class Directory structure How to run a script How to write your own DIRECTORY STRUCTURE The maintenance directory of a MediaWiki installation contains several all of which have unique purposes HOW TO RUN A SCRIPT Ridiculously just call php someScript php that s in the top level maintenance directory if not default wiki
Definition: maintenance.txt:1
I won t presume to tell you how to I m just describing the methods I chose to use for myself If you do choose to follow these it will probably be easier for you to collaborate with others on the project
Definition: design.txt:70
</td >< td > this can then be imported into another wiki running MediaWiki software
Some quick notes on the file repository architecture Functionality is
Definition: README:3
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:93
and *available in your language For system and upgrade see the files RELEASE and UPGRADE *Ready to get started ** https
Definition: README:16
and(b) You must cause any modified files to carry prominent notices stating that You changed the files
Some information about database access in MediaWiki By Tim January Database layout For information about the MediaWiki database such as a description of the tables and their please see
Definition: database.txt:2
The various manual files contains special mappings not included in the unihan and phrases not included in the SCIM package symme_supp manual
Definition: README:2
This directory hold several benchmarking scripts used as a proof of speed or to track PHP performances over time To get somehow accurate result
Definition: README:4
and *available in your language For system installation
Definition: README:16
*simple to working on most hardware software combinations
Definition: README:13
Some quick notes on the file repository architecture Functionality as driven by data model *The repository object stores configuration information about a file storage method *The file object is a process local cache of information about a particular file Thus the file object is the primary public entry point for obtaining information about files
Definition: README:3
*simple to install
Definition: README:13
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing lists
null for the local wiki Added should default to null in handler for backwards compatibility add a value to it if you want to add a cookie that have to vary cache options can modify prev or next refreshes the diff cache allow viewing deleted revs difference engine object to be used for diff source
Definition: hooks.txt:1486
and *available in your language For system and upgrade see the files RELEASE INSTALL
Definition: README:16
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 on
Definition: hooks.txt:86
and *available in your language For system and upgrade see the files RELEASE NOTES
Definition: README:16
this hook is for auditing only etc instead of letting the login form give the generic error message that the account does not exist For when the account has been renamed or deleted or an array to pass a message key and parameters create2 Corresponds to logging log_action database field and which is displayed in the UI similar to $comment this hook should only be used to add variables that depend on the current page request
Definition: hooks.txt:1994
*scalable and suitable for both small and large sites
Definition: README:12
Apache License January AND DISTRIBUTION Definitions License shall mean the terms and conditions for and distribution as defined by Sections through of this document Licensor shall mean the copyright owner or entity authorized by the copyright owner that is granting the License Legal Entity shall mean the union of the acting entity and all other entities that control are controlled by or are under common control with that entity For the purposes of this definition control direct or to cause the direction or management of such whether by contract or including but not limited to software source documentation and configuration files Object form shall mean any form resulting from mechanical transformation or translation of a Source including but not limited to compiled object generated and conversions to other media types Work shall mean the work of whether in Source or Object made available under the as indicated by a copyright notice that is included in or attached to the whether in Source or Object that is based or other modifications as a an original work of authorship For the purposes of this Derivative Works shall not include works that remain separable or merely the Work and Derivative Works thereof Contribution shall mean any work of including the original version of the Work and any modifications or additions to that Work or Derivative Works that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner For the purposes of this submitted means any form of or written communication sent to the Licensor or its including but not limited to communication on electronic mailing source code control and issue tracking systems that are managed or on behalf the Licensor for the purpose of discussing and improving the but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as Not a Contribution Contributor shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work Grant of Copyright License Subject to the terms and conditions of this each Contributor hereby grants to You a non no royalty free