Extension:LinkSuggest

This page is a translated version of the page Extension:LinkSuggest and the translation is 100% complete.
MediaWiki 拡張機能マニュアル
LinkSuggest
リリースの状態: 安定
実装 検索
説明 Provides the user with article title suggestions as they type a link in wikitext.
作者
最新バージョン 2.1.0 (2021-01-29)
MediaWiki 1.39+
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
  • $wgLinkSuggestFromNamespaces
Quarterly downloads 19 (Ranked 123rd)
translatewiki.net で翻訳を利用できる場合は、LinkSuggest 拡張機能の翻訳にご協力ください
問題点 未解決のタスク · バグを報告

The LinkSuggest extension suggests links to editors on edit view (?action=edit). Registered users are able to turn LinkSuggest off via Special:Preferences.

インストール

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

設定

$wgLinkSuggestFromNamespaces

Array that defines a list of namespaces to get suggestions from if you don't type a namespace.

Default value:

$wgLinkSuggestFromNamespaces = [ NS_MAIN ];

Adding namespaces to this list will cause LinkSuggest to load suggestions from pages on those namespaces, when you don't type the namespace. This cause suggestions to get pages "Apple" and "Project:Apple" if you type "Appl" and $wgLinkSuggestFromNamespaces is [ NS_MAIN, NS_PROJECT ].

関連する拡張機能

  • WikiEditor - Has similar functionality built in. Clicking on the link icon from the tool-bar shows a search box, typing into this will search the available pages. This extension is now bundled with MediaWiki.