Extension:LinkSuggest

From mediawiki.org
This page is a translated version of the page Extension:LinkSuggest and the translation is 100% complete.
راهنمای افزونهٔ مدیاویکی
LinkSuggest
وضعیت انتشار: پایدار
انجام Search
توضیحات Provides the user with article title suggestions as they type a link in wikitext.
نویسنده(گان)
آخرین نسخه: 2.1.0 (2021-01-29)
MediaWiki 1.39+
مجوز GNU General Public License 2.0 or later
بارگیری
  • $wgLinkSuggestFromNamespaces
Quarterly downloads 27 (Ranked 122nd)
Translate the LinkSuggest extension if it is available at translatewiki.net
Issues Open tasks · گزارش یک مشکل

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

نصب

  • Download and move the extracted LinkSuggest folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/LinkSuggest
  • کد زیر را در انتهای $LocalSettings خودتان اضافه کنید:
    wfLoadExtension( 'LinkSuggest' );
    
  • Yes انجام شد – به 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.