Расширение:PollNY
Статус релиза: стабильно |
|
|---|---|
| Реализация | Служебная страница |
| Описание | Advanced polling system that uses special pages and allows embedding polls to wiki pages |
| Автор(ы) | Aaron Wright, David Pean, Jack Phoenix |
| Последняя версия | 3.8.0 |
| MediaWiki | 1.43+ |
| Изменения в БД | Да |
|
|
|
|
| Licence | GNU General Public License 2.0 or later |
| Скачать | |
| Переведите расширение PollNY, если оно доступно на translatewiki.net | |
| Проблемы | Открытые задачи · Сообщить об ошибке |
The PollNY extension defines a new namespace for polls (NS_POLL, the namespace number is 300 by default) and 6 new special pages for poll creation/administration.
Polls can be embedded on normal wiki pages with the <pollembed> tag.
Syntax is:
<pollembed title="Name of the poll" />
Special:AdminPoll can be used by users with 'polladmin' rights to view all polls and administer them, Special:CreatePoll is used to create new polls, Special:RandomPoll takes you to a randomly chosen poll, Special:UpdatePoll is like action=edit for polls and Special:ViewPoll can be used by all users to view available polls.
These new special pages (except for Special:UpdatePoll) will show up on Special:SpecialPages in the "Polls" section.
See Help:Extension:PollNY for more information on how to use this extension.
Dependencies
- New database tables: poll_choice, poll_question and poll_user_vote
Установка
- Скачайте и распакуйте файл(ы) в папку с названием
PollNYв вашей папкеextensions/.
Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PollNY
- Добавьте следующий код в конце вашего файла LocalSettings.php:
wfLoadExtension( 'PollNY' );
- Выполните скрипт обновления, который автоматически создаст необходимые таблицы, используемые расширением.
Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
User rights
This extension adds one new user right, polladmin, which allows accessing Special:AdminPoll to administer polls created through Special:CreatePoll.
By default sysops have this user right.
User points
$wgUserStatsPointValues['poll_vote']— set this to something to give out points for answering existing polls.
Параметры
| Name | Default | Description |
|---|---|---|
$wgPollDisplay['comments']
|
false
|
whether to display comments on poll pages or not. Requires Comments extension. |
$wgCreatePollThresholds
|
[]
|
for example 'edits' => 5 if you want to require users to have at least 5 edits before they can create new polls. Defaults to an empty array (no restrictions).
|
| Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: |
- Stable extensions/ru
- Special page extensions/ru
- APIGetAllowedParams extensions/ru
- ApiCheckCanExecute extensions/ru
- ArticleDelete extensions/ru
- ArticleFromTitle extensions/ru
- LoadExtensionSchemaUpdates extensions/ru
- PageMoveComplete extensions/ru
- PageUndeleteComplete extensions/ru
- ParserFirstCallInit extensions/ru
- ParserLimitReportPrepare extensions/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- All extensions/ru
- Extensions included in Miraheze/ru
- Extensions included in MyWikis/ru
- Social tools/ru
- Poll extensions/ru
