Help:Extension:QuizGame
![](http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/QuizGame_MediaWiki_extension.png/350px-QuizGame_MediaWiki_extension.png)
Quizzes are trivia questions created by the users; answering them correctly earns you points. There is a time limit of 30 seconds per quiz; after that, answering the question earns you no points. Thus, unlike social polls and picture games, quiz games have a single "right" answer defined by the question creator, and only choosing that answer earns the player points. A quiz may have up to 8 answer choices, and of these one must be designated the right answer.
A quiz question may also have an associated image. You can either upload a new image or using an existing image, either from the local wiki or Wikimedia Commons, if the InstantCommons feature is enabled on the wiki.
Note that on uploading a new image, you will not be able to customize the file name or supply any additional metadata (e.g. on the creator, copyright status, etc.) at this point. To prevent potential file name collisions, the uploaded file will be automatically prefixed with the current Unix time (e.g. the output of PHP's time()
function at the upload) and a hyphen, followed by the original file name to ensure uniqueness. This may result in a lot of files with ugly file names and inadequate metadata, so be aware of this.
You can start taking quizzes and also create new quiz questions at Special:QuizGameHome. Inappropriate questions can be flagged as such by clicking on the "flag" link and providing a reason. Flagging removes the question from circulation temporarily and enables quiz game admins to take appropriate action.
The list of users who have gotten the most quiz questions correct can be found at Special:QuizLeaderboard.
A list of all available quizzes can be found at Special:ViewQuizzes.
Quiz administration
editBy default administrators are given the quizadmin
user right, which is required to access the quiz game admin panel. Via this UI these privileged users can view flagged quiz questions and, if needed, unflag them, protect them and also delete them.
The images uploaded via the quiz game creation page are saved to the category defined at MediaWiki:Quiz-images-category.
Quiz administrators are also able to access the Special:QuizRecalcStats page, which allows them to recalculate quiz-related social statistics for all users who have ever played the quiz game.
Restricting who can create new quizzes
editIt's possible to restrict the creation of new quizzes so that users will need, for example, five edits or need to have two friends before they are allowed to create new quizzes. This is similar to the same feature present in PollNY ($wgCreatePollThresholds
) and PictureGame ($wgCreatePictureGameThresholds
) for restricting who can create new polls and picture games, or in SocialProfile ($wgUserProfileThresholds
) restricting who can edit their social profile page. (Note that SocialProfile's $wgUserProfileThresholds
uses edit
instead of edits
that PictureGame uses.)
For example:
$wgCreateQuizThresholds = [
'edits' => 5,
'comments' => 3
];
This would mean that users must have made five edits (to pages in the namespaces listed in $wgNamespacesForEditPoints
array in the wiki's LocalSettings.php) and three comments before they would be allowed to create a new quiz.
All supported values for restriction:
edits
— edits made to pages in the namespaces listed in$wgNamespacesForEditPoints
arraycomments
— # of comments left on pages using the Comments extension (such as blog pages)comment_score_plus
— # of times your comment got upvotedcomment_score_minus
— # of times your comment got downvotedrecruits
— # of users referred to the wiki via special referral linksfriend_count
— # of friends you havefoe_count
— # of foes you haveweekly_wins
— times you've been the weekly winnermonthly_wins
— times you've been the monthly winneronly_confirmed_email
— self-explanatory, isn't it?poll_votes
— # of polls you've voted inpicture_game_votes
— # of picture games you've voted inquiz_created
— # of quizzes createdquiz_answered
— # of quizzes answered in totalquiz_correct
— # of points gotten by taking quizzes and getting the answer correctquiz_points
— # of points gotten by taking quizzes
In practise, one or two restrictions are probably sufficient enough to curb abuse. All of the available restrictions are documented here for completeness' sake, but it would likely be highly impractical to use restrictions like weekly_wins or monthly_wins.
Points
editIt's possible to give out points for both creating new quizzes and for taking existing ones. A system administrator should define the following variables in the wiki's LocalSettings.php
file for that:
$wgUserStatsPointValues['quiz_created']
— the amount of points received for creating a brand new quiz question$wgUserStatsPointValues['quiz_answered']
— the amount of points received for taking a quiz
Log
editBy default all quiz actions (creating a new question, administrative deletion of a question, flagging a question by a user, etc.) are logged to Special:Log/quiz.
A system administrator can set $wgQuizLogs = false;
in the wiki's LocalSettings.php
file to disable this behavior.
Linking to a quiz
editIt's possible to link to a certain quiz game question when you have its permalink ID, e.g. Special:QuizGameHome/1. Individual question view has a "permalink" link, which enables sharing questions with others.