Extension:GeoCrumbs

From mediawiki.org
This page is a translated version of the page Extension:GeoCrumbs and the translation is 43% complete.
Languages:
MediaWiki 拡張機能マニュアル
GeoCrumbs
リリースの状態: 安定
実装 API
説明 Adds a trail of bread crumbs to the page
作者 Roland Unger, Hans Musil, and Matthias Mullie
最新バージョン 2.0.1
MediaWiki >= 1.38.0
PHP 5.4+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
README
Quarterly downloads 16 (Ranked 151st)
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という名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    wfLoadExtension( 'GeoCrumbs' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

MediaWiki 1.27以前を稼働させている利用者へ:

上記の手順では、wfLoadExtension()を使用してこの拡張機能をインストールする新しい方法を記載しています。 この拡張機能をこれらの過去のバージョン (MediaWiki 1.27以前) にインストールする必要がある場合は、wfLoadExtension( 'GeoCrumbs' );の代わりに以下を使用する必要があります:

require_once "$IP/extensions/GeoCrumbs/GeoCrumbs.php";

使用法

This extension provides a new MediaWiki parser function named "isin". It expects one argument, the name of the article where the current article "is in".

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

When the article is displayed, its HTML code has to be built from the parser cache. 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. The HTML code of the bread crumb trail is added to the page's subtitle.

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.