Last updated February 23, 2013 00:22, by kradm

Migration Test Project 1 Wiki

text Italic text. Use single quotation marks (').

 text 	 Bold text.
 text  	 Escaped markup text. For example: Array<String>
 http://link  	 External hyperlink.
 text  	 External hyperlink where link text is different from hyperlink. Use a space before the text.
 Wiki Page  	 Hyperlink to a wiki page.
 text  	 Hyperlink to a Wiki page where link text is different from hyperlink. Use | before the text.
 [image]  	 Inline image. Use | to separate options, which include thumb for an 80x80 pixel thumbnail; 99px to size the image to 99 by 99 pixels square; 66x99px to size the image in both dimensions; left or right to float the image left or right; box to created a boxed image.
 * 	 Bulleted list. * must be in first column. Use more asterisks (**, ***) for deeper indentations.
 # 	 Numbered list. # must be in first column. Use more hash marks (##, ###) for deeper indentations.
 =, ==. ===  	 Headings. Equals sign (=) must be in first column. More equals signs mean smaller headings.
 ---- 	 Horizontal ruler
  text 	 Preformatted text (space in first column).
 :def 	 Define 'term' with 'def'.
 {|- border="1"
 ! Heading 1
 ! Heading 2
 | cell 1
 | cell 2
 |- valign="top"
 | single line
 | two lines 
of content |} Table with border. Markup must be in first column for all table elements. |- is a row, | is a cell, ! is a heading cell.


From Wikipedia, the free encyclopedia Jump to: navigation, search "MediaWiki namespace" redirects here. For help regarding the "MediaWiki" namespace on Wikipedia, see Help:MediaWiki namespace. For general information about Wikipedia namespaces, see Wikipedia:Namespace. "Talk page" and "MediaWiki talk page" redirect here. For talk page etiquette and general information about talk pages on Wikipedia, see Wikipedia:Talk page guidelines. For help regarding talk pages on Wikipedia, see Help:Talk page. Not to be confused with Wikimedia.

MediaWiki Screenshot [show] Developer(s)


Wikimedia Foundation, Tim Starling (release manager) Initial release 25 January 2002

Stable release §1.20.2 [edit] (December 4, 2012; 2 months ago) [±] Preview release None [±] Written in PHP

Operating system Cross-platform Size ~16.5 MB

Available in over 300 languages

Type Wiki License GPLv2+


MediaWiki is a free wiki software application. Developed by the Wikimedia Foundation and others, it is used to run all of the projects hosted by the Foundation, including Wikipedia, Wiktionary and Commons. Numerous other wikis around the world also use it to power their websites. It is written in the PHP programming language and uses a backend database. The software's code is structured functionally.


The first version of the software was deployed to serve the needs of the free content Wikipedia encyclopedia in 2002.[1] It has been deployed since then by many companies as a content management system for internal knowledge management.[2] Notably, Novell uses it to operate several of its high-traffic websites.[3][4][5] Thousands of websites use MediaWiki.[6] Some educators have also assigned students to use MediaWiki for collaborative group projects.[7]


The software is optimized to correctly and efficiently handle projects of all sizes, including the largest wikis, which can have terabytes of content and hundreds of thousands of hits per second.[8] Because Wikipedia is one of the world's largest websites, achieving scalability through multiple layers of caching and database replication has also been a major concern for developers. Wikipedia and other Wikimedia projects continue to define a large part of the requirement set for MediaWiki.


The software is highly customizable, with more than 700 configuration settings[9] and more than 1,800 extensions available for enabling various features to be added or changed.[10] Only on Wikipedia, more than 1000 automated and semi-automated bots and other tools have been developed to assist in editing MediaWiki sites.[11]


  [hide]  1 License
 2 Development
 3 History 3.1 Version history

4 Sites using MediaWiki

 5 Key features 5.1 Installation and configuration
 5.2 Markup
 5.3 Editing interface
 5.4 Application Programming Interface
 5.5 Rich content
 5.6 Tracking edits
 5.7 Navigation
 5.8 Content organization 5.8.1 Page tabs and associated pages
 5.8.2 Namespaces
 5.8.3 Category Tags
 5.8.4 Subpages

5.9 Customization

 5.10 Templates
 5.11 Groups and restriction of access
 5.12 Extensibility

6 Extensions 6.1 Resources to developers

 6.2 For parser functions
 6.3 For footnotes and academic-related display
 6.4 Integration
 6.5 Combating linkspam
 6.6 Searches and queries

7 Database

 8 Performance and storage
 9 Limitations
 10 Security
 11 Developer community
 12 Support
 13 Comparison to other online collaboration software
 14 See also
 15 References
 16 External links

[edit] License


MediaWiki is free and open source software and is distributed under the terms of the GNU General Public License version 2 or any later version while its documentation is released under the Creative Commons BY-SA 3.0 license and partly in the public domain.[12] Specifically, the manuals and other content at are Creative Commons-licensed, while the set of help pages intended to be freely copied into fresh wiki installations and/or distributed with MediaWiki software is public domain. This was done to eliminate legal issues arising from the help pages being imported into wikis with licenses that are incompatible with the Creative Commons license.[13] MediaWiki development has generally favored the use of open-source media formats.[14]


[edit] Development


MediaWiki has an active volunteer community for development and maintenance. Users who have made meaningful contributions to the project by submitting patches are generally, upon request, granted access to commit revisions to the project's Apache Subversion and now Git/Gerrit repository.[15] There is also a small group of paid programmers who primarily develop projects for the Wikimedia Foundation. Wikimedia participates in the Google Summer of Code by facilitating the assignment of mentors to students wishing to work on MediaWiki core and extension projects.[16] As of early November 2012, there were about two hundred developers who had committed changes to the MediaWiki core or extensions within the past year.[17] Major MediaWiki releases are generated approximately every three to eight months by taking snapshots of the development trunk, which is kept continuously in a runnable state;[18] minor releases, or point releases, are issued as needed to correct bugs (especially security problems).


MediaWiki has a public bug tracker,, which runs Bugzilla. The site is also used for feature and enhancements requests.


[edit] History Magnus Manske in 2012 When Wikipedia was first launched in January 2001, it ran on the existing wiki software UseModWiki, which was written in Perl and stored all wiki pages in text files. This software soon proved limiting, both in its functionality and its performance. In mid-2001, Magnus Manske, a developer and student at the University of Cologne, who was also a Wikipedia editor, began working on new software that would replace UseModWiki, specifically for use by Wikipedia. This software was written in PHP and stored all its information in a MySQL database. It launched on the English Wikipedia in January 2002, and was gradually deployed on all the Wikipedia language sites of that time. This software was referred to as "the PHP script" and as "phase II", with the name "phase I" retroactively given to the use of UseModWiki.


Increasing usage soon caused load problems again, and soon afterward, another rewrite of the software began, done by Lee Daniel Crocker, which was first known as "phase III". This new software was also written in PHP with a MySQL backend, and kept the basic interface of the phase II software, but was meant to be more scalable. It went live on Wikipedia in July 2002.


The Wikimedia Foundation was announced on June 20, 2003, and in July, Wikipedia contributor Daniel Mayer suggested the name "MediaWiki" for the software, as a play on "Wikimedia".[19] The name was gradually phased in beginning in August 2003. The name has frequently caused confusion due to its (intentional) similarity to the "Wikimedia" name (which itself is similar to "Wikipedia").[20]


The product logo was created by Erik Möller using a flower photograph taken by Florence Nibart-Devouard, and was originally submitted to an international logo contest for a new Wikipedia logo held in mid-2003.[21] The logo came in third place, and was chosen to represent MediaWiki instead of Wikipedia, with the second place logo used for the Wikimedia Foundation.[22] The double square brackets symbolize the syntax MediaWiki uses for creating hyperlinks to other wiki pages, and the sunflower represents the diversity of content on Wikipedia, the constant growth and also the wildness.[23]


Later, Brion Vibber, the Chief Technical Officer of the Wikimedia Foundation,[24] took up the role of release manager and most active developer.[1][25]


Major milestones in MediaWiki's development have included the categorization system, added in 2004; parser functions, added in 2006; flagged revisions, added in 2008;[26] and the "ResourceLoader", a delivery system for CSS and JavaScript, added in 2011.[27]


[edit] Version history


Main article: MediaWiki version history


The first version of MediaWiki, 1.1, was released in December 2003. The current stable version of MediaWiki, 1.20.2, was released in December 2012.


[edit] Sites using MediaWiki


See also: Category:MediaWiki websites

Wikia also uses MediaWiki Software. MediaWiki's most famous use has been in Wikipedia and, to a lesser degree, Wikimedia's other projects. But, MediaWiki has also been used to power tens of thousands of other wikis, both public and private.


A number of alternative wiki encyclopedias to Wikipedia run on MediaWiki, including Citizendium, Conservapedia,[28] Metapedia[29] and Scholarpedia.


Wikia, a wiki farm, runs on MediaWiki. Among the notable wikis that Wikia hosts or has hosted are LyricWiki, Memory Alpha, Uncyclopedia, WoWWiki and Wookieepedia.


Other popular public wikis that run on MediaWiki include wikiHow,, and WikiLeaks.


MediaWiki is also used internally by a large number of companies, including Novell and Intel.[30]


Notable usages of MediaWiki within governments include Intellipedia, used by the United States Intelligence Community, and Diplopedia, used by the United States Department of State. United Nations agencies such as the U.N. Development Programme and INSTRAW chose to implement their wikis using MediaWiki because "this software runs Wikipedia and is therefore guaranteed to be thoroughly tested, will continue to be developed well into the future, and future technicians on these wikis will be more likely to have exposure to MediaWiki than any other wiki software."[31]


[edit] Key features


MediaWiki provides a rich core feature set and a mechanism to attach extensions to provide additional functionality. Due to the strong emphasis on multilingualism in the Wikimedia projects, internationalization and localization has received significant attention by developers. The user interface has been fully or partially translated into more than 300 languages,[32] and can be further customized by site administrators (the entire interface is editable through the wiki).


[edit] Installation and configuration


Installation of MediaWiki requires that the user have administrative privileges on a server running both PHP and a compatible type of SQL database. Some users find that setting up a virtual host is helpful if the majority of one's site runs under a framework (such as Zope or Ruby on Rails) that is largely incompatible with MediaWiki.[33] Cloud hosting can enable a user to dispense with the task of building a new server by hand.[34]


An installation PHP script is accessed via a web browser to initialize the wiki's settings. It prompts the user for a minimal set of required parameters, leaving further changes, such as enabling uploads,[35] adding a site logo,[36] and installing extensions, to be made by modifying configuration settings[37] contained in a file called LocalSettings.php.[38] Some aspects of MediaWiki can be configured through special pages or by editing certain pages; for instance, abuse filters can be configured through a special page,[39] and certain gadgets can be added by creating JavaScript pages in the MediaWiki namespace.[40] The MediaWiki community publishes a comprehensive installation guide.[41]


[edit] Markup


One of the earliest differences between MediaWiki (and its predecessor, UseModWiki) and other wiki engines was the use of "free links" instead of CamelCase. When MediaWiki was created, it was typical for wikis to require text like "WorldWideWeb" to create a link to a page about the World Wide Web: links in MediaWiki, on the other hand, are created by surrounding words with double square brackets, and any spaces between them are left intact, e.g. World Wide Web. This change was logical for the purpose of creating an encyclopedia, where accuracy in titles is important.


MediaWiki uses an extensible[42] lightweight wiki markup designed to be easier to use and learn than HTML. Tools exist for converting content such as tables between MediaWiki markup and HTML.[43] Efforts have been made to create a MediaWiki markup spec, but a consensus seems to have been reached that Wikicode requires context-sensitive grammar rules.[44][45] The following side-by-side comparison illustrates the differences between wiki markup and HTML:


MediaWiki syntax Equivalent HTML Rendered output


"Take some more tea," the March Hare said to Alice, very earnestly. "I've had nothing yet," Alice replied in an offended tone: "so I can't take more." "You mean you can't take less," said the Hatter: "it's very easy to take more than nothing."

"Take some more tea," the March Hare said to Alice, very earnestly.

"I've had nothing yet," Alice replied in an offended tone: "so I can't take more."

"You mean you can't take less," said the Hatter: "it's very easy to take more than nothing."

"Take some more tea," the March Hare said to Alice, very earnestly. "I've had nothing yet," Alice replied in an offended tone: "so I can't take more." "You mean you can't take less," said the Hatter: "it's very easy to take more than nothing." (Quotation above from Alice's Adventures in Wonderland by Lewis Carroll) [edit] Editing interface

Editing interface of MediaWiki 1.9, showing the edit toolbar and some examples of wiki syntax. MediaWiki's page-editing tools have sometimes been described as somewhat challenging to learn.[46] A survey of students assigned to use a MediaWiki-based wiki found that when they were asked an open question about main problems with the wiki, 24% cited technical problems with formatting, e.g. "Couldn't figure out how to get an image in. Can't figure out how to show a link with words; it inserts a number."[47]


To make editing long pages easier, MediaWiki allows the editing of a subsection of a page (as identified by its header). A user can also indicate whether or not an edit is minor. Correcting spelling, grammar or punctuation are examples of minor edits, whereas adding paragraphs of new text is an example of a non-minor edit.


Sometimes while one user is editing, a second user saves an edit to the same part of the page. Then, when the first user attempts to save the page, an edit conflict occurs. The second user is then given an opportunity to merge his content into the page as it now exists following the first user's page save. An optional extension gives selected user groups priority when edit conflicts occur.[48]


MediaWiki has the user interface in different languages. A language for the wiki content itself can also be set, to be sent in the "Content-Language" HTTP header and "lang" HTML attribute.


In MediaWiki 1.17 and up the classic editing toolbar is no longer included.


[edit] Application Programming Interface


MediaWiki has an extensible Application Programming Interface that provides direct, high-level access to the data contained in the MediaWiki databases. Client programs can use the API to login, get data, and post changes. The API supports thin web-based JavaScript clients and end-user applications (such as vandal-fighting tools). The API can be accessed by the backend of another web site.[49] An extensive Python bot library, Pywikipediabot,[50] and a popular semi-automated tool called AutoWikiBrowser, also interface with the API.[51] The API is accessed via URLs such as In this case, the query would be asking Wikipedia for information relating to the last 10 edits to the site. One of the perceived advantages of the API is its language independence; it listens for HTTP connections from clients and can send a response in a variety of formats, such as XML, serialized PHP, YAML, or JSON.[52] Client code has been developed to provide layers of abstraction to the API.[53]


[edit] Rich content Images can be arranged in galleries, a feature that is used extensively for Wikimedia's media archive, Wikimedia Commons. MediaWiki supports rich content generated through specialized syntax. For example, the software comes with optional support for rendering mathematical formulas using LaTeX and a special parser written in OCaml. Similar functionality for other content, ranging from graphical timelines over mathematical plotting and musical scores to Egyptian hieroglyphs, is available in the form of extensions and also aesthetic sense has improved considerably.


The software has become more powerful at dealing with a wide variety of uploaded media files. Its richest functionality is in the area of images, where image galleries and thumbnails can be generated with relative ease. There is also support for Exif metadata. The use of MediaWiki to operate the Wikimedia Commons, one of the largest free content media archives, has driven the need for further functionality in this area.


Because any WYSIWYG editor would have to know wikitext grammar, and no full grammar for wikitext exists, MediaWiki currently provides no native WYSIWYG support.[54] It does come with a customizable graphical toolbar for simplifying the process of learning the wiki syntax.[55] Various extensions exist for handling WYSIWYG editing to different degrees,[56] some using variations of the popular CKEditor. Wikia, a popular wiki farm, uses a WYSIWYG extension that, being designed to be a modal editor, allows the user to flip back and forth between WYSIWYG and WikiText and Preview modes in a single editing session.[citation needed] MediaWiki also has an interface to allow the transparent use of external editors for uploaded files and wiki pages.[57]


[edit] Tracking edits


Among the features of MediaWiki to assist in tracking edits is a Recent Changes feature that provides a list of recent edits to the wiki. This list contains basic information about those edits such as the editing user, the edit summary, the page edited, as well as any tags (e.g. "possible malware link")[58] added by customizable abuse filters and other extensions to aid in combating unhelpful edits.[59] On more active wikis, so many edits occur that it is hard to track Recent Changes manually. Anti-vandal software, including user-assisted tools[60] and fully automated bots for example ClueBot[61] (now ClueBot NG[62]) are sometimes employed on such wikis to process Recent Changes items. Server load can be reduced by sending a continuous feed of Recent Changes to an IRC channel that these tools can monitor, eliminating their need to send requests for a refreshed Recent Changes feed to the API.[63][64]


Another important tool is watchlisting. Each logged-in user has a watchlist to which he can add whatever pages he or she wishes. When an edit is made to one of those pages, a summary of that edit appears on the watchlist the next time it is refreshed.[65] As with the recent changes page, recent edits that appear on the watchlist contain clickable links for easy review of the article history and specific changes made.


There is also capability to review all edits made by any particular user. In this way, if an edit is identified as problematic, it is possible to check the user's other edits for issues.


MediaWiki allows one to link to specific versions of articles. This has been useful to the scientific community, in that expert peer reviewers could analyse articles, improve them and provide links to the trusted version of that article.[66]


[edit] Navigation


Navigation through the wiki is largely through internal wikilinks.


These implement page existence detection, in which a link is colored blue if the target page exists on the local wiki and red if it does not. When a user clicks on a red link, he is prompted to create an article with that title. Page existence detection makes it practical for users to create "wikified" articles — that is, articles containing links to other pertinent subjects — without those other articles being yet in existence.


The red/blue distinction alerts:

 readers lacking an interest in creating new articles of broken links that it would be fruitless for them to click upon
 editors interested in creating new articles of what topics their efforts might be usefully applied to.

Interwiki links function much the same way as namespaces. A set of interwiki prefixes can be configured to cause, for instance, a page title of wikiquote:Jimbo Wales to direct the user to the Jimbo Wales article on Wikiquote.[67] Unlike internal wikilinks, interwiki links lack page existence detection functionality, and accordingly there is no way to tell whether a blue interwiki link is broken or not.


[edit] Content organization


[edit] Page tabs and associated pages

MediaWiki page tabs, using the "Vector" skin. The red coloration of the "discussion" tab indicates that the article does not yet have a talk page. As with any other red wikilink, clicking on it prompts the user to create the page.


Page tabs are displayed at the top of pages. These tabs allow users to perform actions or view pages that are related to the current page. The available default actions include viewing, editing, and discussing the current page. The specific tabs displayed depend on whether or not the user is logged into the wiki and whether the user has sysop privileges on the wiki. For instance, the ability to move a page or add it to one's watchlist is usually restricted to logged-in users. The site administrator can add or remove tabs by using JavaScript or installing extensions.[68]


Each page has an associated history page from which the user can access every version of the page that has ever existed and generate diffs between two versions of his choice. Users' contributions are displayed not only here, but also via a "user contributions" option on a sidebar. Carl Challborn & Teresa Reimann note that "While this feature may be a slight deviation from the collaborative, ‘ego-less’ spirit of wiki purists, it can be very useful for educators who need to assess the contribution and participation of individual student users."[69]


[edit] Namespaces


"Talk page" redirects here, for talk pages on Wikipedia see Help:Using talk pages


MediaWiki provides many features beyond hyperlinks for structuring content. One of the earliest features is namespaces. One of Wikipedia's earliest problems had been the separation of encyclopedic content from pages pertaining to maintenance and communal discussion, as well as personal pages about encyclopedia editors. Namespaces are prefixes before a page title (such as "User:" or "Talk:") that serve as descriptors for the page's purpose and allow multiple pages with different functions to exist under the same title. For instance, a page titled "The Terminator", in the default namespace, could describe the 1984 movie starring Arnold Schwarzenegger, while a page titled "" could be a profile describing a user who chooses this name as a pseudonym. More commonly, each page and each namespace has an associated "Talk:" page, which can be used to discuss its contents, such as "User talk:" or "Template talk:". The purpose of having discussion pages is to allow content to be separated from discussion surrounding the content.[70][71]


Namespaces can be viewed as folders that separate different basic types of information or functionality. Custom namespaces can be added by the site administrators. There are 16 namespaces by default for content, with 2 "pseudo-namespaces" used for dynamically generated "Special:" pages and links to media files. Each namespace on MediaWiki is numbered: content page namespaces have even numbers and their associated talk page namespaces have odd numbers.[72]


[edit] Category Tags


Users can create new categories and add pages and files to those categories by appending one or more category tags to the content text. Adding these tags creates links at the bottom of the page that take the reader to the list of all pages in that category, making it easy to browse related articles.[73] The use of categorization to organize content has been described as a combination of:

 Collaborative tagging systems like and
 Hierarchical classifications like the Dewey Decimal Classification.[74]

[edit] Customization Users can configure custom JavaScript that is executed on every pageview. This has led to JavaScript tools that users can "install", the "navigation popup" tool shown here displays a small preview of an article when hovering over a link title. If the feature is enabled, users can customize their stylesheets and configure client-side JavaScript to be executed with every pageview. On Wikipedia, this has led to a large number of additional tools and helpers developed through the wiki and shared among users. For instance, Lupin's navigation popups is a custom JavaScript tool that shows previews of articles when the user hovers over links, and also provides shortcuts for common maintenance tasks.[75] Another example is wikEd, a full-featured MediaWiki-integrated text editor that provides syntax highlighting and search and replace functions.[40]

A screenshot of a wiki using MediaWiki with a customized skin The entire MediaWiki user interface can be edited through the wiki itself by users with the necessary permissions (typically so-called "administrators"). This is done through a special namespace with the prefix "MediaWiki:", where each page title identifies a particular user interface message. Using an extension,[76] it is also possible for a user to create personal scripts, and to choose whether certain sitewide scripts should apply to him by toggling the appropriate options in the user preferences page.


[edit] Templates


The "MediaWiki:" namespace was also originally used for creating custom text blocks that could then be dynamically loaded into other pages using a special syntax. This content was later moved into its own namespace, "Template:".


Templates are text blocks that can be dynamically loaded inside another page whenever that page is requested. The template is a special link in double curly brackets (for example ""), which calls the template (in this case located at Template:Disputed) to load in place of the template. Templates support parameters, so that parts of the text can be substituted for each specific use case. A related method, called template substitution (called by adding subst: at the beginning of a template link) inserts (like a copy and paste operation) the contents of the template into the target page, instead of loading the template contents dynamically whenever the page is loaded. This can lead to inconsistency when using templates, but may be useful in certain cases, and in most cases requires fewer server resources (the actual amount of savings can vary depending on wiki configuration and the complexity of the template).


Templates have found many different uses. Templates enable users to create complex table layouts that are used consistently across multiple pages, and where only the content of the tables gets inserted using template parameters. Templates are often used to identify problems with a Wikipedia article by putting a template in the article. This template then outputs a graphical box stating that the article content is disputed or in need of some other attention, and also categorize it so that articles of this nature can be located. Templates are also used on user pages to send users standard messages welcoming them to the site,[77] giving them awards for outstanding contributions,[78][79] warning them when their behavior is considered inappropriate,[80] notifying them when they are blocked from editing,[81] and so on.


[edit] Groups and restriction of access


MediaWiki offers flexibility in creating and defining user groups. For instance, it would be possible to create an arbitrary "ninja" group that can block users and delete pages, and whose edits are hidden by default in the recent changes log. It is also possible to set up a group of "autoconfirmed" users that one becomes a member of after making a certain number of edits and waiting a certain number of days.[82] Some groups that are enabled by default are bureaucrats and sysops. Bureaucrats have power to change other users' rights. Sysops have power over page protection and deletion and the blocking of users from editing. MediaWiki's available controls on editing rights have been deemed sufficient for publishing and maintaining important documents such as a manual of standard operating procedures in a hospital.[83]


When a page consists only of useless content, there are several ways to remove that content. The simplest way, available to all users, is simply to blank the page. However, this interferes with page existence detection, unless an extension is installed to treat blanked pages as though they were nonexistent.[84] Blanking also leaves the content accessible through the history page, an outcome that, while potentially increasing transparency by allowing non-sysops to easily review the content removal decision for appropriateness, might be unacceptable or even unlawful[85] in some cases. Another option is for a sysop to delete the page, and thereby prevent it from being viewed by non-sysops. Another level of deletion, called RevisionDelete, can be used by a group (e.g. "Oversighters") to prevent a page from being viewed by non-members of that group.[86] It is also possible, using certain extensions, to remove content from being viewed through any of the normal channels on the wiki,[87] or even to completely delete revisions from the database.[88]


MediaWiki comes with a basic set of features related to restricting access, but its original and ongoing design is driven by functions that largely relate to content, not content segregation. As a result with minimal exceptions (related to specific tools and their related "Special" pages), page access control has never been a high priority in core development and developers have stated that users requiring secure user access and authorisation controls should not rely on MediaWiki, since it was never designed for these kinds of situations. For instance, it is extremely difficult to create a wiki where only certain users can read and access some pages.[89] Here, wiki engines like TWiki, MoinMoin and WikkaWiki provide more flexibility by supporting advanced security mechanisms like access control lists.


[edit] Extensibility


The MediaWiki codebase contains various "hooks" using callback functions to add additional PHP code in an extensible way. This allows developers to write extensions without necessarily needing to modify the core or having to submit their code for review. Installing an extension typically consists of adding a line to the configuration file, though in some cases additional changes such as database updates or core patches are required.


Five main extension points were created to allow developers to add features and functionalities to MediaWiki. Hooks are run every time a certain event happens; for instance, the ArticleSaveComplete hook occurs after a save article request has been processed.[90] This can be used, for example, by an extension that notifies selected users whenever a page edit occurs on the wiki from new or anonymous users.[91] New tags can be created to process data with opening and closing tags ().[92] Parser functions can be used to create a new command ().[93] New special pages can be created to perform a specific function. These pages are dynamically generated. For example, a special page might show all pages that have one or more links to an external site or it might create a form providing user submitted feedback.[94] Skins allow users to customize the look and feel of MediaWiki.[95] A minor extension point allows the use of Amazon S3 to host image files.[96]


[edit] Extensions


Main article: MediaWiki extension A form to edit a page, using the Semantic Forms extension [edit] Resources to developers


MediaWiki can be made more advanced and useful for various purposes through its extensions. These extensions vary greatly in complexity.


The Wikimedia Foundation operates a Git server where many extensions host their repository. Most of them also have a documentation page on the MediaWiki website.


Some other sites also known for development of — or support for — extensions are, which maintains an extension matrix;[10] and Google Code.[97]


Some MediaWiki developers, especially new ones, are granted access to commit changes to extensions only, rather than the entire codebase.


MediaWiki code review is itself facilitated through a MediaWiki extension.[98]


Since version 1.16, MediaWiki also used the jQuery library.[99]


[edit] For parser functions


Among the most popular extensions is a parser function extension, ParserFunctions, that allows different content to be rendered based on the result of conditional statements.[100] These conditional statements can perform functions such as evaluating whether a parameter is empty, comparing strings, evaluating mathematical expressions, and returning one of two values depending on whether a page exists. It was designed as a replacement for a notoriously inefficient template called .[101] Schindler recounts the history of the ParserFunctions extension as follows:[26]

In 2006 some Wikipedians discovered that through an intricate and complicated interplay of templating features and CSS they could create conditional wiki text, i.e. text that was displayed if a template parameter had a specific value. This included repeated calls of templates within templates, which bogged down the performance of the whole system. The developers faced the choice of either disallowing the spreading of an obviously desired feature by detecting such usage and explicitly disallowing it within the software, or offer an efficient alternative. The latter was done by Tim Starling, who announced the introduction of parser functions, wiki text that calls functions implemented in the underlying software.

 At first, only conditional text and the computation of simple mathematical expressions was implemented, but this already increased the possibilities for wiki editors enormously. With time further parser functions were introduced, finally leading to a framework that allowed the simple writing of extension function to add arbitrary functionalities, like e.g. geo-coding services or widgets. This time the developers were clearly reacting to the demand of the community, being forced either to fight the solution of the issue that the community had (i.e. conditional text), or offer an improved technical implementation to replace the previous practice and achieve an overall better performance.

Another parser functions extension, StringFunctions, was developed to allow evaluation of string length, string position, and so on. Wikimedia communities, having created awkward workarounds to accomplish the same functionality,[102] clamored for it to be enabled on their projects.[103] Much of its functionality was eventually integrated into the ParserFunctions extension,[104] albeit disabled by default and accompanied by a warning from Tim Starling that enabling string functions would allow users "to implement their own parsers in the ugliest, most inefficient programming language known to man: MediaWiki wikitext with ParserFunctions."[105]


[edit] For footnotes and academic-related display


Another very popular extension is a citation extension that enable footnotes to be added to pages using inline references.[106] This extension has, however, been criticized for being difficult to use and requiring the user to memorize complex syntax. A tool called ProveIt was proposed as a replacement.[107] A gadget called RefToolbar has also been created to make it easier to create citations using common templates. MediaWiki has some extensions that are well-suited for academia, such as mathematics extensions[108] and an extension that allows molecules to be rendered in 3D.[109]


[edit] Integration


A generic Widgets framework has been created that allows MediaWiki to integrate with virtually anything. Other examples of extensions that could improve a wiki are category suggestion extensions[110] and extensions for inclusion of Flash Videos,[111] YouTube videos,[112] and RSS feeds.[113] An extension to integrate with Facebook is forthcoming.[114] Metavid, a site that archives video footage of the U.S. Senate and House floor proceedings, was created using code extending MediaWiki into the domain of collaborative video authoring.[115] One extension, Viskimap, makes use of graphic organizers to visualize the relationships between content pages, so that students can easily get an understanding of the content elements and their relations, as they navigate through the wiki pages.[116]

Project Features

Project Links

About this Project

Migration Test Project 1 was started in February 2013, is owned by kradm, and has 3 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
Please Confirm