Manual:Code/zh

本页将介绍MediaWiki代码的顶层目录.

See also the following pages in the versioned MediaWiki documentation site (auto-generated using ):



代码入口
入口文件包含有：index.php,api.php,load.php，详情请看Entry points.

缓存目录，在安装的时候会建议设置以启用缓存. 当启用缓存后，这个目录就充当缓存的目录了.

默认情况下，这个目录是空的.

包含了MediaWiki的文档，这个目录会自动将每个版本的MediaWiki发布到doc.wikimedia.org.

您可以通过https://doc.wikimedia.org/mediawiki-core/查看这些文档.

扩展的安装目录. 安装扩展的时候，一个扩展就是一个子目录（您可以通过mediawiki.org扩展中心安装或者从Gerrit直接克隆扩展的代码）. 然后，在中启用这个扩展，通常是使用 这个函数启用.

MediaWiki的官方分发包中会绑定一些扩展和皮肤. See.

This directory stores the majority of the MediaWiki source code.

To learn about the different classes and components of MediaWiki, see "Modules" on doc.wikimedia.org/mediawiki-core/.

This is the default directory where user-uploaded media files will be stored. It is also where the generated thumbnails are stored by default.

See also and.

This directory contains pure data and configuration for localization and internationalization.

Specifically:

Such as the names of, and.
 * the  subdirectory contains the interface messages used in MediaWiki core (using the Banana JSON file format).
 * the  subdirectory contains misc characteristics of MediaWiki that are localisable (but not interface messages).

This directory contains shell scripts for use by system administrators to perform maintenance tasks. This includes scripts for performing database schema migrations, and batch operations. See for an overview.

This directory is the entry point for the Web installer which new administrators can use to install their wiki. It helps with configuring the wiki and creating the database schema.

This directory contains frontend resources (JavaScript and CSS) managed by.

This is where MediaWiki skins are installed. To install a skin, its source code is placed in a subdirectory here (typically by unpacking a tarball, or by cloning the source code from Git). Then, to enable the skin it must be loaded from, typically by calling.

See also.

Contains unit tests, integration tests, and end-to-end tests.


 * (QUnit)
 * (QUnit)