Wikipedia:Frågesport
|
Observera att sidan ännu inte är helt översatt från engelska. Källsidan finns på engelskspråkiga Wikiversitetet. |
Detta är hjälpsidan för programtillägget Quiz (frågesport).
Programtillägget består av en mycket enkel syntax. Denna sida är lång på grund av de många funktioner som programtillägget har. Programtillägget bör inte användas direkt i artiklar, utan endast som undersidor till denna sida, men ska ju såklart länkas från artikeln.
Version
redigera- Version 1.0 av programtillägget aktiverades 9:e februari 2009 på Wikipedia.
- Dokumentationen täcker alla större funktioner och de flesta mindre.
- Några få spännande funktioner är ännu inte dokumenterade, exempelvis som blandningskontroller som används genom {X} {!X} {/X}-taggarna.
Snabbguide
redigera
En snabb introduktion till frågesporter
|
Ett enda val
redigera
Ett enda val
<quiz display=simple> {Skriv frågan här.. |type="()"} + Rätt svar. - Fel svar. - Fel svar. - Fel svar. </quiz> |
Frågesport
|
Flervalsknappar
redigera
Flera val möjliga
<quiz display=simple> {Skriv frågan här... |type="[]"} + Rätt svar - Fel svar + Också rätt svar - Fel svar </quiz> |
Frågesport
|
Skrivna svar
redigera
Kod för skrivna svar
<quiz display=simple> { Lite text här... |type="{}"} Var föddes Aristoteles? { Stageira } { Lite text här... |type="{}"} Vem var Aristoteles mentor? { Platon } { Lite text här... |type="{}"} Namnge en känd grekisk filosof <br /> { Aristotles|Platon|platon|aristotles } </quiz> |
Frågesport
|
Hur du lägger in en frågesport på din sida
redigeraQuiz-taggen
redigeraWikitext (vad du skriver) |
Resultat (vad du ser) |
Kommentarer | |
---|---|---|---|
<quiz> Skriv frågan här. </quiz> |
|
Quiz-taggarna gör följande:
Theoretically it is possible to put quiz tags around each individual question, allowing a learner to mark each one in turn. Shuffling questions: if the shuffle questions button is shown, the questions can be shuffled by clicking the button. This only works so long as the quiz-taker has not started to answer the questions. Once the quiz-taker starts answering, the order is locked. | |
<quiz display=simple> Skriv frågan här. </quiz> |
|
| |
<quiz shuffle=none> Skriv frågan här. </quiz> |
|
|
Inserting questions
redigeraThe types of questions available are show below.
An important point is that each question must be separated by a blank line, otherwise they are merged together into one question.
Hur man använder exempel
redigeraIn the examples on this page, there is both wikitext and rendering. The wikitext shows you the code, which you can copy and paste into your pages, or just learn and understand. The rendering shows you what the result will look like.
Copying and pasting
redigeraThe markup has been slightly simplified in order to help understanding. If you copy and paste, you must insert <quiz> tags before and after the markup. You may wish to use the quiz tags with the "display=simple" option as shown above.
Note that the actual example below also use tables for clarity. If a quiz is inserted into a table, this modifies the appearance of a quiz - for example, boxes appear around some elements in the quiz. If you don't use a table, these boxes disappear and your quiz will look plainer.
When pasting, ensure that all the symbols are aligned with the left of the page - i.e. if any line begins with a space, formating errors may occur.
Live demos
redigeraAll the examples below should work. Don't be afraid to try them out. Hitting the correction button is OK - it won't change or damage this page.
Basic question types
redigeraMultiple choice / single response
redigerawikitext | rendering | comments | |
---|---|---|---|
{Question |type="()"} + The correct answer. - Distractor. - Distractor. - Distractor. |
|
|
True/false questions
redigerawikitext | rendering | comments | |||||||
---|---|---|---|---|---|---|---|---|---|
{Bulgaria and Rumania joined the European Union in 2007. |type="()"} + TRUE. - FALSE. {Switzerland is a member of the European Union. |type="()"} - TRUE. + FALSE. |
1 Bulgaria and Rumania joined the European Union in 2007.
2 Switzerland is a member of the European Union.
| ||||||||
- In many quiz systems, true/false questions are listed as a separate kind of question, although they are really nothing more than a variety of multiple choice with a single response. The Wikiversity quiz extension correctly treats true/false questions as multiple choice with a single response. They are implemented in exactly the same way as above.
- The first of the two examples shows a true/false question where the correct answer is "true".
- The second of the two examples shows a true/false question where the correct answer is "false".
- The examples are live and can be tried out now.
- If you have a large number of true/false questions, a more efficient way to lay them out would be to use the tabular response type with radio buttons documented below.
Multiple choice / multiple response
redigerawikitext | rendering | comments | |
---|---|---|---|
{Question |type="[]"} + Correct answer. - Incorrect answer. + Correct answer. - Incorrect answer. |
|
|
Typed response (short answer)
redigerawikitext | rendering | comments | |
---|---|---|---|
{ |type="{}"} Where was Aristotle born? { Stageira } { |type="{}"} Name Aristotle's famous mentor. { Plato } { |type="{}"} { Alexander } was Aristotle's most famous pupil. |
|
| |
{ |type="{}"} Name a famous Greek philosopher. { Aristotle|Plato } |
|
| |
{ |type="{}"} Name Aristotle's famous mentor. { Plato _6 } |
|
| |
{ |type="{}"} Where did Aristotle die? { Chalcis (i) } |
|
|
Gapfill / cloze
redigerawikitext |
{Complete the text from the Wikipedia article on [[w:Aristotle|Aristotle]]. |type="{}"} Aristotle was born in { Stageira _8 } in Chalcidice. His parents were { Phaestis _8 } and { Nicomachus _10 }, who became physician to King Amyntas of Macedon. Aristotle was educated as a member of the aristocracy. At about the age of { eighteen|18 _8}, he went to { Athens _6 } to continue his education at { Plato _5 }'s Academy. Aristotle remained at the Academy for nearly twenty years, not leaving until after Plato's death in { 347 _3 } BC. | |
rendering |
| |
comments |
|
Numeriska svar
redigerawikitext | rendering | comments | |
---|---|---|---|
{In which year was Plato born? |type="{}"} He was born in { 427-428 _5 } BC. |
|
| |
{På vilket avstånd från Jorden befinner sig solen? |type="{}"} { 91-95 _3 } million miles. |
|
| |
{What is 10 times 10? |type="{}"} { 100 5% _3 } |
|
| |
|
|
Tabular response type with radio buttons
redigerawikitext | rendering | comments | |
---|---|---|---|
{Question |type="()"} | A | B | C +-- A is correct. -+- B is correct. --+ C is correct. |
|
|
Tabular response type with checkboxes
redigerawikitext | rendering | comments | |
---|---|---|---|
{Question |type="[]"} | Option A | Option B | Option C ++- Question 1 (Clue: A and B are correct). -++ Question 2 ( Clue: B and C are correct). --+ Question 3 (Clue: C is correct). |
|
|
Advanced stuff
redigeraInserting feedback
redigerawikitext | rendering | comments | |
---|---|---|---|
{Question |type="()"} + The correct answer. || Feedback for correct answer. - Distractor. || Feedback for distractor. - Distractor. || Feedback for distractor. - Distractor. || Feedback for distractor. |
|
|
Inserting blocks of text between questions
redigerawikitext | rendering | comments | |
---|---|---|---|
{This is the first question. |type="()"} + The correct answer. - Distractor. - Distractor. {This is a block of text.} {This is the second question. |type="()"} + The correct answer. - Distractor. - Distractor. |
|
|
Using images as answers
redigerawikitext | rendered | comments | |
---|---|---|---|
<quiz display=simple> { Which of these are not nuts? } - [[Fil:Walnut03.jpg|100px]] + [[Fil:Peanuts.jpg|100px]] + [[Fil:Malus-Idared on tree.jpg|100px]] - [[Fil:Pistachios in a bag.jpg|100px]] - [[Fil:Chestnut.jpg|100px]] + [[Fil:P10802511.JPG|100px]] </quiz> |
|
|
Using images in the question
redigerawikitext | rendered | comments | |
---|---|---|---|
<quiz display=simple> { What is this? [[Fil:Butterfly tongue.jpg|100px| ]] | type="()" } - Tiger + Butterfly - Bee - Fly </quiz> |
|
In this example, the image is part of the question. You just use normal wiki-markup to insert the image(s). |
Använda animationer
redigeraThe section adds no new technical tricks, but it looks pretty.
|
|
|
Hyperlinks and other markup
redigeraMarkup that works inside quizzes
redigera- Hyperlinks: [[....]].
- Images: [[Fil:....]].
- Other media: [[....]].
- Bold and italic.
- <big> and <br />
Markup that partly works inside quizzes
redigera- Templates: {{....}}.
- subst doesn't work.
- Tables: {|....|}.
- Headings: e.g. ===....===.
- Warning: At the moment there is a problem with the toc.
- Lists and indents: using #, * and :
Adding music and sound effects
redigeraThis is similar to insertion of images. Standard wiki markup is used.
Configuring points
redigerawikitext (what you write) |
rendering (what you see) |
comments | |
---|---|---|---|
<quiz points="3/1!"> {Try this question now.} + Plus 3 points for this one. - Minus 1 point for this one. </quiz> |
|
| |
<quiz display=simple> {Try this question now. |type="()" } + 1 points for this one. - 0 points for this one. {Try this question now. |type="()" coef="2"} + 2 points for this one. - 0 points for this one. {Try this question now. |type="()" coef="4"} + 4 points for this one. - 0 points for this one. {Try this question now. |type="()" coef="0.5"} + 1/2 point for this one. - 0 points for this one. </quiz> |
|
|
Troubleshooting
redigera- You cannot test out the quiz while editing a page, because the submit button is grayed out. If you wish to test your new quiz, then create a sandbox page somewhere else first (e.g. as a subpage of your user page), then test the quiz there, and finally transfer the quiz to its final location (and test it again anyway).
- The quiz was developed for IE6, IE7, Firefox (and Opera?), but display quality on Opera may not be optimal, and there may be display differences between browsers.
- A reminder: each question must be separated by a blank line, otherwise the questions are merged together into one question.
Se även
redigera- Programtilläggets projektsida på MediaWiki där diskussioner och utveckling av programtillägget tar plats.