Manual:Code/pt-br

Esta página descreve os arquivos chave e diretórios no código-fonte do MediaWiki. Para informações mais detalhadas, consulte a classe, o arquivo e as referências completas geradas automaticamente a partir do código fonte do MediaWiki usando o doxygen.

Pontos de acesso

 * Veja também: Special:Version

Essa lista pode ser gerada automaticamente ao executar:.

Estes são os arquivos que um navegador pode alcançar ao usar o wiki. Todos eles estão localizados no diretório raiz do wiki, e cada um deles está emparelhado com um envoltório .php5, para servidores web que exigem a extensão .php5 para executar scripts com o motor PHP5.

== Local padrão para o cache de arquivos, se habilitado (definindo  — o padrão é  .). Esta localização pode ser personalizada usando a variável $wgFileCacheDirectory.

Contém vários arquivos de texto que deverão ajudá-lo a entender as partes mais importantes do código do MediaWiki.

As extensões do Mediawiki são distribuídas separadamente do código do núcleo. Instalar uma extensão implica copiar seus arquivos para este diretório, e permiti-lo seguir as próprias instruções de instalação da extensão (geralmente editando o arquivo LocalSettings.php). Por padrão, esse diretório está vazio em uma nova instalação MediaWiki, contendo apenas um arquivo LEIA-ME.

Este diretório armazena arquivos include comuns necessários para MediaWiki.

This directory contains the Action classes, which handle the different actions which can be performed on pages (e.g. view, delete, edit, etc.). All these classes extend the,   or   classes. Some of them are just stubs which call methods in the  or   classes to do the actual work.

This directory contains the code for the MediaWiki API. See API:Main page. The most important files are:

This directory contains files with code relating to MediaWiki's caching mechanisms.

This directory contains a few classes related to (request) contexts. As of MediaWiki 1.18 the context of a request is encapsulated inside a  instance which implements. A context is a way of grouping the parts of a request together. This reduces the need for globals. See Manual:RequestContext for more information.

This directory contains the code for database support.  provides MediaWiki's database abstraction layer.

This directory contains the standard MediaWiki difference engine. A difference engine computes the difference between two texts. Whether this difference engine is used or some external diff tool, depends on the $wgExternalDiffEngine setting.

Files related to the job queue. Each job class for a specific type of job derives from the  class and has to implement a   method which does the actual job.

Some files related to logging the events which happen on a Wiki. This directory was introduced in MW 1.19. Some of the files were already present in olders versions, in the includes/ directory.

This directory contains files for handling several media formats, mostly images.

This directory contains some Unicode normalization routines. See for more information.

Files related to MediaWiki's caching mechanisms. The files in this directory provide the possibility to store objects in PHP accelerators, in memcached, in a database or in DBA files.

The MediaWiki parser, which transforms wikitext to HTML, can be found here together with related files. The most interesting files in this directory:

Files related to ResourceLoader, a JavaScript/CSS delivery optimizing system for MediaWiki.

This directory contains the code to implement the possibility of searching a wiki using one the possible backends.

This directory contains the code and classes for the standard special pages. All special page classes derive from class  (defined in includes/SpecialPage.php). Special pages which come with extension are located in their respective extensions directories. See also Manual:Special pages.

Files providing the backend of MediaWiki's file upload feature.

If uploads are enabled in the wiki, files will be put in subdirectories under this directory. See Manual:Image administration for more details.

This directory contains files used for localization and internationalization. For a quick overview, see Language in MediaWiki.

This directory contains maintenance scripts that must be run from a command line interface.

See Manual:Maintenance scripts for an overview of those scripts.

Ponto de entrada para o script de configuração (o script auxiliar que ajuda a configurar um wiki recém-instalado). O código atual do instalador está localizado na pasta.

This directory contains JavaScript and CSS resources used by MediaWiki, including jQuery.

Location for serialized objects (database entries converted into files -- see Serialization for more information). The database tables that contain serialized data are listed at Manual:Serialization.

This directory contain all skins classes, JavaScripts, CSS and some images used by that skins. See Manual:Skins.

Contains various (unit)test related files, including:
 * Parser tests
 * PHPUnit tests
 * QUnit tests
 * Selenium Framework