Extension:Examples

This page is a translated version of the page Extension:Examples and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
Examples
リリースの状態: 安定
実装 例, ContentHandler
作者 Krinkle, Kaldari
MediaWiki 1.32
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
translatewiki.net で翻訳を利用できる場合は、Examples 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

Examples拡張機能は、BoilerPlate 拡張機能を拡張し、いくつかの一般的な機能を実装する小さな拡張機能のコレクションです。 すべてがどのように機能するかを説明する多くの追加の注釈とインラインコメントがあります。 拡張機能のサンプルを読み込み、ボイラープレート拡張機能を自作のコードの基準に使う。

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のexamplesという名前のディレクトリ内に配置します。
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/examples
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'examples' );
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。


関連項目