Extension:Quiz/hi
From Linux Web Expert
Quiz प्रकाशन की स्थिति: स्थिर |
|
---|---|
File:Quiz extension.png | |
कार्यान्वयन | टैग , हुक |
विवरण | एक क्विज़ उपकरण प्रदान करता है |
लेखक | Lrbabetalk |
नवीनतम संस्करण | 1.2.0 (2015-12-08) |
MediaWiki | 1.25+ |
लाइसेंस | कोई लाइसेंस नहीं दिया गया है |
डाउनलोड करें | |
उदाहरण | and format documentation: v:Help:Quiz |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Quiz एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है | |
मुद्दे | अधूरे कार्य · बग की रिपोर्ट करें |
Quiz एक्सटेंशन विकिविश्वविद्यालय पर प्रयुक्त क्विज़-निर्माण उपकरण है। इस एक्सटेंशन का उद्देशय है:
- सिनटैक्स को आसान बनाना, और शक्तिशाली बनना।
- सुझाव और सुधार स्वीकार करना (नए प्रकार के सवाल जोड़कर)।
उपयोग
- Learning project on quizzes at the English Wikiversity
- Wikiversity:Help:Quiz -- documentation for the quiz extension (full) (on Wikiversity).
- Wikiversity:Help:Quiz-Simple -- a simpler and colourful documentation intended for beginners, younger users and anyone else who does not need the full version (on Wikiversity).
Other help pages are hosted on the Wikiversities in order to allow for working examples.
स्थापना
- <translate> [[<tvar name=2>Special:ExtensionDistributor/Quiz/hi</tvar>|Download]] and move the extracted <tvar name=name>
Quiz/hi
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Quiz%2Fhi - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'Quiz/hi' );
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
विकास
- प्रश्नों का एक नया प्रकार जोड़ना
Quiz was conceived to facilitate the addition of new question types. If the basic types (multiple choice with single/multiple responses) are not enough for you, you have the possibility of easily creating and integrating the type of questions which you need. For that you must have some knowledge of PHP.
-
The first thing that you must do is choose a syntax (the simplest possible) for your question type.
The restrictions are:
- The syntax of the question's header is fixed. The question has to be placed between curly brackets - i.e. { and } .
- For consistency, it is recommended to use || to mark the beginning of the feedback section ("correction").
-
Choose a new code name for your question type (example: "questionTypeName") as well as a symbol (currently the symbol "()" is used for single response multiple choice because it looks like a radio button, and the symbol "[]" is used for multiple response multiple choice because it looks like a checkbox).
-
Add a "case" at the beginning of the parseParameters's "switch", as follows :
case 'symbol': $this->mType = "questionTypeName"; break;
-
Add a parser function to Quiz.php
This function must convert a question object from quiz syntax to HTML and set a state to the question (right, wrong, error, NA or unmarked), according to syntax errors and eventually posted answers. Name the function "questionTypeNameParseObject" and implement as follows :/** * Convert a basic type object from quiz syntax to HTML. * * @param $input A question object in quiz syntax * * @return $output A question object in HTML. */ function questionTypeNameParseObject($input) { // your code here. $this->setState(""); // Set the state if needed. return $output; }
- Write down your syntax specifications which will be added to the help. Please read first the existing help.
- Once this is all done, contact me to include officially your question type inside the extension.
ये भी देखें
File:Wikimedia-logo black.svg | <translate> This {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is being used on one or more [[<tvar name=2>m:Special:MyLanguage/Wikimedia projects</tvar>|Wikimedia projects]].</translate> <translate> This probably means that the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension|skin}} is stable and works well enough to be used by such high-traffic websites.</translate> <translate> Look for this {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extension's|skin's}} name in Wikimedia's <tvar name=2>CommonSettings.php</tvar> and <tvar name=3>InitialiseSettings.php</tvar> configuration files to see where it's installed.</translate> <translate> A full list of the {{<tvar name=1>#ifeq:Extension|Extension</tvar>|extensions|skins}} installed on a particular wiki can be seen on the wiki's <tvar name=ver>Special:Version</tvar> page.</translate> |
Quiz_extension.png |
Categories:
- Pages with script errors
- Pages with broken file links
- Stable extensions/hi
- Tag extensions/hi
- Hook extensions/hi
- Extensions with manual MediaWiki version
- Extensions with no license specified/hi
- Extensions in Wikimedia version control/hi
- All extensions/hi
- Extensions not in ExtensionJson
- Extensions used on Wikimedia/hi
- On-line learning extensions/hi
- Poll extensions/hi