Extension:PollNY

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
PollNY

Release status:Extension status stable

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Advanced polling system that uses special pages and allows embedding polls to wiki pages
Author(s)Template:Extension#username Aaron Wright, David Pean, Jack Phoenix
Latest versionTemplate:Extension#version 3.3.3 (2015-11-21)
MediaWikiTemplate:Extension#mediawiki 1.30+
Database changesTemplate:Extension#needs-updatephp Yes
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download
ExampleTemplate:Extension#example Development/Testing wiki on Wikimedia Labs
ParametersTemplate:Extension#parameters
  • $wgPollDisplay
  • $wgCreatePollThresholds
Added rightsTemplate:Extension#rights

polladmin

Translate the PollNY extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

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 (with the exception of Special:UpdatePoll) will show up on Special:SpecialPages in the "Polls" section.

Dependencies[edit]

  • SocialProfile extension
  • New database tables: poll_choice, poll_question and poll_user_vote

Installation[edit]

  • Download and place the file(s) in a directory called PollNY in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'PollNY' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

User rights[edit]

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[edit]

  • $wgUserStatsPointValues['poll_vote'] — set this to something to give out points for answering existing polls.

Parameters[edit]

  • $wgPollDisplay['comments'] — whether to display comments on poll pages or not. Defaults to false. 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).


Social toolsSocial tools
SocialProfileExtension:SocialProfile OverviewExtension:SocialProfileDeveloper infoExtension:SocialProfile/For developersScreenshotsExtension:SocialProfile/ScreenshotsHistorySocial tools#History
Other social extensions Automatic Board WelcomeExtension:Automatic Board WelcomeBlogPageExtension:BlogPageChallengeExtension:ChallengeFanBoxesExtension:FanBoxesMiniInviteExtension:MiniInviteNewUsersListExtension:NewUsersListPictureGameExtension:PictureGamePollNYExtension:PollNYQuizGameExtension:QuizGameRandomFeaturedUserExtension:RandomFeaturedUserRandomGameUnitExtension:RandomGameUnitRandomUsersWithAvatarsExtension:RandomUsersWithAvatarsSiteMetricsExtension:SiteMetricsSiteScoutExtension:SiteScoutSportsTeamsExtension:SportsTeamsUserStatusExtension:UserStatusUserWelcomeExtension:UserWelcome
Other related extensions

(which do not depend on SocialProfile)

AnswersExtension:AnswersAJAXPollExtension:AJAXPollCommentsExtension:CommentsImageRatingExtension:ImageRatingLinkFilterExtension:LinkFilterMediaWikiChatExtension:MediaWikiChatNewSignupPageExtension:NewSignupPageTopListsExtension:TopListsVideoExtension:VideoVoteNYExtension:VoteNYWikiForumExtension:WikiForumWikiTextLoggedInOutExtension:WikiTextLoggedInOut