הרחבה:חידון
Appearance
סטטוס שחרור: גרסה יציבה |
|
|---|---|
| יישום | Tag, Hook |
| Description | מספק כלי חידון |
| Author(s) | Lrbabeשיחה |
| Latest version | 1.2.0 (2015-12-08) |
| MediaWiki | 1.25+ |
| License | GNU General Public License 2.0 or later |
| Download | |
| Example | and format documentation: v:Help:Quiz |
| Translate the Quiz extension if it is available at translatewiki.net | |
| Issues | Open tasks · Report a bug |
התוסף Quiz הוא כלי בניית החידונים שאומץ בויקיברסיטה. הרחבה זו שואפת להיות:
- פשוטה בתחביר ובשימוש בה; עוצמתית באפשרויותיה.
- פתוחה להצעות ושיפורים (על ידי הקלת הוספת סוגי שאלות חדשים).
שימוש
- מיזם למידה על חידונים בויקיברסיטה האנגלית
- Wikiversity:Help:Quiz – תיעוד מלא להרחבת החידון (בויקיברסיטה).
- Wikiversity:Help:Quiz-Simple – תיעוד פשוט וצבעוני המיועד למתחילים, משתמשים צעירים יותר וכל מי שאינו זקוק לגרסה המלאה (בויקיברסיטה).
דפי עזרה אחרים מתארחים בויקיברסיטה על מנת לאפשר דוגמאות מעשיות.
התקנה
- Download and move the extracted
Quizfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Quiz
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'Quiz' );
בוצע – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
פיתוח
- הוספת סוג שאלה חדשה
החידון נוצר כדי להקל על הוספת סוגי שאלות חדשים. אם הסוגים הבסיסיים (שאלות רב-ברירה עם תשובה אחת/מרובה) אינם מספיקים לכם, יש לכם אפשרות ליצור ולשלב בקלות את סוג השאלות שאתם צריכים. לשם כך עליך להיות בעל ידע מסוים ב-PHP.
-
הדבר הראשון שעליכם לעשות הוא לבחור תחביר (הפשוט ביותר האפשרי) עבור סוג השאלה שלכם.
ההגבלות הן:
- התחביר של כותרת השאלה קבוע. יש למקם את השאלה בין סוגריים מסולסלים - כלומר
{ו-}. - לשם עקביות, מומלץ להשתמש ב-
||כדי לסמן את תחילת קטע המשוב ("תיקון").
- התחביר של כותרת השאלה קבוע. יש למקם את השאלה בין סוגריים מסולסלים - כלומר
-
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; }
- רשמו את מפרטי התחביר שלכם אשר יתווספו לעזרה. אנא קראו תחילה את העזרה הקיימת.
- לאחר שכל זה ייעשה, צרו איתי קשר כדי לכלול באופן רשמי את סוג השאלה שלכם בתוך ההרחבה.
ראו גם
| This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |
| This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
Categories:
- Stable extensions/he
- Tag extensions/he
- Hook extensions/he
- GPL licensed extensions/he
- Extensions in Wikimedia version control/he
- ParserFirstCallInit extensions/he
- All extensions/he
- Extensions used on Wikimedia/he
- Extensions included in Miraheze/he
- Extensions included in MyWikis/he
- Extensions included in WikiForge/he
- On-line learning extensions/he
- Poll extensions/he
