Jump to content
MediaWiki

Extension:Contributors/ru

From mediawiki.org
This page is a translated version of the page Extension:Contributors and the translation is 27% complete.

Автор этого расширения больше не занимается его поддержкой! Хотя оно все еще может работать, любые сообщения об ошибках или запросы на совершенствовании, скорее всего, будут проигнорированы.

Если вы заинтересованы в том, чтобы взять на себя задачу разработки и поддержки этого расширения, вы можете запросить право собственности на репозиторий. As a courtesy, you may want to contact the author. Вы также должны будете удалить этот шаблон и указать себя как поддерживающего это расширение в инфобоксе $extension.

Справка по расширениям MediaWiki
Contributors
Статус релиза: не поддерживается
Реализация Действия пользователя , Служебная страница
Описание Summarizes the most prominent contributors to an article
Автор(ы) Rob Church (original), Yaron Koren, Ike Hecht
Последняя версия 2.1 (2023年09月22日)
Политика совместимости Мастер поддерживает обратную совместимость.
MediaWiki 1.35-1.39
PHP 7.3+
Изменения в БД Да
  • $wgContributorsLinkUsers
Licence GNU General Public License 2.0 or later
Скачать
Переведите расширение Contributors, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке

The Contributors extension provides an includable special page which summarizes the most prominent contributors to an article. The page can be accessed as a normal special page, or included into other pages to provide an automated list, which is useful for attribution.

Установка

  • Скачайте и распакуйте файл(ы) в папку с названием Contributors в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:
    cdextensions/
    gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/Contributors
    
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'Contributors' );
    
  • Выполните скрипт обновления , который автоматически создаст необходимые таблицы, используемые расширением.
  • Run the script that will populate the database with contributors from existing articles:
php extensions/Contributors/maintenance/PopulateContributorsTable.php
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
  • upgrade: php extensions/Contributors/maintenance/PopulateContributorsTable.php


Использование

The list can be accessed as a conventional special page, or through inclusion into another page.

Служебная страница

The special page is located at "Special:Contributors" and provides an interface to select an article. You can also access this page using the "main contributors" link in the toolbox when viewing an article; the results for that page will be shown.

Включение

You can transclude a list of names into another page using the inclusion mechanism, e.g.

{{Special:Contributors/Article}}

You can also create a template with the following code on it, and add it to your articles.

{{Special:Contributors/{{FULLPAGENAME}}}}

will produce a list of the most prominent contributors to Article.

Функция парсера

There's also a parser function that displays the contributors in a plain list, like so: Joe, Moe and Jane.

{{#contributors:{{FULLPAGENAME}}}}

You can also filter anons from the list of contributors, like so:

{{#contributors:{{FULLPAGENAME}}|filteranon}}

Параметры

  • $wgContributorsLinkUsers links the user names to their User page. Doesn't affect the Special page, which is always linked. (default true)

См. также

AltStyle によって変換されたページ (->オリジナル) /