Extension:VoteNY/ru

Category:GPL licensed extensions/ru
Справка по расширениям MediaWiki
VoteNY
Статус релиза: стабильноCategory:Stable extensions/ru
Реализация Расширение парсера Category:Parser extensions/ru, Хук Category:Hook extensions/ru, Тег Category:Tag extensions/ru
Описание JavaScript-based voting with the <vote> tag
Автор(ы)
Последняя версия 3.2 (2021-11-24)
Политика совместимости Мастер поддерживает обратную совместимость.
MediaWiki 1.43+Category:Extensions with manual MediaWiki version/ru
Изменения в БД Да
Таблицы Vote
Лицензия GNU General Public License 2.0 или позднее
Скачать Category:Extensions in Wikimedia version control/ru
  • voteny
Переведите расширение VoteNY, если оно доступно на translatewiki.net
Проблемы Открытые задачи · Сообщить об ошибке
Category:All extensions/ru

The VoteNY a.k.a Vote extension adds the <vote> parser hook tag to allow voting on articles where the tag is present.


Установка

  • Скачайте и распакуйте файл(ы) в папку с названием VoteNY в вашей папке extensions/.
    Вместо этого разработчикам и соавторам кода следует установить расширение из Git, используя:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/VoteNY
    
  • Добавьте следующий код в конце вашего файла LocalSettings.php :
    wfLoadExtension( 'VoteNY' );
    
  • Выполните скрипт обновления, который автоматически создаст необходимые таблицы, используемые расширением.
  • Yes Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.


Настройка

This extension adds one new user right, voteny, which is required in order to vote. By default, anonymous users do not have this right and thus they cannot vote but registered users can. To allow anonymous users to vote, add the following to your LocalSettings.php:

$wgGroupPermissions['*']['voteny'] = true;


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

Теги

<vote /> outputs a green square voting box.

<vote type=1 /> outputs five voting stars.

Волшебные слова

  • {{NUMBEROFVOTES}}: Returns the entire number of votes on the wiki.
  • {{NUMBEROFVOTESPAGE}}: Returns the number of votes on the current page.
  • {{NUMBEROFVOTESPAGE:<page>}}: Returns the number of votes on the given page.

The magic word {{NUMBEROFVOTES}} can be used to display the number of votes in the database; this number is cached (in memcached) for 24 hours, so it's not totally up-to-date.

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

The special page Special:TopRatings displays the highest rated pages on the wiki. It supports filtering by category and namespace and its output can be embedded on wiki pages, so {{Special:TopRatings/Adventure Games/0/10}} will show 10 ratings where the pages are in the "Adventure Games" category and the pages are in the main (0) namespace.

Интернационализация

СообщениеанглийскийОписание
voteny-linkVote
voteny-unvote-linkunvoteDisplayed to the user after their vote has been successfully added.
voteny-community-scorecommunity score: $1"community score" is the average score of the page in question
voteny-ratings{{PLURAL:$1|one rating|$1 ratings}}$1 is the number of ratings, if said number is greater than 1.
voteny-removeremove
voteny-gave-thisyou gave this a $1$1 is the score you gave to the page, for example 5 or 3.50.
voteny-votes{{PLURAL:$1|one vote|$1 votes}}$1 is the number of votes.
topratingsTop RatingsTitle of Special:TopRatings, will be shown on the listing of special pages at Special:SpecialPages and on Special:TopRating itself.
topratings-no-pagesNo top rated pages.Shown on Special:TopRatings if there are absolutely no pages that have been rated yet (as is the case usually right after installing the extension).
right-votenyVote pagesDisplayed on Special:ListGroupRights.

См. также

  • RatePage - Allows for voting and voting contests
Category:Social tools/ru Category:Poll extensions/ru Category:Rating extensions/ru
Category:All extensions/ru Category:Extensions in Wikimedia version control/ru Category:Extensions included in Canasta/ru Category:Extensions included in Miraheze/ru Category:Extensions included in MyWikis/ru Category:Extensions included in WikiForge/ru Category:Extensions with manual MediaWiki version/ru Category:GPL licensed extensions/ru Category:Hook extensions/ru Category:LoadExtensionSchemaUpdates extensions/ru Category:MagicWordwgVariableIDs extensions/ru Category:ParserFirstCallInit extensions/ru Category:ParserGetVariableValueSwitch extensions/ru Category:Parser extensions/ru Category:Poll extensions/ru Category:Rating extensions/ru Category:RenameUserSQL extensions/ru Category:Social tools/ru Category:Stable extensions/ru Category:Tag extensions/ru