Essai

De GrandTerrier

Révision datée du 28 avril 2023 à 11:25 par GdTerrier (discussion | contributions) (Page créée avec « <languages/> {{TOCright}} {{Hubs|none|dev=y}} <translate> <!--T:1--> '''This is a high-level overview of MediaWiki development''', including links to the key documents, resources and tools available to MediaWiki developers. It is written '''for skilled LAMP developers who have experience using MediaWiki'''. </translate> * <translate><!--T:62--> If you want to ''use'' Wikimedia web APIs, visit [<tvar name=url>https://developer.wikime... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

<languages/> Modèle:TOCright Modèle:Hubs

<translate> This is a high-level overview of MediaWiki development, including links to the key documents, resources and tools available to MediaWiki developers. It is written for skilled LAMP developers who have experience using MediaWiki. </translate>

  • <translate> If you want to use Wikimedia web APIs, visit [<tvar name=url>https://developer.wikimedia.org/use-content/</tvar> the Developer Portal].</translate>
  • <translate> If you want to contribute to developing Wikimedia software, see <tvar name=1>Modèle:Ll</tvar>.</translate>
  • <translate> For an introductory guide to developing MediaWiki and MediaWiki extensions, read <tvar name=1>Modèle:Ll</tvar>.</translate>
  • <translate> If you want to collaborate with other third-party MediaWiki users, the <tvar name=1>Modèle:Ll</tvar> (MWStake) is a MediaWiki [[<tvar name=2>Special:MyLanguage/Groups</tvar>|user group]] consisting of MediaWiki developers, system administrators, users, consultants, and hosting providers.</translate>

<translate>

Overview

MediaWiki is the software that powers Wikipedia, its sister projects and thousands of wikis all over the world. </translate>

<translate> MediaWiki is written in the [<tvar name=url>https://php.net</tvar> PHP] programming language.[1]</translate> <translate> It uses jQuery as the client JavaScript library.</translate>

<translate> MediaWiki is primarily written for the LAMP platform[2] and runs on most operating systems.</translate> <translate> MediaWiki primarily uses the MySQL and MariaDB database servers.[3]</translate>

<translate> Development happens in an open source style[4], is largely coordinated online, and supported by the Wikimedia Foundation, though volunteer community developers play a huge part as well.

  • Development discussion happens on various [[<tvar name=1>Special:MyLanguage/Mailing lists</tvar>|mailing lists]] and [[<tvar name=2>Special:MyLanguage/MediaWiki on IRC</tvar>|IRC channels]].</translate> <translate> The main developer list is <tvar name=1>wikitech-l</tvar>. The main developer IRC channel is <tvar name=2>Modèle:Irc</tvar>.</translate>

<translate>

  • Source code is managed using the Git version control system.</translate>[5]

<translate>

  • Code review for most projects is performed on <tvar name=2>Modèle:Ll</tvar>. [[<tvar name=1>Gerrit/Tutorial</tvar>|Follow this tutorial]] to set up Git and Gerrit in order to submit patches.</translate>

<translate>

  • Bug reports and tasks for most projects are managed on <tvar name=1>Modèle:Ll</tvar>.</translate>

<translate>

  • Developers extending or interfacing with MediaWiki (instead of working on the core code) have several convenient extension points, including the [[<tvar name=2>Special:MyLanguage/API:Main page</tvar>|API]], the [[<tvar name=1>Special:MyLanguage/Manual:Hooks</tvar>|Hooks]] system and [[<tvar name=3>Special:MyLanguage/Manual:Skins</tvar>|Skins]] – see the [[<tvar name=4>#Extending MediaWiki</tvar>|#Extending MediaWiki]] section of this page for an overview.

Key documents

</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Code, development and style</translate>

  • Modèle:Ll – <translate> an overview of key development policies.</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/Manual:Coding conventions</tvar>|Coding conventions]] – learn how to write code in the MediaWiki style.

</translate>

  • Modèle:Ll – <translate> learn how to help keep MediaWiki secure.</translate>
  • Modèle:Ll – <translate> read this checklist before committing code.</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/Gerrit/Code review</tvar>|Code review guide]] – a guide for reviewers of commits to the MediaWiki source code.</translate>
  • Modèle:Ll – <translate> read about the process to decide on making larger technical changes.</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Debugging and testing</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/Manual:How to debug</tvar>|How to debug]] – a guide to debugging MediaWiki.

</translate>

  • Modèle:Ll – <translate> an overview of common MediaWiki errors and their correlating symptoms.</translate>
  • Modèle:Ll – <translate> learn to write UI tests for MediaWiki using Selenium.</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/Manual:Unit testing</tvar>|Unit testing]] – learn to write unit tests for MediaWiki using PHPUnit.

</translate>

  • Modèle:Ll – <translate> learn to write API integration tests for MediaWiki using Mocha.</translate>
  • Modèle:Ll – <translate> learn how to write secure code.</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Architecture</translate>

  • Modèle:Ll – <translate> an introduction to MediaWiki's architecture.</translate>
  • Modèle:Ll – <translate> an overview of the key parts of MediaWiki's source code.</translate>
  • Modèle:Ll – <translate> an overview of MediaWiki's database schemas.</translate>
  • Modèle:Ll – <translate> a partial list of key global variables.</translate>
  • Modèle:Ll – <translate> learn about MediaWiki's internationalisation system.</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/Manual:Contents</tvar>|Manual]] namespace on this wiki – documentation for developers.</translate>

<translate>

</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Sub-systems</translate>

<translate>

  • [[<tvar name=1>Special:MyLanguage/API:Main page</tvar>|API]] – MediaWiki's API provides direct, high-level access to the data contained in the MediaWiki databases.</translate>
  • Modèle:Ll – <translate> MediaWiki's framework for supporting custom types of page content.</translate>
  • Modèle:Ll – <translate> an overview of using databases in MediaWiki, including a brief guide to the database abstraction layer.</translate>
  • Modèle:Ll – <translate> MediaWiki's framework for processing long-running tasks asynchronously.</translate>
  • Modèle:Ll – <translate> MediaWiki's framework for providing localized application messages with PHP or JavaScript.</translate>

<translate>

Extending MediaWiki

MediaWiki has been designed to allow for modification without changing the "core code". This makes it easy to update to a new version of MediaWiki without having to manually merge in old extension code changes. There are six main extension points that allow developers to change or extend what MediaWiki can do. The extension points are:

  • [[<tvar name=1>Special:MyLanguage/API:Action API</tvar>|API]] – access the data and metadata of MediaWiki instances through its web API.

</translate>

  • Modèle:Ll – <translate> every time a given event happens, do something.</translate>
  • Modèle:Ll – <translate> create a new command like: <tvar name=1>{{#if:...|...|...}}</tvar>.</translate>
  • Modèle:Ll – <translate> change the look and feel of MediaWiki.</translate>
  • Modèle:Ll – <translate> add a new special page.</translate>
  • Modèle:Ll – <translate> create a new tag like: <tvar name=1>Modèle:Tag</tvar>.</translate>
  • Modèle:Ll – <translate> add a parser hook to modify the content of wikitext.</translate>
La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Help for extension developers</translate>

  • Modèle:Ll – <translate> a guide to developing extensions.</translate>
  • Modèle:Ll
  • <translate> See <tvar name=1>Modèle:Ll</tvar>, for a list of extensions.</translate>
  • Modèle:Ll - <translate> a blank extension template.</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Help for skin developers</translate>

  • Modèle:Ll – <translate> instructions on how to create a skin for MediaWiki.</translate>
  • Modèle:Ll – <translate> a guide to configuring skins for a wiki.</translate>

La page Modèle:InfoCard/styles.css n’a pas de contenu.

<translate> Help for library code reuse</translate>

  • Modèle:Ll – <translate> a guide to packaging third-party libraries for use with MediaWiki</translate>

<translate>

Notes

</translate>

  1. Not all of MediaWiki is written in PHP. Some supporting tools are written in other languages, including batch files, shell scripts, makefiles and Python.
  2. MediaWiki runs on most platforms that can support PHP, however, the lack of certain utilities or operating system features may limit the functionality or performance of MediaWiki on non-LAMP platforms.
  3. MediaWiki has support for DBMS other than MySQL and MariaDB, including PostgreSQL and SQLite.
  4. Developers are a mix of volunteers and paid staff (or contractors) for various organizations. For a full list of who works on the MediaWiki code, read the <tvar name=1>Modèle:Ll</tvar> article.
  5. <translate> Browse the source code and revisions of code repositories in [<tvar name=url>https://gerrit.wikimedia.org/g/</tvar> Gerrit] or download the source code to your system by using <tvar name=2>Modèle:Ll</tvar>.</translate>

[[Category:MediaWiki development{{#translation:}}|*Developer hub]] [[Category:New contributors{{#translation:}}]]