Extension: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' );
完了 – ウィキの「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.

Example:
{{#isin:Europe}}
The country of Spain is part of Europe.
![]() | この拡張機能は 1 つ以上のウィキメディアのプロジェクトで使用されています。 これはおそらく、この拡張機能が安定していて高いトラフィックのウェブサイトでも十分に動作することを意味します。 この拡張機能がインストールされている場所を確認するには、ウィキメディアの設定ファイル CommonSettings.php および InitialiseSettings.php 内で、この拡張機能の名前を探してください。 特定のウィキにインストールされている拡張機能の完全な一覧は、そのウィキの Special:Version ページにあります。 |
![]() | この拡張機能は以下のパッケージ/ウィキファームに含まれています: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/ja
- API extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- OutputPageParserOutput extensions/ja
- ParserAfterTidy extensions/ja
- ParserFirstCallInit extensions/ja
- All extensions/ja
- Extensions used on Wikimedia/ja
- Extensions included in Miraheze/ja
- Breadcrumbs extensions/ja