Extension:QuizGame

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

Release status:Extension status stable

QuizGame MediaWiki extension.png
ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Interactive question game that uses AJAX
Author(s)Template:Extension#username Aaron Wright, Ashish Datta, David Pean, Jack Phoenix
Latest versionTemplate:Extension#version 3.2
MediaWikiTemplate:Extension#mediawiki 1.27+
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
  • $wgQuizLogs
  • $wgCreateQuizThresholds
  • $wgQuizID
Added rightsTemplate:Extension#rights

quizadmin

Hooks usedTemplate:Extension#hook
SkinTemplateNavigation::SpecialPageManual:Hooks/SkinTemplateNavigation::SpecialPage
MakeGlobalVariablesScriptManual:Hooks/MakeGlobalVariablesScript
LoadExtensionSchemaUpdatesManual:Hooks/LoadExtensionSchemaUpdates
RenameUserSQL

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

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

QuizGame extension allows users to create interactive quizzes and take them.

Special:QuizGameHome is the main page for quizzes. Special:QuizLeaderboard shows the users who have answered correctly in most quizzes. Special:QuizRecalcStats can be used by quiz administrators to recalculate quiz statistics. Special:ViewQuizzes can be used to view all available quizzes.

Dependencies[edit]

  • SocialProfile extension
  • New database tables: quizgame_questions, quizgame_answers, quizgame_choice and quizgame_user_view

Installation[edit]

  • Download and place the file(s) in a directory called QuizGame in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'QuizGame' );
  • 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, quizadmin which allows administering quizzes. By default sysops and staff have this user right.

User points[edit]

  • $wgUserStatsPointValues['quiz_answered'] — set this to something to give out points for answering existing quiz game questions.
  • $wgUserStatsPointValues['quiz_correct'] — I have no idea what this does. Related comment from source code: "Add to stats how many quizzes the user has answered correctly"
  • $wgUserStatsPointValues['quiz_created'] — set this to something to give out points for creating new quiz games.
  • $wgUserStatsPointValues['quiz_points'] — I have no idea what this does. Related comment from source code: "Add to point total"

Parameters[edit]

  • $wgQuizLogs — whether to log quiz creations or not. Defaults to true.
  • $wgCreateQuizThresholds — for example 'edits' => 5 if you want to require users to have at least 5 edits before they can create new quizzes. Defaults to an empty array (no restrictions).
  • $wgQuizID — this is the internal ID number of the current quiz and is used by QuizGame internally. It's documented here only for the sake of completeness. Do not set it!


Social toolsSocial tools
SocialProfileExtension:SocialProfile OverviewExtension:SocialProfileRoadmapExtension:SocialProfile/RoadmapDeveloper infoExtension:SocialProfile/For developersScreenshotsExtension:SocialProfile/ScreenshotsHistorySocial tools
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:AnswersCommentsExtension:CommentsLinkFilterExtension:LinkFilterMediaWikiChatExtension:MediaWikiChatNewSignupPageExtension:NewSignupPageVideoExtension:VideoVoteNYExtension:VoteNYWikiForumExtension:WikiForumWikiTextLoggedInOutExtension:WikiTextLoggedInOut