Podręcznik:Kod
Ta strona opisuje katalogi najwyższego poziomu w repozytorium Kod rdzenia MediaWiki.
Zobacz także następujące strony w wersjonowanej witrynie dokumentacji MediaWiki (autogenerowane przy użyciu Doxygen):
Punkty wejścia
The entry point files that are loaded directly are listed below. Other files might be loaded (mostly from extensions) but doing so is non-standard and might not work on all systems.
Web browsing:
- index.php – see Parameters to index.php for more details.
- opensearch_desc.php – the OpenSearch API.
- load.php – the output point of the ResourceLoader.
API:
- api.php – the Action API.
- rest.php – the REST API.
File uploads:
- img_auth.php – serving thumbnails and originals, for use on private wikis.
- thumb_handler.php – 404 handler for thumbnails, using paths like
thumb_handler.php/a/a9/Example.jpg/120px-Example.jpg - thumb.php – 404 handler for thumbnails, using parameters like
thumb.php?f=Example.jpg&w=120
Zobacz Punkty wejścia w doc.wikimedia.org aby dowiedzieć się więcej o plikach punktów wejścia, takich jak: $2, $3 i $4.
Installator zaleca użytkownikom włączenie funkcji $wgCacheDirectory poprzez tworzenie tego katalogu wpisalnego i używanie go do tej funkcji.
To katalogię jest domyślnie puste.
Zawiera wysokiej jakości dokumentację o MediaWiki, która jest automatycznie publikowana dla każdego wydania MediaWiki (i dla "master") do doc.wikimedia.org.
W wersji docentowej MediaWiki, patrz https://doc.wikimedia.org/mediawiki-core/.
Tutaj instalowane są rozszerzenia MediaWiki.
Aby zainstalować rozszerzenie, jego kod źródłowy jest umieszczany w podkatalogu (zazwyczaj przez rozpakowanie tarball pobranego ze strony dokumentacji mediawiki.org rozszerzeń lub przez sklonowanie kodu źródłowego z Gerrit).
Następnie, aby włączyć rozszerzenie musi być załadowany od LocalSettings.php, zazwyczaj przez dzwonienie do wfLoadExtension().
Domyślna dystrybucja MediaWiki (jak reklamowana na naszej stronie głównej i w opakowaniu z Debian) zawiera również szereg rozszerzeń i skins. Zobacz Dołączone rozszerzenia i skórki.
W tym katalogu przechowywany jest większość kodu źródłowego MediaWiki.
To learn about the different classes and components of MediaWiki, see "Topics" 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.
Zobacz też Manual:Configuring file uploads oraz Manual:Image administration#Folders.
This directory contains pure data and configuration for localization and internationalization.
Specifically:
- the
i18n/subdirectory contains the interface messages used in MediaWiki core (using the Banana JSON file format).
- the
messages/subdirectory contains misc characteristics of MediaWiki that are localisable (but not interface messages).
Such as the names of Przestrzenie nazw, Funkcje parsera and Strony specjalne.
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 Podręcznik:Skrypty konserwacyjne 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 ResourceLoader.
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 LocalSettings.php, typically by calling wfLoadSkin().
Zobacz też Dołączone rozszerzenia i skórki.
Zawiera testy jednostkowe, testy integracyjne i testy od końca do końca.