Extension:GeoCrumbs

From mediawiki.org
This page is a translated version of the page Extension:GeoCrumbs and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
GeoCrumbs
リリースの状態: 安定
実装 API
説明 ページにパンくずリストを追加
作者 Roland Unger, Hans Musil, and Matthias Mullie
最新バージョン 2.0.1
MediaWiki >= 1.42
PHP 5.4+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
Quarterly downloads 7 (Ranked 137th)
translatewiki.net で翻訳を利用できる場合は、GeoCrumbs 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The GeoCrumbs extension, formerly known as BreadCrumbs adds a trail of bread crumbs to the page. See https://en.wikivoyage.org/wiki/Wikivoyage:Breadcrumb_navigation or other Wikivoyage sites for more information.


インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のGeoCrumbsという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/GeoCrumbs
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'GeoCrumbs' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

This extension provides a new MediaWiki parser function named "isin". 引数には、現在の記事の名前を「含んだ」ものが1 つ書きます。

During parsing of the wiki markup, some few data related to the isin function's argument are generated and stored in the parser cache.

記事を表示するたび、その HTML コードはパーサのキャッシュから組み立てます。 The BreadCrumbs extension has a method triggered by the 'OutputPageParserOutput' hook. Here, the complete bread crumb trail is build up by starting with the article's own isin and retrieving subsequently higher level isin data from the corresponding parser caches. パンくずリストの HTML コードをページのサブタイトルに追加します。

Use of the isin keyword adds a breadcrumb trail under the title. Here shows the Vector 2022 skin.

Example:

{{#isin:Europe}}
The country of Spain is part of Europe.