开发者中心

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Developer hub and the translation is 65% complete.

Other languages:
العربية • ‎català • ‎čeština • ‎dansk • ‎Deutsch • ‎English • ‎British English • ‎español • ‎suomi • ‎français • ‎galego • ‎עברית • ‎Bahasa Indonesia • ‎italiano • ‎日本語 • ‎한국어 • ‎Nederlands • ‎polski • ‎português • ‎português do Brasil • ‎русский • ‎සිංහල • ‎粵語 • ‎中文
Source code project 1171.svg


Crystal Clear app display.png 用户 Nuvola-inspired-terminal.svg 系统管理员 Source code project 1171.svg 开发员

MediaWiki开发说明,包括关键文件,资源和开发工具。它是为 使用过MediaWiki的熟练LAMP(软件包) 程序员写的

For an introductory guide to developing MediaWiki, read how to become a MediaWiki hacker.

For help installing or customizing MediaWiki, visit the 系统管理员中心. For help using MediaWiki, visit the 用户中心.

概要[edit | edit source]

MediaWiki是以开源形式开发的。[1] 使用 PHP 编程语言 [2]MediaWiki主要在LAMP平台运行。[3][4] 核心开发是通过大规模在线协作完成的。

  • Source code is managed using the Git revision control system. Read the Git article for an overview of how the MediaWiki developers use Git. Read the wikitech:Help:Access#Access FAQ article if you'd like access.[5]
  • 代码审查 使用Gerrit系统, 您也可以贡献补丁修复问题,参考 Gerrit入门 了解 git 和 gerrit 如何具体操作。
  • Developers extending or interfacing with MediaWiki (instead working on the core code) have several convenient extension points, including the API, the Hooks system and Skins – see the #Extending MediaWiki section of this page for an overview.

主要文档[edit | edit source]

编码、开发和规范[edit | edit source]

  • 需求中心(RfC) – 了解MediaWiki需求表,也可以提出自己对MediaWiki的需求建议。

调试和测试[edit | edit source]

  • Bugs – an overview of bug tracking in the MediaWiki project.[6]
  • Unit testing – learn to write unit tests for MediaWiki using PHPUnit.

系统架构[edit | edit source]

  • Manual:Code – an overview of the key parts of MediaWiki's source code.
  • Localisation – learn about MediaWiki's internationalisation system.
  • Manual namespace on this wiki – documentation for developers.
  • MediaWiki类参考手册 –从MediaWiki源码生成的技术文档。 (注意: 手册很大,加载会比较慢。)

子系统[edit | edit source]

  • API – MediaWiki's API provides direct, high-level access to the data contained in the MediaWiki databases
  • ContentHandler——MediaWiki 的自定义页面类型支持框架。
  • 数据库访问——MediaWiki 中数据库使用综述,包括数据库抽象层简明指南。
  • Job queue——MediaWiki 中让长时间任务异步运行的框架。
  • 消息 API——MediaWiki 中通过 PHP 或 JavaScript 提供本地化程序消息的框架。

扩展 MediaWiki[edit | edit source]

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:

  • API – access the data and metadata of MediaWiki instances through a powerful web API
  • Hooks – 系统的执行挂钩
  • Skins – 自定义 MediaWiki 的外观
  • Tag Extensions – 添加自定义的标签,例如 <newtag>...</newtag>

插件开发人员的帮助文档[edit | edit source]

皮肤开发人员的帮助文档[edit | edit source]

Help for library code reuse[edit | edit source]

使用第三方维基站点[edit | edit source]

备注[edit | edit source]

  1. 开发人员由志愿者、Wikimedia基金会员工和合作伙伴组成。从 贡献列表 可以获得为MediaWiki代码作出贡献的人员名单。
  2. ,但MediaWiki不全都是PHP开发的。部分基础支持工具是用其他语言开发的,像 批处理文件 , shell脚本 , makefilesPython.
  3. 当然,MediaWiki可以运行在所有支持PHP的平台上,但是需要注意,非LAMP平台,由于部分工具和操作系统特性不支持,可能会限制一些MediaWiki的功能,而且还会影响性能。
  4. MediaWiki支持 MySQL 和其他 DBMS,包括 Oracle, PostgreSQLSQLite
  5. Browse the source code and revisions at https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git or clone the development version of the code using this Git command:
    git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git MediaWiki
  6. Visit http://news.gmane.org/gmane.org.wikimedia.mediawiki.bugs to see recent changes to bugs and issues in the Wikimedia Phabricator instance.