<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="sv">
	<id>https://docs.moodle.org/4x/sv/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jeffjeff</id>
	<title>MoodleDocs - Användarbidrag [sv]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/4x/sv/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jeffjeff"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/Special:Bidrag/Jeffjeff"/>
	<updated>2026-04-16T19:10:47Z</updated>
	<subtitle>Användarbidrag</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=MySQL&amp;diff=108558</id>
		<title>MySQL</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=MySQL&amp;diff=108558"/>
		<updated>2013-12-29T15:23:14Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: how to see which SQL database belongs to which Moodle installation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
MySQL is one of the supported databases that underpins a Moodle installation. &lt;br /&gt;
&lt;br /&gt;
== Installing MySQL ==&lt;br /&gt;
&lt;br /&gt;
* If you are running Linux your preference should be to install using your distributions package manager. This ensures you will get any available updates. &lt;br /&gt;
* There are installers available for most popular operating systems at http://www.mysql.com/downloads/mysql/.&lt;br /&gt;
* It is possible and reasonably straightforward to build mysql from source but it is not recommended (the pre-built binaries are supposedly better optimised).&lt;br /&gt;
* Make sure you set a password for the &#039;root&#039; user (see http://dev.mysql.com/doc/refman/5.0/en/default-privileges.html).&lt;br /&gt;
* Consider installing and configuring my.cnf (the MySQL settings file) to suit your needs. The default configuration is usually very conservative in respect of memory usage versus performance.&lt;br /&gt;
&lt;br /&gt;
== Creating Moodle database ==&lt;br /&gt;
&lt;br /&gt;
These are the steps to create an empty Moodle database. Substitute your own database name, user name and password as appropriate.&lt;br /&gt;
&lt;br /&gt;
The instructions assume that the web server and MySQL server are on the same machine. In this case the &#039;dbhost&#039; is &#039;localhost&#039;. If they are on different machines substitute the name of the web server for &#039;localhost&#039; in the following instructions and the &#039;dbhost&#039; setting will be the name of the database server. &lt;br /&gt;
&lt;br /&gt;
=== Command line === &lt;br /&gt;
&lt;br /&gt;
* To create a database using the &#039;mysql&#039; command line client, first log into MySQL&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mysql -u root -p&lt;br /&gt;
Enter password: &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
(Enter the password you previously set - or been given - for the MySQL &#039;root&#039; user). After some pre-amble this should take you to the &#039;&#039;mysql&amp;gt;&#039;&#039; prompt.&lt;br /&gt;
* Create a new database (called &#039;moodle&#039; - substitute your own name if required).  We recommend you use &#039;&#039;&#039;utf8_unicode_ci&#039;&#039;&#039; for collation.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Add a user/password with the minimum needed permissions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mysql&amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,CREATE TEMPORARY TABLES,DROP,INDEX,ALTER ON moodle.* TO moodleuser@localhost IDENTIFIED BY &#039;yourpassword&#039;;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
...which creates a user called &#039;moodleuser&#039; with a password &#039;yourpassword&#039;. Make sure you invent a strong password and resist the temptation to &#039;GRANT ALL&#039;.&lt;br /&gt;
&lt;br /&gt;
=== phpMyAdmin ===&lt;br /&gt;
&lt;br /&gt;
[http://www.phpmyadmin.net/ phpMyAdmin] is a web based administration tool for MySQL. If this is available you can use it to create a new database. Make sure that you select &#039;UTF8&#039; as the default character set.&lt;br /&gt;
&lt;br /&gt;
==Which database belongs to which Moodle==&lt;br /&gt;
If you have installed several Moodle installations on the same server, there will be several several databases in your MySQL server. The names might be quite poor reflections of the content like  _mdl1 _mdl2 _mdl3 . So how do I see which database goes with which Moodle installation? You can go in with phpMyAdmin and in the various databases check for the table &amp;quot;mdl_course&amp;quot;. There you will easily see the name of that Moodle Installation.  In table mdl_config you can see the Moodle version. (Where can one find the home relative URL of the Moodle installation?)&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[MariaDB]]&lt;br /&gt;
* [http://www.mysql.com/ The MySQL homepage]&lt;br /&gt;
* [http://en.wikipedia.org/wiki/MySQL Wikipedia article about &#039;&#039;MySQL&#039;&#039;]&lt;br /&gt;
* [http://forums.mysql.com/read.php?24,92131,92131 List of articles on MySQL performance tuning]&lt;br /&gt;
&lt;br /&gt;
[[Category:SQL databases]]&lt;br /&gt;
&lt;br /&gt;
[[ja:MySQL]]&lt;br /&gt;
[[de:MySQL]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Diskussion:Calculated_question_type&amp;diff=103662</id>
		<title>Diskussion:Calculated question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Diskussion:Calculated_question_type&amp;diff=103662"/>
		<updated>2013-03-18T11:00:38Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: synchronizing datasets&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;quot;However the synchronization will work ONLY if the questions are kept in the SAME category and have the SAME NUMBER OF DATASETS .&amp;quot;&lt;br /&gt;
I tried to make a couple questions where the first would be to calculate the m in y = mx+b for 2 points and in the second to calculate b&lt;br /&gt;
I couldn&#039;t find how to choose the same data set. I tried sychronise   but it still complained about I must add a dataset before saving.&lt;br /&gt;
&lt;br /&gt;
I also wonder about the restriction that was to be lifted (and several years have passed). &lt;br /&gt;
[[User:Jeff Forssell|Jeff Forssell]] 19:00, 18 March 2013 (WST)&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Calculated_question_type&amp;diff=103661</id>
		<title>Calculated question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Calculated_question_type&amp;diff=103661"/>
		<updated>2013-03-18T10:31:40Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* DO NOT PUT THE = sign in the formula. */ cosine of two times another angle&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
Calculated questions offer a way to create individual numerical questions by the use of wildcards  (i.e you can use common variables names as &#039;&#039;&#039;x&#039;&#039;&#039; , &#039;&#039;&#039;y&#039;&#039;&#039;  enclosed  in curly braces  to create the  wildcards &#039;&#039;&#039;{x}&#039;&#039;&#039; and &#039;&#039;&#039;{y}&#039;&#039;&#039;) that are substituted with random values when the quiz is taken.&lt;br /&gt;
 &lt;br /&gt;
For example, if you want to create a large number of &#039;&#039;&#039;&amp;quot;Calculate the area of a rectangle&amp;quot;&#039;&#039;&#039; problems to drill your students, you could create a question with two wildcards (i.e. &#039;&#039;&#039;{base}&#039;&#039;&#039;, &#039;&#039;&#039;{height}&#039;&#039;&#039; created from the common &#039;&#039;&#039;base&#039;&#039;&#039;, &#039;&#039;&#039;height&#039;&#039;&#039; variable names)  and put in the &amp;quot;&#039;&#039;&#039;Correct Answer Formula=&#039;&#039;&#039;&amp;quot; input field  &#039;&#039;&#039;{base}&#039;&#039;&#039; * &#039;&#039;&#039;{height}&#039;&#039;&#039; ( * being the multiplication sign ).&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;&#039;Correct Answer Formula=&#039;&#039;&#039; {base}*{height}&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
When a student takes the test, Moodle will randomly select values for &#039;&#039;&#039;{base}&#039;&#039;&#039; and &#039;&#039;&#039;{height}&#039;&#039;&#039; and grade the response using the result of the &#039;&#039;&#039;Correct Answer Formula&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
The test will very rarely appear the same way twice.&lt;br /&gt;
&lt;br /&gt;
== Is this really the question type for you? ==&lt;br /&gt;
The main purpose of the calculated question is to create multiple versions of a question with different numerical values. This means you must have &#039;&#039;&#039;at least one&#039;&#039;&#039; wildcard in one of the answers.&lt;br /&gt;
 &lt;br /&gt;
If you don&#039;t need a random element, use the [[Numerical question type]] instead.&lt;br /&gt;
== Simple calculated question type   ==&lt;br /&gt;
&lt;br /&gt;
The [[Simple calculated question type|simple calculated]] question offers the most used features of the calculated question with a much simpler creation interface.&lt;br /&gt;
&lt;br /&gt;
==Wildcards and datasets==&lt;br /&gt;
&lt;br /&gt;
When Moodle delivers a Calculated question to the student, the wildcards are replaced with randomly-selected values. However, these values are not completely random - rather, they are randomly selected from a pre-defined &#039;&#039;dataset&#039;&#039; of possible values. This allows you some control over the possible values chosen - for example, in order to make sure the numbers are realistic.&lt;br /&gt;
&lt;br /&gt;
These datasets can be &#039;&#039;private&#039;&#039; or &#039;&#039;shared&#039;&#039; - private datasets are used by one wildcard within one calculated question; shared datasets are used by one wildcard within all calculated questions that use it.&lt;br /&gt;
&lt;br /&gt;
==Question set-up==&lt;br /&gt;
To create (or modify) a calculated question there are three pages to work through. The instructions below take you through the pages, step by step:&lt;br /&gt;
&lt;br /&gt;
===Page 1. Editing a Calculated question ===&lt;br /&gt;
&lt;br /&gt;
#Select the question &#039;&#039;&#039;category&#039;&#039;&#039;&lt;br /&gt;
#Any shared wildcards for this category are listed beneath. If you change category, you&#039;ll need to click the &amp;quot;Update the category&amp;quot; button to refresh this list. There may not be any shared wildcards yet - if not, you can create them later if you wish.&lt;br /&gt;
#Give the question a descriptive &#039;&#039;&#039;name&#039;&#039;&#039; - this allows you to identify it in the question bank.&lt;br /&gt;
#Enter the &#039;&#039;&#039;question text&#039;&#039;&#039;. This should be the question you want the student to answer, and it must include all the information they need to calculate an answer. Therefore it must contain at least one wildcard, inside curly braces. For example, if you wanted the student to sum numbers A and B, the question text might read: &amp;quot;What is {A} + {B}?&amp;quot; You may also include quantities computed from wildcards using the syntax &amp;quot;{=...}: for example, the question &amp;quot;What is {={A}+{B}} - {A}?&amp;quot; with wildcard values A=4 and B=3 would display as &amp;quot;What is 7 - 4?&amp;quot;&lt;br /&gt;
#Select an image to display if you want to add a picture to the question. For the student, it appears immediately after the question text and before the choices. If you want more control over how the image appears, include it in the question text above, using the HTML editor.&lt;br /&gt;
#Set the &#039;&#039;&#039;default question grade&#039;&#039;&#039; (i.e. the maximum number of marks for this question).&lt;br /&gt;
#Set the &#039;&#039;&#039;Penalty factor&#039;&#039;&#039; (see [[Calculated_question_type#Penalty_factor|Penalty factor]] below).&lt;br /&gt;
#&#039;&#039;Moodle 1.7+:&#039;&#039; If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.&lt;br /&gt;
#Next add the &#039;&#039;&#039;formula for the answer&#039;&#039;&#039;. This formula must contain at least the wildcards that appear in the question text. See [[Calculated_question_type#Correct_answer_formula_syntax|Correct answer formula syntax]] for further details.&lt;br /&gt;
# Choose the &#039;&#039;&#039;grade&#039;&#039;&#039; that the student will get for this question if they give this answer. This should be a percentage of the total marks available. For example, you could give 100% for a correct answer, and 50% for an answer that is nearly right. &#039;&#039;&#039;One of the answers must have a 100% grade&#039;&#039;&#039;.&lt;br /&gt;
#Determine the &#039;&#039;&#039;tolerance&#039;&#039;&#039; for error that you will accept in the answer. The tolerance and tolerance type settings combine to give a range of acceptable scores. So, if tolerance = t, correct answer = x and the difference between the user&#039;s answer and the correct answer is dx, then the tolerance types are as follows:&lt;br /&gt;
##Nominal - mark correct if dx &amp;lt;= t&lt;br /&gt;
##Relative - mark correct if dx / x &amp;lt;= t&lt;br /&gt;
##Geometric - mark correct if dx² / x² &amp;lt;= t²&lt;br /&gt;
# The next 2 settings, &amp;quot;Correct answer shows&amp;quot; and &amp;quot;Format&amp;quot; determine the &#039;&#039;&#039;precision&#039;&#039;&#039; of the answer. Use these to select the number of decimal places or significant figures you want to use.&lt;br /&gt;
# Add some &#039;&#039;&#039;feedback&#039;&#039;&#039; which the student will see if they enter this answer.&lt;br /&gt;
# You can specify as many answer formulae as you like - click &amp;quot;Add another answer blank&amp;quot; to add more.&lt;br /&gt;
# You can also specify units for the answers. For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. If you add more than one unit, you can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW.&lt;br /&gt;
# Finally (!) you can click &amp;quot;Next page&amp;quot; to save what you&#039;ve done and move on. If you are editing an existing question, you can click &amp;quot;Next page (new question)&amp;quot; to create a completely new question based on an existing one.&lt;br /&gt;
&lt;br /&gt;
==== Penalty factor ====&lt;br /&gt;
&lt;br /&gt;
The &#039;penalty factor&#039; only applies when the question is used in a quiz using adaptive mode - i.e. where the student is allowed multiple attempts at a question even within the same attempt at the quiz. If the penalty factor is more than 0, then the student will lose that proportion of the &#039;&#039;&#039;maximum&#039;&#039;&#039; grade upon each successive attempt. For example, if the default question grade is 10, and the penalty factor is 0.2, then each successive attempt after the first one will incur a penalty of 0.2 x 10 = 2 points.&lt;br /&gt;
&lt;br /&gt;
===Tolerance===&lt;br /&gt;
&lt;br /&gt;
As for numerical questions it is possible to allow a margin within which all responses are accepted as correct. The &amp;quot;Tolerance&amp;quot; field is used for this. However, there are three different types of tolerances. These are Relative, Nominal and Geometric. If we say that the correct answer at quiz time is calculated to 200 and the tolerance is set to 0.5 then the different tolerance types work like this:&lt;br /&gt;
&lt;br /&gt;
Relative: A tolerance interval is calculated by multiplying the correct answer with 0.5, ie in this case we get 100 so for this tolerance the correct response must be between 100 and 300. (200 ± 100)&lt;br /&gt;
This is useful if the magnitude of the correct answer can differ greatly between different wildcard values.&lt;br /&gt;
&lt;br /&gt;
Nominal: This is the simplest tolerance type but not very powerful. The correct response must be between 199.5 and 200.5 (200 ± 0.5)&lt;br /&gt;
This tolerance type can be useful if the differences between different correct answers are small.&lt;br /&gt;
&lt;br /&gt;
Geometric: The upper limit of the tolerance interval is calculated as 200 + 0.5*200 and is the same as for the relative case. The lower limit is calculated as 200/(1 + 0.5). The correct response must then be between 133.33 and 300.&lt;br /&gt;
This is useful for complex calculation that must have great tolerances where relative tolerances of 1 or more would be used for the upper limit but clearly not acceptable for the lower limit as it would make zero a correct answer for all cases.&lt;br /&gt;
&lt;br /&gt;
The field Significant Figures does only relate to how the correct answer should be presented in the review or the reports. Examples: If it is set to 3 then the correct answer 13.333 would be presented as 13.3; 1236 would be presented as 1240; 23 would be presented as 23.0 etc. &lt;br /&gt;
&lt;br /&gt;
===Page 2. Choose dataset properties ===&lt;br /&gt;
&lt;br /&gt;
Each wildcard that you specify in the answer formula must have an associated set of possible values - this is its &#039;&#039;dataset&#039;&#039;. Each of the wildcards is listed on this page along with a choice of dataset:&lt;br /&gt;
*&#039;&#039;&#039;private&#039;&#039;&#039; i.e. only used by this question&lt;br /&gt;
*&#039;&#039;&#039;shared&#039;&#039;&#039; i.e shared with other calculated questions in the same category&lt;br /&gt;
&lt;br /&gt;
Using a shared dataset can save time when you are creating a lot of similar calculated questions.&lt;br /&gt;
&lt;br /&gt;
Note that even when creating a question for the first time, this page may say that your wildcard &amp;quot;will use the same existing private dataset as before.&amp;quot; This just means that Moodle has already tentatively created a private data set for that wildcard: if a private dataset is what you want, leave this choice selected.&lt;br /&gt;
&lt;br /&gt;
If there is anything in the question text that looks like a wildcard, but does not appear in any of the answer formulae, you can specify whether or not this is meant to be a wildcard. If it is, you can choose whether it should use a private or shared dataset.&lt;br /&gt;
&lt;br /&gt;
To continue, simply choose your preferred dataset for each wildcard, then click &amp;quot;Next Page&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Page 3. Edit the datasets ===&lt;br /&gt;
&lt;br /&gt;
Now we need to create the set of possible values that each wildcard can take. &#039;&#039;Warning&#039;&#039; - this page is a bit confusing!&lt;br /&gt;
&lt;br /&gt;
There are two ways of creating values - you can type them in yourself and add them to the list, or you can have Moodle generate them for you.&lt;br /&gt;
&lt;br /&gt;
==== Adding/deleting your own values ====&lt;br /&gt;
&lt;br /&gt;
Adding individual values to the list is easy:&lt;br /&gt;
&lt;br /&gt;
# In the &#039;Param&#039; field for each wildcard, enter the value you want&lt;br /&gt;
# Scroll down to the &#039;Add&#039; section and click the Add button (leaving the number of items set to 1)&lt;br /&gt;
# Repeat the above steps as many times as necessary (the maximum number of items is 100)&lt;br /&gt;
&lt;br /&gt;
To delete values from the list:&lt;br /&gt;
&lt;br /&gt;
# In the &#039;Delete&#039; section, select the number of items to delete&lt;br /&gt;
# Click the Delete button&lt;br /&gt;
&lt;br /&gt;
==== Letting Moodle create values ====&lt;br /&gt;
&lt;br /&gt;
# Start with the &amp;quot;Range of Values&amp;quot; fields, and enter the lower and upper limits for the values you would accept&lt;br /&gt;
# Choose a number of decimal places for the value&lt;br /&gt;
# Choose the distribution of values between the limits - &#039;uniform&#039; means any value between the limits is equally likely to be generated; &#039;loguniform&#039; means that values towards the lower limit are more likely.&lt;br /&gt;
# Now move down to the &#039;Add&#039; section and click on &amp;quot;force regeneration&amp;quot;&lt;br /&gt;
# In the menu next to the Add button, choose the number of sets of random values (items) you wish to add to the list. (Note that the maximum total number of items in your list is 100.)&lt;br /&gt;
# Finally, click Add to append the new values to the list&lt;br /&gt;
# &#039;&#039;&#039;Note:&#039;&#039;&#039; If you want more control over the items that Moodle adds, you can do them one at a time and preview the values before you add them. Click the &amp;quot;Get New Item to Add&amp;quot; button to make Moodle generate new values in the &amp;quot;Item to Add&amp;quot; section at the top. If you like them, click &amp;quot;Add&amp;quot; for 1 item; if not, click &amp;quot;Get New Item to Add&amp;quot; again to get new values.&lt;br /&gt;
&lt;br /&gt;
==== Finishing off ====&lt;br /&gt;
&lt;br /&gt;
Once your list of items (values) is complete, you are finished. It&#039;s up to you how many values you add - the more values you add, the more a question can be used by the students without them seeing the same values repeatedly.&lt;br /&gt;
&lt;br /&gt;
Note that if you delete values from the list, you can put them back again. Change the &amp;quot;Next Item to Add&amp;quot; option to &amp;quot;reuse previous value if available&amp;quot;, then the next time you add items, Moodle will restore your previously-deleted items from the dataset. &lt;br /&gt;
&lt;br /&gt;
Once your list of values is complete, you can click &#039;Save changes&#039; to finish.&lt;br /&gt;
&lt;br /&gt;
==== What does the &#039;Update the datasets parameters&#039; button do? ====&lt;br /&gt;
&lt;br /&gt;
Warning: This button can affect several questions, so be careful before using it.&lt;br /&gt;
Assume you have selected dataset parameter for {a} to be any value between 1-10 and generated a question. In the second question also you decide to use a SHARED wildcard called {a}. Inherently, it will show a value between 1-10. However, your need here changes and you want to make it 11-100 instead. Then, you change them in the range and click this button. Voila! the values change and you can add new items here using the &#039;Get New item to add&#039;. However, if you go back to your previous question, you will see that values would change there too, because it is a shared dataset. If you do not update parameters, then this may not happen and will generate a new set of values and displays them in the &amp;quot;Item to Add&amp;quot; section.&lt;br /&gt;
&lt;br /&gt;
==Correct answer formula syntax==&lt;br /&gt;
 &lt;br /&gt;
=== DO NOT PUT THE = sign in the formula. ===&lt;br /&gt;
 &lt;br /&gt;
* In the recent versions of the calculated question type, you could have more than one answer formula and applied a specific grading value to each of them as long as there is at least one 100% correct answer formula.&lt;br /&gt;
 If more than one correct answer formula input field are displayed when editing, &lt;br /&gt;
 your site has the multiple answer feature. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* As a general rule, write these formulas like you would in a calculator e.g. &amp;lt;code&amp;gt;3 + 5 * sin(3/{x})&amp;lt;/code&amp;gt; A notable exception is exponentiation, where x&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt; cannot be entered as &amp;lt;code&amp;gt;{x}^3&amp;lt;/code&amp;gt;, but instead should be entered as &amp;lt;code&amp;gt;pow({x}, 3)&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Each function&#039;s placeholders and other arguments should be in parentheses (brackets). For example, if you want students to calculate the sine of one angle and cosine of two times another angle, you would enter &amp;lt;code&amp;gt;sin({a}) + cos({b}*2)&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;sin({a}) + cos(2*{b})&amp;lt;/code&amp;gt;.&lt;br /&gt;
* It&#039;s usually better to have too many parentheses (brackets) than too few.  The server won&#039;t care, and the more specific you are about what you mean, the more likely it will like your complex formulas.&lt;br /&gt;
* There is no implicit multiplication.  To you, the human editor, &amp;quot;5(23)&amp;quot; or &amp;quot;5x&amp;quot; may seem perfectly obvious.  To the server doing the math, it&#039;s crazy talk and won&#039;t be understood.  Always use the &amp;quot;*&amp;quot; for multiplication.&lt;br /&gt;
* Any special mathematical function must have parentheses around its values.  Take the sine function in the first bullet point for instance.  Notice that the &#039;&#039;3 / x&#039;&#039; is wrapped in parentheses (brackets)--this is so the server can understand it properly.  Without those parentheses, the server won&#039;t know if you mean &amp;quot;(sin 3) / x&amp;quot; or &amp;quot;sin (3 / x)&amp;quot; and will reject the entire formula accordingly.&lt;br /&gt;
&lt;br /&gt;
==Available functions==&lt;br /&gt;
&lt;br /&gt;
Calculated questions can use more than simple arithmetic operators. The following functions are allowed in versions 1.5 and newer.&lt;br /&gt;
&lt;br /&gt;
{| width=&amp;quot;97%&amp;quot; border=&amp;quot;1px&amp;quot;&lt;br /&gt;
!Function&lt;br /&gt;
!Explanation&lt;br /&gt;
|-&lt;br /&gt;
|abs&lt;br /&gt;
|Absolute value&lt;br /&gt;
|-&lt;br /&gt;
|acos&lt;br /&gt;
|Arc cosine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|acosh&lt;br /&gt;
|Inverse hyperbolic cosine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|asin&lt;br /&gt;
|Arc sine -- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|asinh&lt;br /&gt;
|Inverse hyperbolic sine.-- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|atan2&lt;br /&gt;
|Arc tangent of two variables -- pass in two values like (y, x), and you&#039;ll get the atah(y/x), adjusted to the proper quadrant. (Note: The variables are in the reverse order to atan2(x,y) in Excel) Output is radians.&lt;br /&gt;
|-&lt;br /&gt;
|atan&lt;br /&gt;
|Arc tangent -- output in radians.   &lt;br /&gt;
|-&lt;br /&gt;
|atanh&lt;br /&gt;
|Inverse hyperbolic tangent-- output in radians.&lt;br /&gt;
|-&lt;br /&gt;
|bindec&lt;br /&gt;
|Binary to decimal&lt;br /&gt;
|-&lt;br /&gt;
|ceil&lt;br /&gt;
|Round fractions up&lt;br /&gt;
|-&lt;br /&gt;
|cos&lt;br /&gt;
|Cosine -- in radians!!!  Convert your degree measurement to radians before you take the cos of it.&lt;br /&gt;
|-&lt;br /&gt;
|cosh&lt;br /&gt;
|Hyperbolic cosine -- in radians!!!  Convert your degree measurement to radians before you take the cosh of it.&lt;br /&gt;
|-&lt;br /&gt;
|decbin&lt;br /&gt;
|Decimal to binary&lt;br /&gt;
|-&lt;br /&gt;
|decoct&lt;br /&gt;
|Decimal to octal&lt;br /&gt;
|-&lt;br /&gt;
|deg2rad&lt;br /&gt;
|Converts the number in degrees to the radian equivalent&lt;br /&gt;
|-&lt;br /&gt;
|exp&lt;br /&gt;
|Calculates the exponent of e&lt;br /&gt;
|-&lt;br /&gt;
|expm1&lt;br /&gt;
|Returns exp(number) - 1, computed in a way that is accurate even when the value of number is close to zero&lt;br /&gt;
|-&lt;br /&gt;
|floor&lt;br /&gt;
|Round fractions down&lt;br /&gt;
|-&lt;br /&gt;
|fmod&lt;br /&gt;
|Returns the floating-point modulus of two numbers - i.e. the remainder when the first is divided by the second.&lt;br /&gt;
|-&lt;br /&gt;
|is_finite&lt;br /&gt;
|Finds whether a value is a legal finite number&lt;br /&gt;
|-&lt;br /&gt;
|is_infinite&lt;br /&gt;
|Finds whether a value is infinite&lt;br /&gt;
|-&lt;br /&gt;
|is_nan&lt;br /&gt;
|Finds whether a value is not a number&lt;br /&gt;
|-&lt;br /&gt;
|log10&lt;br /&gt;
|Base-10 logarithm&lt;br /&gt;
|-&lt;br /&gt;
|log1p&lt;br /&gt;
|Returns log(1 + number), computed in a way that is accurate even when the value of number is close to zero&lt;br /&gt;
|-&lt;br /&gt;
|log&lt;br /&gt;
|Natural logarithm (&#039;&#039;ln&#039;&#039;)&lt;br /&gt;
|-&lt;br /&gt;
|max&lt;br /&gt;
|Find highest value&lt;br /&gt;
|-&lt;br /&gt;
|min&lt;br /&gt;
|Find lowest value&lt;br /&gt;
|-&lt;br /&gt;
|octdec&lt;br /&gt;
|Octal to decimal&lt;br /&gt;
|-&lt;br /&gt;
|pi()&lt;br /&gt;
|Get value of pi - the function does not take an argument, like in Excel.&lt;br /&gt;
|-&lt;br /&gt;
|pow (numberToRaise, NumberRaisedTo)&lt;br /&gt;
|Exponential expression&lt;br /&gt;
|-&lt;br /&gt;
|rad2deg&lt;br /&gt;
|Converts the radian number to the equivalent number in degrees&lt;br /&gt;
|-&lt;br /&gt;
|rand&lt;br /&gt;
|Generate a random integer&lt;br /&gt;
|-&lt;br /&gt;
|round&lt;br /&gt;
|Rounds a float&lt;br /&gt;
|-&lt;br /&gt;
|sin&lt;br /&gt;
|Sine -- in radians!!!  Convert your degree measurement to radians before you take the sin of it.&lt;br /&gt;
|-&lt;br /&gt;
|sinh&lt;br /&gt;
|Hyperbolic sine -- in radians!!!  Convert your degree measurement to radians before you take the sinh of it.&lt;br /&gt;
|-&lt;br /&gt;
|sqrt&lt;br /&gt;
|Square root&lt;br /&gt;
|-&lt;br /&gt;
|tan&lt;br /&gt;
|Tangent -- in radians!!!  Convert your degree measurement to radians before you take the tan of it.&lt;br /&gt;
|-&lt;br /&gt;
|tanh&lt;br /&gt;
|Hyperbolic tangent -- in radians!!!  Convert your degree measurement to radians before you take the tanh of it.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Predefined constants==&lt;br /&gt;
Actually there is NO Predefined constant that is allowed other than pi() as a function without parameter.&lt;br /&gt;
&lt;br /&gt;
==Synchronization==&lt;br /&gt;
&lt;br /&gt;
You could use shared wild cards to get the same values across questions in a quiz.&lt;br /&gt;
&lt;br /&gt;
A simple example will be to use the same radius in a first question asking for the perimiter of a circle of {radius}cm and a second question asking for the surface of a circle of {radius}cm.&lt;br /&gt;
&lt;br /&gt;
When the quiz will be shown to the student the two questions will shown the same {radius} value.&lt;br /&gt;
&lt;br /&gt;
However the synchronization will work &#039;&#039;&#039;ONLY&#039;&#039;&#039; if the questions are kept in the &#039;&#039;&#039;SAME&#039;&#039;&#039; category and have the &#039;&#039;&#039;SAME NUMBER OF DATASETS&#039;&#039;&#039; .&lt;br /&gt;
&lt;br /&gt;
If you need to move the synchronized questions to another category, you need to do it by editing the questions.&lt;br /&gt;
&lt;br /&gt;
(This restriction should be released by sept. 2010).&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/discuss.php?d=150923 couple questions about &amp;quot;edit datasets page&amp;quot; in calculated questions] forum discussion&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;br /&gt;
&lt;br /&gt;
[[de:Berechnungsfragen]]&lt;br /&gt;
[[fr:Question calculée]]&lt;br /&gt;
[[zh:計算題]]&lt;br /&gt;
[[ja:計算問題タイプ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Private_files&amp;diff=103657</id>
		<title>Private files</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Private_files&amp;diff=103657"/>
		<updated>2013-03-17T12:24:56Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Private files management */  Emphasize &amp;quot;spara&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Repositories}}&lt;br /&gt;
In Moodle, each user has a private files area for uploading and managing a set of files.&lt;br /&gt;
&lt;br /&gt;
The private files area is accessible via &#039;&#039;Navigation &amp;gt; My home &amp;gt; My profile &amp;gt; My private files&#039;&#039; or the [[My private files block]]. If the private files repository is enabled by a site admin, it is available as a source within the filepicker when selecting files to use in a course.&lt;br /&gt;
&lt;br /&gt;
==Private files management==&lt;br /&gt;
&lt;br /&gt;
To add a file to your private files area&lt;br /&gt;
# On the Navigation menu, click My profile &amp;gt; My private files&lt;br /&gt;
# The file manager will appear.&lt;br /&gt;
# If desired, create a folder for your file(s)&lt;br /&gt;
#Click on the Add button to upload from the File picker or drag and drop from your desktop. It will look like the files are already there, but they aren&#039;t until you &#039;&#039;&#039;do the next step!&#039;&#039;&#039;&lt;br /&gt;
# Click the &#039;Save changes&#039; button&lt;br /&gt;
&lt;br /&gt;
[[File:newprivatefiles.png]]&lt;br /&gt;
&lt;br /&gt;
*Once uploaded, files will appear as thumbnails. Clicking the icons top right will display them in table or list view as an alternative.&lt;br /&gt;
[[File:uploadedprivatefiles.png]]&lt;br /&gt;
&lt;br /&gt;
===Making an alias/shortcut to a file in the private files area===&lt;br /&gt;
&lt;br /&gt;
If a file is uploaded into your private files area, it is possible when using it elsewhere on Moodle to select it as an alias/shortcut. This means that if you update the file in your private files area, it will automatically update elsewhere on Moodle.&lt;br /&gt;
&lt;br /&gt;
[[File:privatefilesalias.png]]&lt;br /&gt;
&lt;br /&gt;
See [[Working with files]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Private files size limit==&lt;br /&gt;
&lt;br /&gt;
The size limit for each user&#039;s private files area is set by a site administrator in User quota in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Security &amp;gt; Site policies&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
==Preventing access to Private files==&lt;br /&gt;
*To prevent all users having access to Private files, the administrator should disable (close the eye) of the repository in &#039;&#039;Settings&amp;gt;Site administration&amp;gt;Plugins&amp;gt;Repositories&amp;gt;Manage repositories.&#039;&#039;&lt;br /&gt;
*If  only students are to be prevented from accessing private files (but teachers etc, allowed) then a new role should be made and assigned system wide. See FAQ 6 in [[Repositories FAQ]] for more information.&lt;br /&gt;
&lt;br /&gt;
==Private files capabilities==&lt;br /&gt;
&lt;br /&gt;
* [[Capabilities/moodle/user:manageownfiles|Manage files in own private file area]]&lt;br /&gt;
*[[Capabilities/repository/user:view|View user private files]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Fitxategi_pribatuak]]&lt;br /&gt;
[[fr:Fichiers personnels]]&lt;br /&gt;
[[ja:プライベートファイル]]&lt;br /&gt;
[[de:Eigene Dateien]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Language_customisation&amp;diff=97472</id>
		<title>Language customisation</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Language_customisation&amp;diff=97472"/>
		<updated>2012-05-03T15:37:32Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Use filter to find the strings you want to customize */ Using debugging to find string identifier&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Language}}&lt;br /&gt;
Words or phrases (in any language) used on the site may be easily changed by an administrator using the language customization feature. For example, you may want to change the word &amp;quot;Course&amp;quot; to &amp;quot;Unit&amp;quot;. The process consists of 4 steps:&lt;br /&gt;
&lt;br /&gt;
# Check-out the strings&lt;br /&gt;
# Filter the strings you wish to customize&lt;br /&gt;
# Customize the strings&lt;br /&gt;
# Save and check-in the strings&lt;br /&gt;
&lt;br /&gt;
== Quick instructions for the impatient ==&lt;br /&gt;
&lt;br /&gt;
# Go to the &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language&amp;gt; Language customization&#039;&#039; page.&lt;br /&gt;
# Pick the language to customize from the pull down list.&lt;br /&gt;
# Click the &amp;quot;Check out strings to translator&amp;quot; button. This may take time to process.&lt;br /&gt;
# Click or Ctrl+Click to select files on the &amp;quot;Filter strings&amp;quot; interface.  Notice files are grouped.  For example, you will find the lesson strings under &amp;quot;mod&amp;quot; and moodle.php under core.&lt;br /&gt;
# After selecting the file(s), it is possible to use &amp;quot;string must contain&amp;quot; and other filters. For example, look at only string text that has &amp;quot;teacher&amp;quot; the file(s) you selected.&lt;br /&gt;
# Click &amp;quot;Save changes and continue editing&amp;quot; if you want to pick another filter or PHP file(s) to edit.&lt;br /&gt;
# Click &amp;quot;Save and check in string into files&amp;quot; to save all changes you have made.   &lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; Do not see any string changes?  Did you remember to use the &amp;quot;Save and check in string into files&amp;quot; button? Did you refresh your browser so it is not looking at a cached page? Did you edit the language file that is actually being used in your site, course or by the user?&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; Can&#039;t find the string you wish to change? Tick the &#039;Show origin of languages strings&#039; checkbox in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Development &amp;gt; Debugging&#039;&#039; then visit the page containing the string you want to customize.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
&lt;br /&gt;
Moodle is translated into many languages - see [http://download.moodle.org/langpack/ Moodle.org: Language packs] for their list and the translation completion status. The translations are distributed in so called language packages (or just lang packs) that are maintained by kind volunteers, community contributors and Moodle partners. Please read the page [[Translation]] first to understand how the whole localization machinery works.&lt;br /&gt;
&lt;br /&gt;
Moodle site administrators can customize any language pack to fit their individual needs (for example to use the term &amp;quot;Unit&amp;quot; instead of &amp;quot;Course&amp;quot;). You are discouraged from direct editing the files coming as a part official language pack. Such changes would be silently overwritten during the next upgrade. Instead, you should create a local language pack that holds all your changes from the official pack.&lt;br /&gt;
&lt;br /&gt;
Local language packs have the same structure as the official ones. They are saved in your Moodle data directory in moodledata/lang/xx_local/ folder where &#039;xx&#039; is the code of the language. You have to have the official language pack installed before you can customize it. Local language pack should contain just strings you have customized - you should not copy whole official language packs.&lt;br /&gt;
&lt;br /&gt;
When displaying a string, Moodle first looks if a local customization of it exists in moodledata/lang/xx_local/component_file.php. If so, it is used. If not, the string from the official language pack is used (eventually, if the string has not been translated yet, the original English version is displayed). Please note that the strings are cached for better performance so you have to purge Moodle caches after you modify a file in your xx_local pack (caches are purged automatically if you use the tool described below).&lt;br /&gt;
&lt;br /&gt;
== Using Language customization tool ==&lt;br /&gt;
&lt;br /&gt;
Moodle comes with a tool that allows you to edit your local language pack via web interface. This tool is available for the site administrators in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Language &amp;gt; Language customization&#039;&#039;. Please refer to the following workflow diagram.&lt;br /&gt;
&lt;br /&gt;
[[image:customlang-process.png|800px|thumb|left|Workflow of the language customization (click to enlarge)]]&lt;br /&gt;
&amp;lt;br clear=&amp;quot;both&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Check out strings into translator ===&lt;br /&gt;
&lt;br /&gt;
At the Language customization first page, select a language to customize and press the button &#039;Check out string into translator&#039;. During the checkout, Moodle loads the language strings from PHP files into its database. The language customization tool works with this database so the files in your xx_local pack are not touched unless your proceed to the final step of this workflow. If the xx_local language pack does not exist yet, Moodle automatically creates an empty one for you.&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; There is currently a problem with &amp;quot;execution time&amp;quot;. If you get the &amp;quot;Fatal error: Maximum execution time of 180 seconds exceeded&amp;quot; message, you will have to press the button &#039;Check out string into translator&#039; several times to get the operation completed. See [http://moodle.org/mod/forum/discuss.php?d=163375 forum discussion].&lt;br /&gt;
&lt;br /&gt;
=== Use filter to find the strings you want to customize ===&lt;br /&gt;
&lt;br /&gt;
[[Image:Language_string_M2_filter.png|thumb|right|Moodle 2.0 language filter]]&lt;br /&gt;
After the checkout, use the &amp;quot;filter strings&amp;quot; form to find strings you want to customize for your site. Not selecting any filters will display all strings in the language pack.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;Show strings of these components&#039;&#039; - Click or Ctrl+click to select one or more files that contain the string you want. &lt;br /&gt;
* &#039;&#039;Customized only&#039;&#039; - check this field to display only those strings that are already present in your xx_local pack.&lt;br /&gt;
* &#039;&#039;Help only&#039;&#039;&#039; - check this field to display only help tooltips, that is the texts used when clicking the yellow question mark icon. &lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; Starting in Moodle 2.0, help string identifiers must end with _help suffix.&lt;br /&gt;
* &#039;&#039;Modified only&#039;&#039; - displays only the strings that are modified in the current session. &lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; The term &#039;customized&#039; means strings that are saved on disk in your xx_local pack directory. The term &#039;modified&#039; represents the changes made since the last checkin string into the language pack. Customized strings (already saved in a file) are highlighted with green. Modified strings (not saved in a file yet) are highlighted with blue. &lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; You may want to use this option look at your current work before you check it in.&lt;br /&gt;
* &#039;&#039;Only strings containing&#039;&#039; - insert a phrase that must appear in the string. For example, if you put a word &#039;student&#039; here, you will get only those strings that contain this word. &lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; The &#039;Only strings&#039; filter can be used for a total search for a term used in your Moodle site for the selected language pack.&lt;br /&gt;
* &#039;&#039;String identifier&#039;&#039; - if you know the string identifier (it is the first parameter of the get_string() function), type it here. For example, the names of activity modules are defined in strings &#039;modulename&#039;. Finding where a particular string is saved can be difficult sometimes. The administrator can start a debugging function: Site administration&amp;gt;Development&amp;gt;Debugging and choose &amp;quot;Show origin of language strings&amp;quot;. Then if you append &amp;quot;?strings=1&amp;quot; (or &amp;quot;&amp;amp;strings=1&amp;quot; if there is already a parameter) to the end of the page URL, beside each string will be shown something like &amp;quot;{rememberusername/admin}&amp;quot;. The last part says which php file uses the string, so this one is in admin.php. If there is nothing after the / look in moodle.php. The first part, before the /, is the string identifier.  &lt;br /&gt;
&lt;br /&gt;
Use combination of filter settings to get the required set of strings.&lt;br /&gt;
&lt;br /&gt;
Click button &#039;Show strings&#039; for potential editing.&lt;br /&gt;
&lt;br /&gt;
=== Input your own translation ===&lt;br /&gt;
&lt;br /&gt;
The strings that pass all the conditions defined in the filter are displayed in a table. To replace the standard translation, put your own into the &#039;Local customization&#039; field. &lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039;If you want to delete your current customization , just delete the content of the &#039;Local customization&#039; field and click the &amp;quot;Save and continue editing&amp;quot;. The modifications that are going to be removed a customized string are highlighted in red.  If you made changes to a field previously &amp;quot;Save and continue editing&amp;quot; it will be highlighted in blue. &lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Save and continue&amp;quot; button before you change the filter settings and show a new set of strings.&lt;br /&gt;
&lt;br /&gt;
=== Saving your work into files ===&lt;br /&gt;
&lt;br /&gt;
As necessary, you may repeat the &amp;quot;show strings&amp;quot;, &amp;quot;local customization&amp;quot; and &amp;quot;Save and continue&amp;quot; process.  When you have made all the changes you want to make:&lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Save and check in strings into files&amp;quot; to process all changes made in the translator database to your local language pack.&lt;br /&gt;
&lt;br /&gt;
=== Writing the modifications into files ===&lt;br /&gt;
&lt;br /&gt;
During the checkin, the contents of the translator database are dumped into files in moodledata/lang/xx_local/ directory. &lt;br /&gt;
&lt;br /&gt;
Click &amp;quot;Save and check in strings into files&amp;quot; to process all changes made into your local language pack.&lt;br /&gt;
:&#039;&#039;Note:&#039;&#039; this operation removes the directory first and then re-creates it with the actual data. Therefore it is reasonable to not to touch the files directly after you have checked out them into the translator.&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Upgrading_to_Moodle_2.2&amp;diff=96519</id>
		<title>Upgrading to Moodle 2.2</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Upgrading_to_Moodle_2.2&amp;diff=96519"/>
		<updated>2012-03-18T10:17:54Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: form &amp;gt; from&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Installing Moodle}}&lt;br /&gt;
You can upgrade to Moodle 2.2 from Moodle 2.1, 2.0 or 1.9. If you are upgrading from 2.0, please also read [https://docs.moodle.org/21/en/Upgrading_to_Moodle_2.1 Upgrading to Moodle 2.1] . If upgrading from 1.9, please also read that and [https://docs.moodle.org/20/en/Upgrading_to_Moodle_2.0 Upgrading to Moodle 2.0]. After reading this you can upgrade directly to 2.2. &lt;br /&gt;
&lt;br /&gt;
If you are using an earlier version of Moodle, you must upgrade to the latest Moodle 1.9.x first.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;We advise that you test the upgrade first on a COPY of your production site, to make sure it works as you expect.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==System requirements==&lt;br /&gt;
&lt;br /&gt;
* PHP must be &#039;&#039;&#039;5.3.2&#039;&#039;&#039; or later&lt;br /&gt;
** Required PHP extensions: iconv, curl, ctype, zip, simplexml, spl, pcre, dom, xml, json&lt;br /&gt;
** Required PHP memory_limit at least 40MB (64MB or more recommended if you have a choice)&lt;br /&gt;
* Databases should be one of the following:&lt;br /&gt;
** MySQL 5.0.25 or later  (InnoDB storage engine highly recommended)&lt;br /&gt;
** PostgreSQL 8.3 or later&lt;br /&gt;
** Oracle 10.2 or later&lt;br /&gt;
** MS SQL 2005 or later&lt;br /&gt;
* Any standards-supporting browser from the past few years, for example:&lt;br /&gt;
** Firefox 3 or later &lt;br /&gt;
** Safari 3 or later &lt;br /&gt;
** Google Chrome 4 or later&lt;br /&gt;
** Opera 9 or later&lt;br /&gt;
** MS Internet Explorer 7 or later&lt;br /&gt;
&lt;br /&gt;
Note: The above system requirements are unchanged from Moodle 2.1.&lt;br /&gt;
&lt;br /&gt;
==Before upgrading please... ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOTE&#039;&#039;&#039;: The upgrade process will irreversibly modify the contents of your database &#039;&#039;&#039;and&#039;&#039;&#039; your moodledata file storage area. If something goes wrong you &#039;&#039;&#039;cannot&#039;&#039;&#039; go back. It is vital that you take good backups of both moodledata and the database in case you have problems with the upgrade. If you are not sure how see [[Site backup]] or ask in the moodle.org forums (explaining what your operating system is).  &lt;br /&gt;
&lt;br /&gt;
* Read the [[:dev:Moodle 2.2 release notes|Moodle 2.2 release notes]]  and check the [[:Category:New features|list of new features]]&lt;br /&gt;
* Check your site to make sure it meets all system requirements for 2.2 in &#039;&#039;Settings &amp;gt; Site administration &amp;gt; Server &amp;gt; [[Environment]]&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Do a full database backup!&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Do a full moodledata backup&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;Check your backups carefully&#039;&#039;&#039;&lt;br /&gt;
* Remember to purge PHP cache if using any PHP accelerator&lt;br /&gt;
&lt;br /&gt;
==Possible issues that may affect you==&lt;br /&gt;
&lt;br /&gt;
* If you have custom reports, there have been changes that may require (simple) changes to be made to their code. See the developer documentation [[:dev:General report plugins]] for details.&lt;br /&gt;
* Global search has been removed from core as it was broken.  (A new global search is being written for 2.3.)&lt;br /&gt;
* Some web service functions have been deprecated.  They still work, but check any web service connections you may have to your Moodle for the future.&lt;br /&gt;
&lt;br /&gt;
==Checking database schema - old sites==&lt;br /&gt;
&lt;br /&gt;
If your Moodle site has been upgraded through many prior versions it is possible that there will be some problems with the database schema (compared to a fresh 2.0 installation). This may cause the upgrade to fail. If your site started life prior to Moodle 2.0 it is a very good idea to check and correct the database schema before upgrading. See [[Verify Database Schema]]. You should also run the database integrity checks in the XMLDB editor, see the &#039;See also&#039; for a link to extra scripts to check for other discrepancies.&lt;br /&gt;
&lt;br /&gt;
==Now upgrade==&lt;br /&gt;
&lt;br /&gt;
Once you have satisfied the requirements for Moodle 2.2, follow the instructions on the [[Upgrading|upgrading]] page.&lt;br /&gt;
&lt;br /&gt;
On Linux servers, Moodle 2.2 supports running the [[CLI|upgrade from the command line]], rather than through a web browser. This is likely to be more reliable, particularly for large sites.&lt;br /&gt;
&lt;br /&gt;
==After upgrade==&lt;br /&gt;
&lt;br /&gt;
The config.php file from your 2.0 installation should work fine but if you take a look at config-dist.php that came with Moodle 2.0 there are more/different options available (e.g. database drivers and settings). It&#039;s a good idea to map your old config.php settings to a new one based on the 2.2 config-dist.php.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[dev:Moodle 2.2 release notes|Moodle 2.2 release notes]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Mise à jour à Moodle 2.2]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Community_finder_block&amp;diff=82504</id>
		<title>Community finder block</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Community_finder_block&amp;diff=82504"/>
		<updated>2011-04-02T18:08:23Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Some definitions */ every course(s)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}The community block, in Moodle 2.0 onwards, enables users to search for courses to download or enrol in on a community hub and lists courses which the user is enrolled in.&lt;br /&gt;
== the block==&lt;br /&gt;
[[Image:Community block.png]]&lt;br /&gt;
== the search page==&lt;br /&gt;
[[Image:Search_for_community_course.jpg]]&lt;br /&gt;
==Some definitions ==&lt;br /&gt;
*&#039;&#039;&#039;This hub is trusted by Moodle.org&#039;&#039;&#039;: this is a label given by Moodle.org. It recognizes the hub as a safe hub. However Moodle.org didn&#039;t check every course on this hub for virus, copyright... As anywhere else, you should remain cautious about anything you download on internet.&lt;br /&gt;
*&#039;&#039;&#039;Registered on this hub&#039;&#039;&#039;: your Moodle site is registered on this hub. It means that your Moodle administrator registered to this hub in order to receive email alert or to let teacher publish courses.&lt;br /&gt;
&lt;br /&gt;
==Capabilities==&lt;br /&gt;
As Moodle administrator you need to assign the following capabilities:&lt;br /&gt;
* [[Capabilities/moodle/community:add|moodle/community:add]] - allows a user to use the Community block to search for courses on a hub&lt;br /&gt;
* [[Capabilities/moodle/community:download|moodle/community:download]] - allows a user to use the Community block to download courses from a hub&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[Community hub]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Block]]&lt;br /&gt;
[[Category:Hub]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=AMOS&amp;diff=81069</id>
		<title>AMOS</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=AMOS&amp;diff=81069"/>
		<updated>2011-02-04T07:59:44Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Using stashes */ peekabo buttons&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 2.0}}&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;AMOS stands for Automated Manipulation Of Strings. AMOS is a central repository of Moodle strings and their history. It tracks the addition of English strings into Moodle code, gathers translations, handles common translation tasks and generates language packages to be deployed on Moodle servers.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The name was chosen in honour of [http://en.wikipedia.org/wiki/John_Amos_Comenius John Amos Comenius], the author of &#039;&#039;Janua linguarum reserata&#039;&#039; (Gate to Languages Unlocked). Sorry Tori ;-)&lt;br /&gt;
&lt;br /&gt;
AMOS is installed at http://lang.moodle.org. If you want to use it, please create an account there. Language pack [[Translation_credits|maintainers]] should then send an email to [mailto:translation@moodle.org translation@moodle.org] (Koen) to get write access for their language.&lt;br /&gt;
&lt;br /&gt;
AMOS provides support for community contributions into the translation. If you want to participate, just create an account at http://lang.moodle.org. There is no need to contact us in this case but you should definitely contact the language maintainer and coordinate your work.&lt;br /&gt;
&lt;br /&gt;
== Basic concepts ==&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-navigation.png|100px|thumb|right|AMOS tools in the navigation block]]&lt;br /&gt;
AMOS consists of several tools available via the main navigation block - Translator, Stage, Stashes, Contributions and Log.&lt;br /&gt;
&lt;br /&gt;
* User - AMOS is used by languages pack maintainers and by the community members who want to contribute&lt;br /&gt;
* Translator - is a tool that allows you to filter strings you want to work on and translate them&lt;br /&gt;
* Stage - is a temporary working area that holds the strings you have translated during the current session. Maintainers can permanently commit the stage into the strings repository. Contributors can submit the stage for maintainers.&lt;br /&gt;
* Stashes - are snapshots of the stage. Imagine them as ordinary files at your computer where you can save your work. You can submit your stash to the language pack maintainers.&lt;br /&gt;
* Contributions - is a database tracking all submitted contributions and their current status. Records in this database are like issues in Moodle tracker with the translated strings attached.&lt;br /&gt;
* Repository - a database of all Moodle strings and their history running at lang.moodle.org server&lt;br /&gt;
* Log - displays the log of all modifications of Moodle strings.&lt;br /&gt;
&lt;br /&gt;
== Translation workflow ==&lt;br /&gt;
&lt;br /&gt;
The following data flow diagram illustrates how AMOS tools are used during the translation process.&lt;br /&gt;
&lt;br /&gt;
[[image:amos-workflow.png]]&lt;br /&gt;
&lt;br /&gt;
The key AMOS component is the staging area or shortly the stage. It holds translated strings temporarily during your current login session. If you log out, the stage is cleared (though there is a backup - see below). There are several ways how translations can be staged, that is how translated strings can be put into the stage:&lt;br /&gt;
&lt;br /&gt;
* by using AMOS translator&lt;br /&gt;
* by importing strings from an uploaded file&lt;br /&gt;
* by applying a previously created stash&lt;br /&gt;
* by applying a submitted contribution&lt;br /&gt;
&lt;br /&gt;
Language pack maintainers have write access into the AMOS strings repository. Therefore they can commit their stage permanently. Once the stage is committed, staged strings are stored in the AMOS repository. Every hour at xx:45, AMOS generates ZIP packages from the most recent snapshot of the repository. These ZIP packages are published at http://download.moodle.org/langpack/2.0/ for download. Moodle sites can install and update language packages automatically from the &#039;&#039;Site administration &amp;gt; Language &amp;gt; Language packs&#039;&#039; page.&lt;br /&gt;
&lt;br /&gt;
Community members do not have write access into the repository so they can&#039;t commit their stage. Instead, they can submit it to the maintainers. By submitting a stage, a new contribution record is created and language pack maintainers are notified by automatic email message. Maintainers can review the submitted contribution and, if they accept it, commit it on behalf of the contributor.&lt;br /&gt;
&lt;br /&gt;
The stage can be also saved so you can interrupt your work and continue next time you come back to the site. The stage is saved into so called stashing area. Stashing area consists of stashes. A new stash is nothing but a snapshot copy of your current stage. AMOS automatically keeps one stash for you as a backup copy of your most recent stage. A stash can be submitted to the maintainers, too.&lt;br /&gt;
&lt;br /&gt;
== AMOS tools ==&lt;br /&gt;
&lt;br /&gt;
=== Using the translator tool ===&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-translator.png|300px|thumb|right|AMOS Translator tool]]&lt;br /&gt;
The translator tool page has two main parts. At the top, there is a filter form (1). You use that filter to get the strings you want to translate. When the filter settings are saved (2), a table with the filtered strings is displayed below.&lt;br /&gt;
&lt;br /&gt;
Every row in the table represents a single string. The table has four columns. The first column (3) describes the version (or branch) where the string is used, its identifier and its component. You can see a text like&lt;br /&gt;
&lt;br /&gt;
 2.0 [completiondate,coursereport_completion]&lt;br /&gt;
&lt;br /&gt;
That reads: this string is used in Moodle 2.0, its identifier is &#039;completiondate&#039; and it belongs to &#039;courserepor_completion&#039; component.&lt;br /&gt;
&lt;br /&gt;
The second column (4) contains the English original of the string. Below the text, you can see Google icon. Click that icon to get automatic translation of the string into the language being translated. The next column contains a code of the language that this string is being translated to (for example &amp;quot;cs&amp;quot; for Czech).&lt;br /&gt;
&lt;br /&gt;
Finally the last column contains the translation itself. If it is empty, the string is not translated yet, otherwise it displays the current translation. &#039;&#039;&#039;Click in the cell to turn it into the input editor.&#039;&#039;&#039; Insert the translation and click outside the cell to stage the translation. Note there is no submit button, the text is sent to the stage automatically in the background. You can see that the colour of the cell turned blue. Blue colour signalizes that the translation is currently staged.&lt;br /&gt;
&lt;br /&gt;
You have many options of how to use the strings filter. You can work on a single component or all missing strings at once. You can search for strings containing a given text (either in English or the translated string) etc. You can check for strings in older versions, too but those strings are read-only. They get automatically pulled into AMOS from the CVS repository of 1.x translations.&lt;br /&gt;
&lt;br /&gt;
The &#039;permalink&#039; below the filter&#039;s submit button can be used to keep the current filter settings. For example, you can bookmark a setting use regularly or you can copy the link URL and send it to somebody so they can set their filter just by visiting that URL.&lt;br /&gt;
&lt;br /&gt;
When you finish translating, do not forget to visit the stage page. You probably want either commit it (if you are a lang pack maintainer) or submit it to maintainers so they can review your work and include it into the language pack.&lt;br /&gt;
&lt;br /&gt;
=== Using the stage ===&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-stage-contrib.png|300px|thumb|right|Strings staged by a contributor]]&lt;br /&gt;
The translated strings are put into a temporary area called &#039;&#039;stage&#039;&#039; immediately after the cursor leaves the editor field. The stage holds your work before it is either committed into the repository (if you are language pack maintainer) or submitted to the maintainers for inclusion or stashed.&lt;br /&gt;
&lt;br /&gt;
The stage is cleared when you logout. You have to explicitly commit or stash the stage so it is saved permanently. If you forget to do it, or there is a problem with the connectivity, your browser crashes or whatever, you can find your most recent snapshot of the stage in autosave stash.&lt;br /&gt;
&lt;br /&gt;
If you are language pack maintainer, you can commit the stage into the repository so your work is registered and the translated strings become part of the official language package. Language packages in ZIP format are generated every hour (at xx:45) and are published at http://download.moodle.org/langpack/2.0/. At the same time, they become available for Moodle sites for automatic update.&lt;br /&gt;
&lt;br /&gt;
=== Importing a file ===&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-stage-empty.png|300px|thumb|right|Empty stage allows you to import strings from a file]]&lt;br /&gt;
Strings can be translated offline and uploaded back to AMOS. The only supported format at the moment is common PHP format used by Moodle where strings are defined in associative array called $string. For obvious security reasons, AMOS can not actually execute PHP files uploaded by users. Instead, it parses the uploaded file in a similar way as PHP parser, looking for patterns that are considered as valid string definition. That means that not every valid PHP code is valid string definition. AMOS parser requires following conditions are met:&lt;br /&gt;
&lt;br /&gt;
* the filename is valid component name used by Moodle, for example moodle.php, enrol_manual.php or workshop.php&lt;br /&gt;
* the file is valid PHP code without syntax errors - that means is passes the PHP lint check&lt;br /&gt;
* strings are defined as elements of global array $string&lt;br /&gt;
* strings are single quoted constants&lt;br /&gt;
&lt;br /&gt;
Example of a valid file to import into AMOS (filename countries.php, Czech translation)&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?php&lt;br /&gt;
 &lt;br /&gt;
 $string[&#039;AE&#039;] = &#039;Spojené Arabské emiráty&#039;;&lt;br /&gt;
 $string[&#039;AF&#039;] = &#039;Afghánistán&#039;;&lt;br /&gt;
 $string[&#039;CH&#039;] = &#039;Švýcarsko&#039;;&lt;br /&gt;
 $string[&#039;HU&#039;] = &#039;Maďarsko&#039;;&lt;br /&gt;
 &lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
During the import, strings found in the file are added into your stage as if they were translated via web. You can commit them into repository if you have such privilege.&lt;br /&gt;
&lt;br /&gt;
=== Using stashes ===&lt;br /&gt;
&lt;br /&gt;
At any moment, you can save a snapshot of the current stage. We call such snapshot a &#039;&#039;stash&#039;&#039;. Stashed strings are kept forever until you drop them manually (please do not abuse this and keep your stashes reasonable big). To manage your stash, click on Stashes in the right menu of AMOS. You just see a list of the stashes. There are &amp;quot;peekaboo&amp;quot; buttons that appear when you mouse hoover over the stashes. The stash can be &#039;&#039;applied&#039;&#039; so that the stashed strings are copied back to the stage. What the &#039;&#039;pop&#039;&#039; does is apply and drop (delete) the stash. &#039;&#039;drop&#039;&#039; is like delete. &#039;&#039;submit to maintainer&#039;&#039; opens a form for doing just that.&lt;br /&gt;
&lt;br /&gt;
There is one special stash record for every user called autosave stash. This stash keeps the most recent state of the stage. You may find it useful if you loose the current stage for any reason - your browser crashes, your internet connectivity dies or you accidentally unstage all strings. If that happens, just apply the autosave stash to get your work back. The autosave stash is updated every time you stage a string. So if your stage is empty and your autosave stash is full of strings and you go into the translator first without applying the stash, the autosave will be replaced with the new translated string. We recommend to experiment a bit with this feature first.&lt;br /&gt;
&lt;br /&gt;
=== Using the log tool ===&lt;br /&gt;
&lt;br /&gt;
The Log page allows even anonymous users to search in the history of commits tracked by AMOS. At the top of the page there is a filter that allows you to look for a particular information or report. It is important to realize how the filter actually works. Searching and filtering happens in two steps (this was necessary for performance reasons):&lt;br /&gt;
&lt;br /&gt;
* Firstly, commit records are searched based on the criteria specified in the Commit filter form. If there are more commits found matching the filter settings, only 100 most recent commits are processed.&lt;br /&gt;
* Then, within the commits found, either all string modification records are returned, or you can filter these records, too. Settings in String filter form section are used in that case.&lt;br /&gt;
&lt;br /&gt;
By default, the filter looks for all commits since the last time you logged in and than displays only strings at the currently translated branch modified by those commits.&lt;br /&gt;
&lt;br /&gt;
== Contributing to a language pack ==&lt;br /&gt;
&lt;br /&gt;
AMOS allows community members to help with the translation of Moodle strings. AMOS Contributions page tracks all submitted translations and their current status. Before you start working on a translation, please communicate with the language pack maintainer (to be found on https://docs.moodle.org/en/Translation_credits).&lt;br /&gt;
&lt;br /&gt;
=== Steps for the contributor ===&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-contribution-new.png|300px|thumb|right|Submitting a contribution form]]&lt;br /&gt;
# Contact the language pack maintainer about your intention to contribute to the language pack&lt;br /&gt;
# Use AMOS translator interface to translate missing strings or amend the current translation&lt;br /&gt;
# Go to the Stage page&lt;br /&gt;
# Click &#039;Submit to maintainers&#039; button&lt;br /&gt;
# At &#039;Submitting a contribution&#039; page, please provide a message for maintainers describing your work and why you would like to see your contribution included. You can cancel the submission at this moment yet. If you are sure, click &#039;Submit to maintainers&#039;.&lt;br /&gt;
# Your stage will submitted into the contributions database. If there were more languages affected by your contribution, the stage will be divided into separate contribution records, one per each language. The language pack maintainers will be notified by email about your new contribution.&lt;br /&gt;
# Language pack maintainers will be able to apply your work into their stage, review it and eventually commit. You will receive automatically generated email when the status of contribution changes (typically when a maintainer starts a review of your work and then when they accept or reject it).&lt;br /&gt;
# Use contribution record comments for further communication with the maintainer about the submitted translation.&lt;br /&gt;
&lt;br /&gt;
=== Steps for the maintainer ===&lt;br /&gt;
&lt;br /&gt;
[[image:amos-screenshot-contribution-details.png|300px|thumb|right|Contribution details page]]&lt;br /&gt;
# When a user submits new contribution, you will receive automatically generated email from AMOS&lt;br /&gt;
# Go to the Contributions page to see a list of all new incoming contributions. Click the link in the table to open the contribution details page&lt;br /&gt;
# Press &#039;Start review&#039; button. That will assign the contribution to yourself, change the status from &#039;New&#039; to &#039;In review&#039;, send automatically generated email to the contributor and will copy the submitted strings into your stage. You should check that your stage is empty before you apply the submitted strings, unless you want to merge several contributions into one commit.&lt;br /&gt;
# Review the submitted strings, eventually edit them. Commit the stage. It is nice to mention the contributor&#039;s name in the commit message and attribute the original authorship to them.&lt;br /&gt;
# Go back to the contribution record and change the status to Accepted or Rejected. Automatically generated email will be sent to the contributor whenever you change the status.&lt;br /&gt;
# Use contribution record comments for further communication with the contributor about the submitted translation.&lt;br /&gt;
# Accepted and Rejected contributions are not shown at the contributions page unless you press &#039;Show resolved contributions&#039; button.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Translation 2.0]] for more information about the process of Moodle 2.x translation&lt;br /&gt;
* [[Development:Languages/AMOS]] for the AMOS internals documentation&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
[[fr:AMOS]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=80366</id>
		<title>Embedded Answers (Cloze) question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=80366"/>
		<updated>2011-01-15T12:14:33Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Importing CLOZE questions */ straight text give ONE question&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&#039;&#039;&#039;Embedded answers (Cloze)&#039;&#039;&#039; questions consist of a passage of text (in Moodle format) that has various answers embedded within it, including multiple choice, short answers and numerical answers.&lt;br /&gt;
&lt;br /&gt;
There is currently no graphical interface to create these questions - you need to specify the question format using the text box or by importing them from external files. &lt;br /&gt;
&lt;br /&gt;
Lots of people suggest that [[Hot Potatoes]] software is the easiest way to create Embedded answer (Cloze) questions.  Once you have created your questions on your PC, you can then import them into Moodle&#039;s quiz module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Question set-up==&lt;br /&gt;
&lt;br /&gt;
#Select the question category&lt;br /&gt;
#Give the question a descriptive name - this allows you to identify it in the question bank.&lt;br /&gt;
#Enter the passage of text (in Moodle format - see [[Embedded_Answers_%28Cloze%29_question_type#Format|Format]] below) into the &#039;question text&#039; field.&lt;br /&gt;
#Select an image to display if you want to add a picture to the question. For the student, it appears immediately above the question text.&lt;br /&gt;
#Set the &#039;default question grade&#039; (i.e. the maximum number of marks for this question).&lt;br /&gt;
#Set the &#039;Penalty factor&#039; (see [[Embedded_Answers_%28Cloze%29_question_type#Penalty_factor|Penalty factor]] below).&lt;br /&gt;
#If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.&lt;br /&gt;
#The editor has been modified and allows you to test if your syntax is good. The different questions elements decoded will be displayed and syntax errors pinpoint. However, it cannot check if the question decoded is two questions in one because of an error syntax.&lt;br /&gt;
#Click Save changes to add the question to the category.&lt;br /&gt;
&lt;br /&gt;
=== Penalty factor ===&lt;br /&gt;
&lt;br /&gt;
The &#039;penalty factor&#039; only applies when the question is used in a quiz using adaptive mode - i.e. where the student is allowed multiple attempts at a question even within the same attempt at the quiz. If the penalty factor is more than 0, then the student will lose that proportion of the &#039;&#039;&#039;maximum&#039;&#039;&#039; grade upon each successive attempt. For example, if the default question grade is 10, and the penalty factor is 0.2, then each successive attempt after the first one will incur a penalty of 0.2 x 10 = 2 points.&lt;br /&gt;
&lt;br /&gt;
==Question rendering==&lt;br /&gt;
&lt;br /&gt;
The question answer INPUT HTML ELEMENT ( Short and Numerical) or SELECT HTML ELEMENT (multichoice) are normally displayed in-line with the text.&lt;br /&gt;
&lt;br /&gt;
The size of INPUT HTML ELEMENT ( Short and Numerical) will be adjustable to the length of the longest answer (good or bad) + a random number (0 to 15% total length).([[User:Pierre Pichet|Pierre Pichet]] 15:37, 26 January 2008 (CST))&lt;br /&gt;
&lt;br /&gt;
The size will adjust to the length of the student response when displayed in the grading and feedback process.&lt;br /&gt;
&lt;br /&gt;
The size of the SELECT HTML ELEMENT (multichoice) adjusts itself automatically to the longest answer.&lt;br /&gt;
&lt;br /&gt;
==Format==&lt;br /&gt;
&lt;br /&gt;
Questions consist of a passage of text (in Moodle format) that has various sub-questions embedded within it, including&lt;br /&gt;
&lt;br /&gt;
* short answers (SHORTANSWER or SA or MW), case is unimportant,&lt;br /&gt;
* short answers (SHORTANSWER_C or SAC or MWC), case must match,&lt;br /&gt;
* numerical answers (NUMERICAL or NM),&lt;br /&gt;
* multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text&lt;br /&gt;
* multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or&lt;br /&gt;
* multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.&lt;br /&gt;
&lt;br /&gt;
For full details of the format for embedded-answers questions, see the [[Embedded_Answers_%28Cloze%29_question_type#Detailed_syntax_explanations|detailed syntax explanation]] below.&lt;br /&gt;
&lt;br /&gt;
NB: Be careful when copying a cloze type question into the WYSIWYG HTML editor, as line breaks tend to get added, which destroys the question.&lt;br /&gt;
&lt;br /&gt;
If the correct answer contains } # ~ / &amp;quot; or \ you will have to escape them by putting a \ in front of each such character. The { shouldn&#039;t be escaped, this can be vital in getting TeX expressions to work. In the feedback ~ and } must be escaped otherwise it will be interpreted as &#039;&#039;the next answer&#039;&#039; or &#039;&#039;end of the short answer section&#039;&#039; respectively. Quotation signs: &amp;quot; can lead to trouble anyhow in both places. Use the HTML entity: &amp;amp; quot; (without the space between &#039;&#039;&amp;amp;&#039;&#039; and &#039;&#039;quot;&#039;&#039;). If you want to have Mathematical symbols there can be problems with the \ used in TeX expressions. One alternative can be to use [[unicode]] characters. &lt;br /&gt;
&lt;br /&gt;
See the notes further down about numerical embedded question!&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
====Example 1====&lt;br /&gt;
The following text creates a simple embedded-answers question:&lt;br /&gt;
&lt;br /&gt;
 Match the following cities with the correct state:&lt;br /&gt;
 * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}&lt;br /&gt;
 * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}&lt;br /&gt;
 The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!&lt;br /&gt;
 ~%50%Marseille#No, that is the second largest city in France (after&lt;br /&gt;
 Paris).~*#Wrong answer. The capital of France is Paris, of course.}.&lt;br /&gt;
&lt;br /&gt;
And the result will be:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Cloze.gif|Cloze question type]] &lt;br /&gt;
&lt;br /&gt;
====Example 2====&lt;br /&gt;
&lt;br /&gt;
 This question consists of some text with an answer embedded right here {1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and right after that you will have to deal with this short answer {1:SHORTANSWER:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and finally we have a floating point number {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8~%50%23.8:2#Feedback for half credit answer in the nearby region of the correct answer}.&lt;br /&gt;
 The  multichoice question can also be shown in the vertical display of the standard moodle multiple choice.&lt;br /&gt;
 {2:MCV:1. Wrong answer#Feedback for this wrong answer~2. Another wrong answer#Feedback for the other wrong answer~=3. Correct answer#Feedback for correct answer~%50%4. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 Or in an horizontal display that is included here in a table&lt;br /&gt;
 {2:MCH:a. Wrong answer#Feedback for this wrong answer~b. Another wrong answer#Feedback for the other wrong answer~=c. Correct answer#Feedback for correct answer~%50%d. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 A shortanswer question where case must match. Write moodle in upper case letters {1:SHORTANSWER_C:moodle#Feedback for moodle in lower case ~=MOODLE#Feedback for MOODLE in upper case ~%50%Moodle#Feedback for only first letter in upper case}&lt;br /&gt;
 Note that addresses like www.moodle.org and smileys :-) all work as normal:&lt;br /&gt;
 a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion}&lt;br /&gt;
 b) What grade would you give it? {3:NUMERICAL:=3:2}&lt;br /&gt;
&lt;br /&gt;
[[Image:Cloze example.png]]&lt;br /&gt;
&lt;br /&gt;
Some things to note:&lt;br /&gt;
* The individual embedded answers are represented by the code in braces {}.&lt;br /&gt;
* The number at the start is the &#039;weight&#039;, so in this case each answer contributes an equal share of the overall grade.&lt;br /&gt;
* The correct option in each case is preceded either by an = sign or by %100%. &lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
* The text appearing after the # that follows each option is the feedback that the student will see if they choose that option.&lt;br /&gt;
* If the student enters &#039;Marseille&#039; in the final example, they score 50% of the total grade.&lt;br /&gt;
* The asterisk * preceding the &amp;quot;Wrong answer&amp;quot; feedback in the final example means that the student will see this feedback if they enter anything other than &amp;quot;Paris&amp;quot; or &amp;quot;Marseille&amp;quot;.&lt;br /&gt;
* For multiple choice vertical or horizontal rendering there is no automatic numbering, though can added at each answer.&lt;br /&gt;
&lt;br /&gt;
==Detailed syntax explanations==&lt;br /&gt;
# all question items within a cloze-type question are coded inside curled braces { }&lt;br /&gt;
# the number which appears between the opening brace and the colon {1: is the weighting of that item; if it is set at 1 for all the items, it needs not be specified, so you can have {:&lt;br /&gt;
# after the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL&lt;br /&gt;
# &#039;&#039;&#039;NOTE&#039;&#039;&#039;.- If you have installed the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=338 REGEXP question type plugin] you can also use the REGEXP question type&lt;br /&gt;
# the syntax for MULTICHOICE and SHORTANSWER is the same; the only difference is in the displaying of the item to the student&lt;br /&gt;
# the order of the various answers is indifferent (except if you want a catch-all for wrong answers, see #13 below)&lt;br /&gt;
# a correct answer is preceded with the equal sign = or a percentage (usually %100%) - &#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
# a wrong answer is preceded with nothing or a percentage (usually %0%)&lt;br /&gt;
# you can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage&lt;br /&gt;
# all answers except the first one are separated from one another by the tilde ~ sign&lt;br /&gt;
# answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter&lt;br /&gt;
# note that the feedback message and (since [[User:Pierre Pichet|Pierre Pichet]] 24 May 2008 )in 1.9 the correct answer are displayed in a small popup window (if and when the correct and or feedback have been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title &amp;quot;feedback&amp;quot; and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.&lt;br /&gt;
# in the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a &amp;quot;wrong, try again&amp;quot; feedback; you can do this by inserting an asterisk &#039;&#039;&#039;*&#039;&#039;&#039; as &#039;&#039;&#039;the very last expected answer&#039;&#039;&#039; in your formula&lt;br /&gt;
# unfortunately in MULTICHOICE MODE it is not possible to get the answers to be scrambled&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Numerical Cloze questions==	 &lt;br /&gt;
		 &lt;br /&gt;
From the student perspective, a numerical Cloze question looks just like a short-answer question or &#039;&#039;fill in the blanks&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. You can also express your answer in some different numerical formats. 23.4 23,4 (some countries use , as a decimal separator) and 2.34E+1 (meaning 2.34*10^1) would be interpreted as the same.&lt;br /&gt;
&lt;br /&gt;
=== False positives ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; the following examples of false positives do &#039;&#039;&#039;not&#039;&#039;&#039; apply to Moodle 1.8+, where you cannot use percentages or fractions as the answers in a numerical Cloze test; Moodle will generate an error if you try to save such a question. However the following may be relevant for earlier versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
 More examples:	 &lt;br /&gt;
 0.5 accepts .5 0.5 ,5 0,5 0.500 5e-1 5E-1 but not 1/2 50% 	 &lt;br /&gt;
 50% accepts 50% 50.0% 5E1% 50/100 even &#039;&#039;&#039;50/1000 50&#039;&#039;&#039; but not 500/1000 0.5	 &lt;br /&gt;
 1/2 accepts 1/2 &#039;&#039;&#039;1/3 1twenty&#039;&#039;&#039; but not 2/4 0.5 0,5 3/6 50% ½	 &lt;br /&gt;
 ½ accepts ½	 &lt;br /&gt;
 HALF doesn&#039;t even accept HALF (maybe &#039;&#039;&#039;0&#039;&#039;&#039;?)	 &lt;br /&gt;
&lt;br /&gt;
If you want to accept several variants you can have them in the same {} but &#039;&#039;&#039;be careful, notice the &amp;quot;false positives&amp;quot; in bold&#039;&#039;&#039;!&lt;br /&gt;
&lt;br /&gt;
===Syntax for numerical Cloze questions===&lt;br /&gt;
&lt;br /&gt;
The format of a NUMERICAL Cloze question is similar to that of the other Cloze types and they can be mixed in the same question. As with other Cloze tests, you write your question or incomplete text, and add the Cloze code at the point where the student is supposed to enter their numerical answer.&lt;br /&gt;
&lt;br /&gt;
An example of the syntax used is shown below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: &#039;&#039;&#039; It is preferable to write the code in &#039;source code&#039; mode. The WSIWYG editor can insert linebreaks that make the question not function. The linebreak in the example box below is for readability only! A problem with these questions is the readability of the code! :(	&lt;br /&gt;
		 &lt;br /&gt;
 {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8	 &lt;br /&gt;
 ~%50%23.8:2#Feedback for ½credit near correct answer}. 	 &lt;br /&gt;
	 &lt;br /&gt;
In this example:&lt;br /&gt;
* 2: is the question point weight, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.&lt;br /&gt;
* NUMERICAL: says what kind of question it is. It must be in CAPS. &lt;br /&gt;
* =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)	 &lt;br /&gt;
* #Feedback for correct answer 23.8 is preceded by #&lt;br /&gt;
* ~%50%23.8:2 ~ is the separator for answer alternatives %50% means this answer would get 50% of the score that the more precise answer had gotten. Because the tolerance here is 2, 21.8 to 25.8 would get this point and feedback.&lt;br /&gt;
&lt;br /&gt;
The feedback (which is seen within a popup window when the user hovers over the answer space) is formattable with HTML tags. For example, if you want an exponent, surround it with superscript tags: &amp;amp;lt;sup&amp;amp;gt; &amp;amp;lt;/sup&amp;amp;gt;. You can even include pictures in the feedback popup, but you must clean out all &amp;quot; characters and save while still in source code mode (not WYSIWYG). So, this works in feedback popup:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=Something.gif /&amp;gt;}	 &lt;br /&gt;
but not this:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=&amp;quot;Something.gif&amp;quot; /&amp;gt;}	 &lt;br /&gt;
&lt;br /&gt;
(ALGEBRA and TEX filters don&#039;t work in the feedback popups, but they can be very useful in the question writing for math/science expressions). But you can use [[Unicode]] characters.	 &lt;br /&gt;
&lt;br /&gt;
If you want to give feedback for any answer that didn&#039;t fit the intervals you already have specified feedback for, add some BIG general intervals, like for positive answers (if they aren&#039;t bigger than 20000 you could add:	 &lt;br /&gt;
 ~%0%10000.0001:10000#Feedback for unspecified not_right answers}	 &lt;br /&gt;
This would give feedback for anything from 0.0001 to 20000.0001 (that hadn&#039;t already gotten feedback). I didn&#039;t want to include 0 since that special case as well as negative ought to have specific reactions.	 &lt;br /&gt;
 ~%0%0#Hey! It can&#039;t be zero	 &lt;br /&gt;
 ~%0%-10000.0001:10000#We just want the size here,	 &lt;br /&gt;
 so a negative value is not what we want}			 &lt;br /&gt;
&lt;br /&gt;
Numerical questions could, before version 1.7, also have case-insensitive non-numerical answers. This is useful whenever the answer for a numerical question is something like +inf, -inf, NaN etc.&lt;br /&gt;
==Importing CLOZE questions==&lt;br /&gt;
If you try importing directly as CLOZE this text:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Single line per question! Match the following cities with the correct state:&lt;br /&gt;
* San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
* Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}&lt;br /&gt;
* Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
* Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}&lt;br /&gt;
&lt;br /&gt;
The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}.&lt;br /&gt;
&lt;br /&gt;
23+ 0.8 = {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8 ~%50%23.8:2#Feedback for ½credit near correct answer}. 	 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You would get all three questions as different parts of &#039;&#039;&#039;ONE question&#039;&#039;&#039;. (NOTE see that there are no linebreaks between the { } !)&lt;br /&gt;
&lt;br /&gt;
Multiple CLOZE questions can be imported using the XML format:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- question: 1  --&amp;gt;&lt;br /&gt;
&amp;lt;question type=&amp;quot;cloze&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;&amp;lt;text&amp;gt;Book Test #1&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;questiontext&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;![CDATA[..............]]&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/questiontext&amp;gt;&lt;br /&gt;
&amp;lt;generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;shuffleanswers&amp;gt;0&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- question: 2 --&amp;gt;&lt;br /&gt;
&amp;lt;question type=&amp;quot;cloze&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;&amp;lt;text&amp;gt;Book Test #2&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;questiontext&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;![CDATA[............]]&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/questiontext&amp;gt;&lt;br /&gt;
&amp;lt;generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;shuffleanswers&amp;gt;0&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/quiz&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
You would put the question text icluding CLOZE code in the  .......  spaces.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
This information was drawn from:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36521 Is there a guide to using the cloze format?] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36430&amp;amp;parent=170308 Cloze-type question syntax] forum post&lt;br /&gt;
&lt;br /&gt;
[[fr:Question Cloze à réponses intégrés]]&lt;br /&gt;
[[ja: 穴埋め問題 ( Cloze ) タイプ]]&lt;br /&gt;
[[de:Lückentext-Fragen]]&lt;br /&gt;
[[zh:填空題(克漏字)]]&lt;br /&gt;
[[es:Tipo de Pregunta incrustadas (Cloze)]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=80365</id>
		<title>Embedded Answers (Cloze) question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=80365"/>
		<updated>2011-01-15T11:49:34Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: import of CLOZE questions&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&#039;&#039;&#039;Embedded answers (Cloze)&#039;&#039;&#039; questions consist of a passage of text (in Moodle format) that has various answers embedded within it, including multiple choice, short answers and numerical answers.&lt;br /&gt;
&lt;br /&gt;
There is currently no graphical interface to create these questions - you need to specify the question format using the text box or by importing them from external files. &lt;br /&gt;
&lt;br /&gt;
Lots of people suggest that [[Hot Potatoes]] software is the easiest way to create Embedded answer (Cloze) questions.  Once you have created your questions on your PC, you can then import them into Moodle&#039;s quiz module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Question set-up==&lt;br /&gt;
&lt;br /&gt;
#Select the question category&lt;br /&gt;
#Give the question a descriptive name - this allows you to identify it in the question bank.&lt;br /&gt;
#Enter the passage of text (in Moodle format - see [[Embedded_Answers_%28Cloze%29_question_type#Format|Format]] below) into the &#039;question text&#039; field.&lt;br /&gt;
#Select an image to display if you want to add a picture to the question. For the student, it appears immediately above the question text.&lt;br /&gt;
#Set the &#039;default question grade&#039; (i.e. the maximum number of marks for this question).&lt;br /&gt;
#Set the &#039;Penalty factor&#039; (see [[Embedded_Answers_%28Cloze%29_question_type#Penalty_factor|Penalty factor]] below).&lt;br /&gt;
#If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.&lt;br /&gt;
#The editor has been modified and allows you to test if your syntax is good. The different questions elements decoded will be displayed and syntax errors pinpoint. However, it cannot check if the question decoded is two questions in one because of an error syntax.&lt;br /&gt;
#Click Save changes to add the question to the category.&lt;br /&gt;
&lt;br /&gt;
=== Penalty factor ===&lt;br /&gt;
&lt;br /&gt;
The &#039;penalty factor&#039; only applies when the question is used in a quiz using adaptive mode - i.e. where the student is allowed multiple attempts at a question even within the same attempt at the quiz. If the penalty factor is more than 0, then the student will lose that proportion of the &#039;&#039;&#039;maximum&#039;&#039;&#039; grade upon each successive attempt. For example, if the default question grade is 10, and the penalty factor is 0.2, then each successive attempt after the first one will incur a penalty of 0.2 x 10 = 2 points.&lt;br /&gt;
&lt;br /&gt;
==Question rendering==&lt;br /&gt;
&lt;br /&gt;
The question answer INPUT HTML ELEMENT ( Short and Numerical) or SELECT HTML ELEMENT (multichoice) are normally displayed in-line with the text.&lt;br /&gt;
&lt;br /&gt;
The size of INPUT HTML ELEMENT ( Short and Numerical) will be adjustable to the length of the longest answer (good or bad) + a random number (0 to 15% total length).([[User:Pierre Pichet|Pierre Pichet]] 15:37, 26 January 2008 (CST))&lt;br /&gt;
&lt;br /&gt;
The size will adjust to the length of the student response when displayed in the grading and feedback process.&lt;br /&gt;
&lt;br /&gt;
The size of the SELECT HTML ELEMENT (multichoice) adjusts itself automatically to the longest answer.&lt;br /&gt;
&lt;br /&gt;
==Format==&lt;br /&gt;
&lt;br /&gt;
Questions consist of a passage of text (in Moodle format) that has various sub-questions embedded within it, including&lt;br /&gt;
&lt;br /&gt;
* short answers (SHORTANSWER or SA or MW), case is unimportant,&lt;br /&gt;
* short answers (SHORTANSWER_C or SAC or MWC), case must match,&lt;br /&gt;
* numerical answers (NUMERICAL or NM),&lt;br /&gt;
* multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text&lt;br /&gt;
* multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or&lt;br /&gt;
* multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.&lt;br /&gt;
&lt;br /&gt;
For full details of the format for embedded-answers questions, see the [[Embedded_Answers_%28Cloze%29_question_type#Detailed_syntax_explanations|detailed syntax explanation]] below.&lt;br /&gt;
&lt;br /&gt;
NB: Be careful when copying a cloze type question into the WYSIWYG HTML editor, as line breaks tend to get added, which destroys the question.&lt;br /&gt;
&lt;br /&gt;
If the correct answer contains } # ~ / &amp;quot; or \ you will have to escape them by putting a \ in front of each such character. The { shouldn&#039;t be escaped, this can be vital in getting TeX expressions to work. In the feedback ~ and } must be escaped otherwise it will be interpreted as &#039;&#039;the next answer&#039;&#039; or &#039;&#039;end of the short answer section&#039;&#039; respectively. Quotation signs: &amp;quot; can lead to trouble anyhow in both places. Use the HTML entity: &amp;amp; quot; (without the space between &#039;&#039;&amp;amp;&#039;&#039; and &#039;&#039;quot;&#039;&#039;). If you want to have Mathematical symbols there can be problems with the \ used in TeX expressions. One alternative can be to use [[unicode]] characters. &lt;br /&gt;
&lt;br /&gt;
See the notes further down about numerical embedded question!&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
====Example 1====&lt;br /&gt;
The following text creates a simple embedded-answers question:&lt;br /&gt;
&lt;br /&gt;
 Match the following cities with the correct state:&lt;br /&gt;
 * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}&lt;br /&gt;
 * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}&lt;br /&gt;
 The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!&lt;br /&gt;
 ~%50%Marseille#No, that is the second largest city in France (after&lt;br /&gt;
 Paris).~*#Wrong answer. The capital of France is Paris, of course.}.&lt;br /&gt;
&lt;br /&gt;
And the result will be:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Cloze.gif|Cloze question type]] &lt;br /&gt;
&lt;br /&gt;
====Example 2====&lt;br /&gt;
&lt;br /&gt;
 This question consists of some text with an answer embedded right here {1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and right after that you will have to deal with this short answer {1:SHORTANSWER:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and finally we have a floating point number {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8~%50%23.8:2#Feedback for half credit answer in the nearby region of the correct answer}.&lt;br /&gt;
 The  multichoice question can also be shown in the vertical display of the standard moodle multiple choice.&lt;br /&gt;
 {2:MCV:1. Wrong answer#Feedback for this wrong answer~2. Another wrong answer#Feedback for the other wrong answer~=3. Correct answer#Feedback for correct answer~%50%4. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 Or in an horizontal display that is included here in a table&lt;br /&gt;
 {2:MCH:a. Wrong answer#Feedback for this wrong answer~b. Another wrong answer#Feedback for the other wrong answer~=c. Correct answer#Feedback for correct answer~%50%d. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 A shortanswer question where case must match. Write moodle in upper case letters {1:SHORTANSWER_C:moodle#Feedback for moodle in lower case ~=MOODLE#Feedback for MOODLE in upper case ~%50%Moodle#Feedback for only first letter in upper case}&lt;br /&gt;
 Note that addresses like www.moodle.org and smileys :-) all work as normal:&lt;br /&gt;
 a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion}&lt;br /&gt;
 b) What grade would you give it? {3:NUMERICAL:=3:2}&lt;br /&gt;
&lt;br /&gt;
[[Image:Cloze example.png]]&lt;br /&gt;
&lt;br /&gt;
Some things to note:&lt;br /&gt;
* The individual embedded answers are represented by the code in braces {}.&lt;br /&gt;
* The number at the start is the &#039;weight&#039;, so in this case each answer contributes an equal share of the overall grade.&lt;br /&gt;
* The correct option in each case is preceded either by an = sign or by %100%. &lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
* The text appearing after the # that follows each option is the feedback that the student will see if they choose that option.&lt;br /&gt;
* If the student enters &#039;Marseille&#039; in the final example, they score 50% of the total grade.&lt;br /&gt;
* The asterisk * preceding the &amp;quot;Wrong answer&amp;quot; feedback in the final example means that the student will see this feedback if they enter anything other than &amp;quot;Paris&amp;quot; or &amp;quot;Marseille&amp;quot;.&lt;br /&gt;
* For multiple choice vertical or horizontal rendering there is no automatic numbering, though can added at each answer.&lt;br /&gt;
&lt;br /&gt;
==Detailed syntax explanations==&lt;br /&gt;
# all question items within a cloze-type question are coded inside curled braces { }&lt;br /&gt;
# the number which appears between the opening brace and the colon {1: is the weighting of that item; if it is set at 1 for all the items, it needs not be specified, so you can have {:&lt;br /&gt;
# after the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL&lt;br /&gt;
# &#039;&#039;&#039;NOTE&#039;&#039;&#039;.- If you have installed the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=338 REGEXP question type plugin] you can also use the REGEXP question type&lt;br /&gt;
# the syntax for MULTICHOICE and SHORTANSWER is the same; the only difference is in the displaying of the item to the student&lt;br /&gt;
# the order of the various answers is indifferent (except if you want a catch-all for wrong answers, see #13 below)&lt;br /&gt;
# a correct answer is preceded with the equal sign = or a percentage (usually %100%) - &#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
# a wrong answer is preceded with nothing or a percentage (usually %0%)&lt;br /&gt;
# you can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage&lt;br /&gt;
# all answers except the first one are separated from one another by the tilde ~ sign&lt;br /&gt;
# answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter&lt;br /&gt;
# note that the feedback message and (since [[User:Pierre Pichet|Pierre Pichet]] 24 May 2008 )in 1.9 the correct answer are displayed in a small popup window (if and when the correct and or feedback have been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title &amp;quot;feedback&amp;quot; and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.&lt;br /&gt;
# in the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a &amp;quot;wrong, try again&amp;quot; feedback; you can do this by inserting an asterisk &#039;&#039;&#039;*&#039;&#039;&#039; as &#039;&#039;&#039;the very last expected answer&#039;&#039;&#039; in your formula&lt;br /&gt;
# unfortunately in MULTICHOICE MODE it is not possible to get the answers to be scrambled&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Numerical Cloze questions==	 &lt;br /&gt;
		 &lt;br /&gt;
From the student perspective, a numerical Cloze question looks just like a short-answer question or &#039;&#039;fill in the blanks&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. You can also express your answer in some different numerical formats. 23.4 23,4 (some countries use , as a decimal separator) and 2.34E+1 (meaning 2.34*10^1) would be interpreted as the same.&lt;br /&gt;
&lt;br /&gt;
=== False positives ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; the following examples of false positives do &#039;&#039;&#039;not&#039;&#039;&#039; apply to Moodle 1.8+, where you cannot use percentages or fractions as the answers in a numerical Cloze test; Moodle will generate an error if you try to save such a question. However the following may be relevant for earlier versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
 More examples:	 &lt;br /&gt;
 0.5 accepts .5 0.5 ,5 0,5 0.500 5e-1 5E-1 but not 1/2 50% 	 &lt;br /&gt;
 50% accepts 50% 50.0% 5E1% 50/100 even &#039;&#039;&#039;50/1000 50&#039;&#039;&#039; but not 500/1000 0.5	 &lt;br /&gt;
 1/2 accepts 1/2 &#039;&#039;&#039;1/3 1twenty&#039;&#039;&#039; but not 2/4 0.5 0,5 3/6 50% ½	 &lt;br /&gt;
 ½ accepts ½	 &lt;br /&gt;
 HALF doesn&#039;t even accept HALF (maybe &#039;&#039;&#039;0&#039;&#039;&#039;?)	 &lt;br /&gt;
&lt;br /&gt;
If you want to accept several variants you can have them in the same {} but &#039;&#039;&#039;be careful, notice the &amp;quot;false positives&amp;quot; in bold&#039;&#039;&#039;!&lt;br /&gt;
&lt;br /&gt;
===Syntax for numerical Cloze questions===&lt;br /&gt;
&lt;br /&gt;
The format of a NUMERICAL Cloze question is similar to that of the other Cloze types and they can be mixed in the same question. As with other Cloze tests, you write your question or incomplete text, and add the Cloze code at the point where the student is supposed to enter their numerical answer.&lt;br /&gt;
&lt;br /&gt;
An example of the syntax used is shown below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: &#039;&#039;&#039; It is preferable to write the code in &#039;source code&#039; mode. The WSIWYG editor can insert linebreaks that make the question not function. The linebreak in the example box below is for readability only! A problem with these questions is the readability of the code! :(	&lt;br /&gt;
		 &lt;br /&gt;
 {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8	 &lt;br /&gt;
 ~%50%23.8:2#Feedback for ½credit near correct answer}. 	 &lt;br /&gt;
	 &lt;br /&gt;
In this example:&lt;br /&gt;
* 2: is the question point weight, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.&lt;br /&gt;
* NUMERICAL: says what kind of question it is. It must be in CAPS. &lt;br /&gt;
* =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)	 &lt;br /&gt;
* #Feedback for correct answer 23.8 is preceded by #&lt;br /&gt;
* ~%50%23.8:2 ~ is the separator for answer alternatives %50% means this answer would get 50% of the score that the more precise answer had gotten. Because the tolerance here is 2, 21.8 to 25.8 would get this point and feedback.&lt;br /&gt;
&lt;br /&gt;
The feedback (which is seen within a popup window when the user hovers over the answer space) is formattable with HTML tags. For example, if you want an exponent, surround it with superscript tags: &amp;amp;lt;sup&amp;amp;gt; &amp;amp;lt;/sup&amp;amp;gt;. You can even include pictures in the feedback popup, but you must clean out all &amp;quot; characters and save while still in source code mode (not WYSIWYG). So, this works in feedback popup:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=Something.gif /&amp;gt;}	 &lt;br /&gt;
but not this:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=&amp;quot;Something.gif&amp;quot; /&amp;gt;}	 &lt;br /&gt;
&lt;br /&gt;
(ALGEBRA and TEX filters don&#039;t work in the feedback popups, but they can be very useful in the question writing for math/science expressions). But you can use [[Unicode]] characters.	 &lt;br /&gt;
&lt;br /&gt;
If you want to give feedback for any answer that didn&#039;t fit the intervals you already have specified feedback for, add some BIG general intervals, like for positive answers (if they aren&#039;t bigger than 20000 you could add:	 &lt;br /&gt;
 ~%0%10000.0001:10000#Feedback for unspecified not_right answers}	 &lt;br /&gt;
This would give feedback for anything from 0.0001 to 20000.0001 (that hadn&#039;t already gotten feedback). I didn&#039;t want to include 0 since that special case as well as negative ought to have specific reactions.	 &lt;br /&gt;
 ~%0%0#Hey! It can&#039;t be zero	 &lt;br /&gt;
 ~%0%-10000.0001:10000#We just want the size here,	 &lt;br /&gt;
 so a negative value is not what we want}			 &lt;br /&gt;
&lt;br /&gt;
Numerical questions could, before version 1.7, also have case-insensitive non-numerical answers. This is useful whenever the answer for a numerical question is something like +inf, -inf, NaN etc.&lt;br /&gt;
==Importing CLOZE questions==&lt;br /&gt;
Multiple CLOZE questions can be imported using the XML format:&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- question: 1  --&amp;gt;&lt;br /&gt;
&amp;lt;question type=&amp;quot;cloze&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;&amp;lt;text&amp;gt;Book Test #1&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;questiontext&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;![CDATA[..............]]&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/questiontext&amp;gt;&lt;br /&gt;
&amp;lt;generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;shuffleanswers&amp;gt;0&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- question: 2 --&amp;gt;&lt;br /&gt;
&amp;lt;question type=&amp;quot;cloze&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;name&amp;gt;&amp;lt;text&amp;gt;Book Test #2&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/name&amp;gt;&lt;br /&gt;
&amp;lt;questiontext&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;![CDATA[............]]&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/questiontext&amp;gt;&lt;br /&gt;
&amp;lt;generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;&lt;br /&gt;
&amp;lt;/generalfeedback&amp;gt;&lt;br /&gt;
&amp;lt;shuffleanswers&amp;gt;0&amp;lt;/shuffleanswers&amp;gt;&lt;br /&gt;
&amp;lt;/question&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/quiz&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You would put the question text icluding CLOZE code in the  .......  spaces.&lt;br /&gt;
==See also==&lt;br /&gt;
This information was drawn from:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36521 Is there a guide to using the cloze format?] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36430&amp;amp;parent=170308 Cloze-type question syntax] forum post&lt;br /&gt;
&lt;br /&gt;
[[fr:Question Cloze à réponses intégrés]]&lt;br /&gt;
[[ja: 穴埋め問題 ( Cloze ) タイプ]]&lt;br /&gt;
[[de:Lückentext-Fragen]]&lt;br /&gt;
[[zh:填空題(克漏字)]]&lt;br /&gt;
[[es:Tipo de Pregunta incrustadas (Cloze)]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=78506</id>
		<title>GIFT format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=78506"/>
		<updated>2010-11-30T13:22:11Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Numerical questions */ Added that newer Moodle supports multiple numeric answers in GUI&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;GIFT format&#039;&#039;&#039; allows someone to use a text editor to write multiple-choice, true-false, short answer, matching missing word and numerical questions in a simple format that can be imported. The GIFT format is also an export file format available in Question bank. The format has been developed within the Moodle Community but other software may support it to a greater or lesser degree.&lt;br /&gt;
&lt;br /&gt;
*When creating a large numbers of questions, GIFT can provide a quick way of bulk loading questions either into a [[Question bank|question category]], or into a [[Adding_a_question_page#Importing_questions|Lesson]]. &lt;br /&gt;
*Sometimes it is easier proofing questions in a question category by viewing them in a GIFT file.&lt;br /&gt;
&lt;br /&gt;
== General instructions ==&lt;br /&gt;
At least one blank line must be left between each question. &lt;br /&gt;
&lt;br /&gt;
In the simple form, the question comes first, then the answers are set in between brackets, with an equal sign indicating the correct answer(s) and tilde the wrong answers.  A Number sign will insert a response.  Questions can be weighted by placing percentage signs around the weight.  Comments are preceded by double slashes and are not imported.  &lt;br /&gt;
&lt;br /&gt;
Here are some useful [http://moodle.org/file.php/5/moddata/forum/121/236161/GIFT-examples.zip GIFT examples] than can be imported or used as rough template.  Many of the examples below used the questions in the file as a starting point.&lt;br /&gt;
&lt;br /&gt;
=== UTF-8 encoding ===&lt;br /&gt;
Any GIFT file &#039;&#039;&#039;must&#039;&#039;&#039; be correctly encoded in [[UTF8]]. You can use Microsoft&#039;s text editor Notepad which comes with Windows to save your file in UTF-8. &#039;&#039;&#039;Note&#039;&#039;&#039;: ANSI format will (only) work for languages without any special characters (like ä, ö, ü, æ, å, ø, œ or ß). And don&#039;t use &amp;quot;Unicode&amp;quot; as format as this is actually UTF-16 and won&#039;t work. See [[Converting files to UTF-8]] for further information.&lt;br /&gt;
&lt;br /&gt;
===Format symbols===&lt;br /&gt;
&lt;br /&gt;
Here are some common GIFT symbols and their use.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Symbols !! Use&lt;br /&gt;
|-&lt;br /&gt;
| // text || Comment until end of line (optional)&lt;br /&gt;
|-&lt;br /&gt;
| ::title:: || Question title (optional)&lt;br /&gt;
|-&lt;br /&gt;
| text || Question text (becomes title if no title specified)&lt;br /&gt;
|-&lt;br /&gt;
| [...format...] || The format of the following bit of text. Options are [html], [moodle], [plain] and [markdown]. The default is [moodle] for the question text, other parts of the question default to the format used for the question text.&lt;br /&gt;
|-&lt;br /&gt;
| { || Start answer(s) -- without any answers, text is a description of following questions&lt;br /&gt;
|-&lt;br /&gt;
| {T} or {F} || True or False answer; also {TRUE} and {FALSE}&lt;br /&gt;
|-&lt;br /&gt;
| { ... =right ... } || Correct answer for multiple choice, (multiple answer? -- see page comments) or fill-in-the-blank&lt;br /&gt;
|-&lt;br /&gt;
| { ... ~wrong ... } || Incorrect answer for multiple choice or multiple answer&lt;br /&gt;
|-&lt;br /&gt;
| { ... =item -&amp;gt; match ... } || Answer for matching questions&lt;br /&gt;
|-&lt;br /&gt;
| #feedback text || Answer feedback for preceding multiple, fill-in-the-blank, or numeric answers&lt;br /&gt;
|-&lt;br /&gt;
| {# || Start numeric answer(s)&lt;br /&gt;
|-&lt;br /&gt;
| answer:tolerance || Numeric answer accepted within ± tolerance range&lt;br /&gt;
|-&lt;br /&gt;
| low..high || Lower and upper range values of accepted numeric answer &lt;br /&gt;
|-&lt;br /&gt;
| =%n%answer:tolerance || n percent credit for one of multiple numeric ranges within tolerance from answer&lt;br /&gt;
|-&lt;br /&gt;
| } || End answer(s)&lt;br /&gt;
|-&lt;br /&gt;
| \character || Backslash escapes the special meaning of ~, =, #, {, }, and :&lt;br /&gt;
|-&lt;br /&gt;
| \n || Places a newline in question text -- blank lines delimit questions&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here are some quick examples:&lt;br /&gt;
&lt;br /&gt;
 // true/false&lt;br /&gt;
 ::Q1:: 1+1=2 {T}&lt;br /&gt;
 &lt;br /&gt;
 // multiple choice with specified feedback for right and wrong answers&lt;br /&gt;
 ::Q2:: What&#039;s between orange and green in the spectrum? &lt;br /&gt;
 { =yellow # right; good! ~red # wrong, it&#039;s yellow ~blue # wrong, it&#039;s yellow }&lt;br /&gt;
 &lt;br /&gt;
 // fill-in-the-blank&lt;br /&gt;
 ::Q3:: Two plus {=two =2} equals four.&lt;br /&gt;
 &lt;br /&gt;
 // matching&lt;br /&gt;
 ::Q4:: Which animal eats which food? { =cat -&amp;gt; cat food =dog -&amp;gt; dog food }&lt;br /&gt;
 &lt;br /&gt;
 // math range question&lt;br /&gt;
 ::Q5:: What is a number from 1 to 5? {#3:2}&lt;br /&gt;
 &lt;br /&gt;
 // math range specified with interval end points&lt;br /&gt;
 ::Q6:: What is a number from 1 to 5? {#1..5}&lt;br /&gt;
 // translated on import to the same as Q5, but unavailable from Moodle question interface&lt;br /&gt;
 &lt;br /&gt;
 // multiple numeric answers with partial credit and feedback&lt;br /&gt;
 ::Q7:: When was Ulysses S. Grant born? {#&lt;br /&gt;
          =1822:0      # Correct! Full credit.&lt;br /&gt;
          =%50%1822:2  # He was born in 1822. Half credit for being close.&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 // essay&lt;br /&gt;
 ::Q8:: How are you? {}&lt;br /&gt;
&lt;br /&gt;
===Format symbols explained===&lt;br /&gt;
The multiple choice format below as a comment line // for the question, when Moodle exports it the question unique id number will appear here.  The first set of  :: precedes the question title. The second :: precedes the actual question. The first { indicates the start of the answers.  The correct answer is preceded by an = sign and wrong answers by a ~.  Teacher responses have a # in front of them.  The question ends with a } and then a blank line. NOTE it is { } not ( ) parenthesis! Usually these are gotten with help of the [AltGr] key.&lt;br /&gt;
&lt;br /&gt;
 //Comment line &lt;br /&gt;
 ::Question title &lt;br /&gt;
 :: Question {&lt;br /&gt;
 =A correct answer&lt;br /&gt;
 ~Wrong answer1&lt;br /&gt;
 #A response to wrong answer1&lt;br /&gt;
 ~Wrong answer2&lt;br /&gt;
 #A response to wrong answer2&lt;br /&gt;
 ~Wrong answer3&lt;br /&gt;
 #A response to wrong answer3&lt;br /&gt;
 ~Wrong answer4&lt;br /&gt;
 #A response to wrong answer4&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The shortest format for a multiple choice question is:&lt;br /&gt;
 Question{= A Correct Answer ~Wrong answer1 ~Wrong answer2 ~Wrong answer3 ~Wrong answer4 }&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you don&#039;t specify a question title the WHOLE question will be used as the title at the time of import into Moodle. There are pros and cons to allowing this to happen. Cons: This can add a lot of unnecessary words. This can include characters which might confuse the export GIFT process.  Pros: On the other hand. if the start of each question is different, it can make finding a single question easier in a category list of questions. It will save you typing.  Having the same title for every question is a very bad idea.&lt;br /&gt;
&lt;br /&gt;
==Question format examples==&lt;br /&gt;
There are several ways to use a text editor to write a GIFT format.  We will try to show the simple version for example and in some formats we will introduce some more complex features that can be imported into many Moodle Question formats.  &lt;br /&gt;
&lt;br /&gt;
===Multiple choice===&lt;br /&gt;
For multiple choice questions, wrong answers are prefixed with a tilde (~) and the correct answer is prefixed with an equal sign (=).&lt;br /&gt;
&lt;br /&gt;
Here is a simple acceptable GIFT multiple choice format:&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }&lt;br /&gt;
&lt;br /&gt;
Here is a longer format that uses most of the GIFT elements:&lt;br /&gt;
&lt;br /&gt;
  // question: 1 name: Grants tomb&lt;br /&gt;
 ::Grants tomb::Who is buried in Grant&#039;s tomb in New York City? {&lt;br /&gt;
 =Grant&lt;br /&gt;
 ~No one&lt;br /&gt;
 #Was true for 12 years, but Grant&#039;s remains were buried in the tomb in 1897&lt;br /&gt;
 ~Napoleon&lt;br /&gt;
 #He was buried in France&lt;br /&gt;
 ~Churchill&lt;br /&gt;
 #He was buried in England&lt;br /&gt;
 ~Mother Teresa&lt;br /&gt;
 #She was buried in India&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===True-false===&lt;br /&gt;
&lt;br /&gt;
In this question-type the answer indicates whether the statement is true or false. The answer should be written as {TRUE} or {FALSE}, or abbreviated to {T} or {F}.&lt;br /&gt;
&lt;br /&gt;
 // question: 0 name: TrueStatement using {T} style&lt;br /&gt;
 ::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}&lt;br /&gt;
 &lt;br /&gt;
 // question: 0 name: FalseStatement using {FALSE} style&lt;br /&gt;
 ::FalseStatement about sun::The sun rises in the West.{FALSE}&lt;br /&gt;
&lt;br /&gt;
===Short answer===&lt;br /&gt;
&lt;br /&gt;
Answers in Short Answer question-type are all prefixed by an equal sign (=), indicating that they are all correct answers. The answers must not contain a tilde.&lt;br /&gt;
&lt;br /&gt;
Here are two examples using the simple method showing possible right answers for credit.&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}&lt;br /&gt;
&lt;br /&gt;
 Two plus two equals {=four =4}&lt;br /&gt;
&lt;br /&gt;
If there is only one correct Short Answer, it may be written without the equal sign prefix, as long as it cannot be confused as True-False.&lt;br /&gt;
&lt;br /&gt;
===Matching===&lt;br /&gt;
Matching pairs begin with an equal sign (=) and are separated by this symbol &amp;quot;-&amp;gt;&amp;quot;. There must be at least three matching pairs.&lt;br /&gt;
 &lt;br /&gt;
 Match the following countries with their corresponding capitals. {&lt;br /&gt;
    =Canada -&amp;gt; Ottawa&lt;br /&gt;
    =Italy  -&amp;gt; Rome&lt;br /&gt;
    =Japan  -&amp;gt; Tokyo&lt;br /&gt;
    =India  -&amp;gt; New Delhi&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
Matching questions do not support feedback or percentage answer weights.&lt;br /&gt;
&lt;br /&gt;
===Missing word===&lt;br /&gt;
The Missing Word format automatically inserts a fill-in-the-blank line (like this _____) in the middle of the sentence. To use the Missing Word format, place the answers where you want the line to appear in the sentence.&lt;br /&gt;
 Moodle costd{~lots of money =nothing ~a small amount} to download from moodle.org.&lt;br /&gt;
&lt;br /&gt;
If the answers come before the closing punctuation mark, a fill-in-the-blank line will be inserted for the &amp;quot;missing word&amp;quot; format. All question types can be written in the Missing Word format.&lt;br /&gt;
&lt;br /&gt;
There must be a blank line (double carriage return) separating questions. For clarity, the answers can be written on separate lines and even indented. Some examples:&lt;br /&gt;
&lt;br /&gt;
 Mahatma Gandhi birthday is an Indian holiday on  {&lt;br /&gt;
 ~15th&lt;br /&gt;
 ~3rd&lt;br /&gt;
 =2nd&lt;br /&gt;
 } of October.&lt;br /&gt;
 &lt;br /&gt;
 Since {&lt;br /&gt;
   ~495 AD&lt;br /&gt;
   =1066 AD&lt;br /&gt;
   ~1215 AD&lt;br /&gt;
   ~ 43 AD&lt;br /&gt;
 }&lt;br /&gt;
 the town of Hastings England has been &amp;quot;famous with visitors&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
===Numerical questions===&lt;br /&gt;
&lt;br /&gt;
The answer section for Numerical questions must start with a number sign (#). Numerical answers can include an error margin, which is written following the correct answer, separated by a colon. So for example, if the correct answer is anything between 1.5 and 2.5, then it would be written as follows {#2:0.5}. This indicates that 2 with an error margin of 0.5 is correct (i.e., the span from 1.5 to 2.5). If no error margin is specified, it will be assumed to be zero.&lt;br /&gt;
&lt;br /&gt;
Here is a simple numerical format question. It will accept a range of 5 years.&lt;br /&gt;
 When was Ulysses S. Grant born?{#1822:5}&lt;br /&gt;
It is a good idea to check the margins of the range, 3.141 is not counted as correct and 3.142 is considered in the range. &lt;br /&gt;
 What is the value of pi (to 3 decimal places)? {#3.14159:0.0005}.&lt;br /&gt;
&lt;br /&gt;
Optionally, numerical answers can be written as a span in the following format {#MinimumValue..MaximumValue}.&lt;br /&gt;
&lt;br /&gt;
 What is the value of pi (to 3 decimal places)? {#3.141..3.142}.&lt;br /&gt;
&lt;br /&gt;
Moodle&#039;s browser interface does not support multiple numerical answers, but Moodle&#039;s code can and so does GIFT. This can be used to specify numerical multiple spans, and can be particularly usefully when combined with percentage weight grades. If multiple answers are used, they must be separated by an equal sign, like short answer questions.&lt;br /&gt;
&lt;br /&gt;
 When was Ulysses S. Grant born? {#&lt;br /&gt;
    =1822:0&lt;br /&gt;
    =%50%1822:2&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note that since Moodle&#039;s browser GUI didn&#039;t support multiple answers for Numerical questions, there&#039;s no way in older Moodle versions to see them or edit them through Moodle. The only way to change a numerical answer beyond the first, is to delete the question and re-import it (or use something like phpMyAdmin). But better would be to upgrade your Moodle to at least 1.9.&lt;br /&gt;
&lt;br /&gt;
===Essay===&lt;br /&gt;
An essay question is simply a question with an empty answer field. Nothing is permitted between the curly braces at all.&lt;br /&gt;
&lt;br /&gt;
 Write a short biography of Dag Hammarskjöld. {}&lt;br /&gt;
&lt;br /&gt;
===Description===&lt;br /&gt;
A description &amp;quot;question&amp;quot; has no answer part at all&lt;br /&gt;
&lt;br /&gt;
 You can use your pencil and paper for these next math questions.&lt;br /&gt;
&lt;br /&gt;
==Options==&lt;br /&gt;
&lt;br /&gt;
In addition to these basic question types, this filter offers the following options: line comments, question name, feedback and percentage answer weight.&lt;br /&gt;
&lt;br /&gt;
===Line Comments===&lt;br /&gt;
Comments that will not be imported into Moodle can be included in the text file. This can be used to provide headers or more information about questions. All lines that start with a double backslash (not counting tabs or spaces) will be ignored by the filter.&lt;br /&gt;
&lt;br /&gt;
 // Subheading: Numerical questions below&lt;br /&gt;
 What&#039;s 2 plus 2? {#4}&lt;br /&gt;
&lt;br /&gt;
Comments will be exported from Moodle and will include the unique question id.  The above question after it was imported and then exported from Moodle:&lt;br /&gt;
 // question: 914  name: What&#039;s 2 plus 2? &lt;br /&gt;
 ::What&#039;s 2 plus 2?::What&#039;s 2 plus 2?{#&lt;br /&gt;
     =4:0#&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Question Name===&lt;br /&gt;
A question name can be specified by placing it first and enclosing it within double colons.&lt;br /&gt;
&lt;br /&gt;
 ::Kanji Origins::Japanese characters originally&lt;br /&gt;
 came from what country? {=China}&lt;br /&gt;
&lt;br /&gt;
 ::Thanksgiving Date::The American holiday of Thanksgiving is &lt;br /&gt;
 celebrated on the {~second ~third =fourth} Thursday of November.&lt;br /&gt;
&lt;br /&gt;
If no question name is specified, the entire question will be used as the name by default.&lt;br /&gt;
&lt;br /&gt;
===Feedback===&lt;br /&gt;
Feedback can be included for each answer by following the answer with a number sign (# also known as a hash mark) and the feedback.&lt;br /&gt;
&lt;br /&gt;
 What&#039;s the answer to this multiple-choice question? {&lt;br /&gt;
   ~wrong answer#feedback comment on the wrong answer&lt;br /&gt;
   ~another wrong answer#feedback comment on this wrong answer&lt;br /&gt;
   =right answer#Very good!&lt;br /&gt;
 }&lt;br /&gt;
  &lt;br /&gt;
 //From The Hitchhiker&#039;s Guide to the Galaxy&lt;br /&gt;
 Deep Thought said &amp;quot; {&lt;br /&gt;
   =forty two#Correct according to The Hitchhiker&#039;s Guide to the Galaxy!&lt;br /&gt;
   =42#Correct, as told to Loonquawl and Phouchg&lt;br /&gt;
   =forty-two#Correct!&lt;br /&gt;
 }  is the Ultimate Answer to the Ultimate Question of Life, The Universe, and Everything.&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
    42 is the Absolute Answer to everything.{&lt;br /&gt;
 FALSE#42is the Ultimate Answer.#You gave the right answer.}&lt;br /&gt;
&lt;br /&gt;
For Multiple Choice questions, feedback is displayed only for the answer the student selected. For short answer, feedback is shown only when students input the corresponding correct answer. For true-false questions, there can be one or two feedback strings. The first is shown if the student gives the wrong answer. The second if the student gives the right answer.&lt;br /&gt;
&lt;br /&gt;
===Percentage Answer Weights===&lt;br /&gt;
Percentage answer weights are available for both Multiple Choice and Short Answer questions. Percentage answer weights can be included by following the tilde (for Multiple Choice) or equal sign (for Short Answer) with the desired percent enclosed within percent signs (e.g., %50%). This option can be combined with feedback comments.&lt;br /&gt;
&lt;br /&gt;
Difficult question.{~wrong answer ~%50%half credit answer =full credit answer}&lt;br /&gt;
&lt;br /&gt;
 ::Jesus&#039; hometown::Jesus Christ was from {&lt;br /&gt;
    ~Jerusalem#This was an important city, but the wrong answer.&lt;br /&gt;
    ~%25%Bethlehem#He was born here, but not raised here.&lt;br /&gt;
    ~%50%Galilee#You need to be more specific.&lt;br /&gt;
    =Nazareth#Yes! That&#039;s right!&lt;br /&gt;
 }.&lt;br /&gt;
     &lt;br /&gt;
 ::Jesus&#039; hometown:: Jesus Christ was from {&lt;br /&gt;
    =Nazareth#Yes! That&#039;s right!&lt;br /&gt;
    =%75%Nazereth#Right, but misspelled.&lt;br /&gt;
    =%25%Bethlehem#He was born here, but not raised here.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note that the last two examples are essentially the same question, first as multiple choice and then as short answer.&lt;br /&gt;
&lt;br /&gt;
Note that it is possible to specify percentage answer weights that are NOT available through the browser interface. The Match Grades drop-down on the import page determines how these are handled. You can either request that an error be reported or that the answer weight be adjusted to the nearest valid answer weight.&lt;br /&gt;
&lt;br /&gt;
Specify text-formatting for the question&lt;br /&gt;
The question text (only) may have an optional text format specified. Currently the available formats are moodle (Moodle Auto-Format), html (HTML format), plain (Plain text format) and markdown (Markdown format). The format is specified in square brackets immediately before the question text. See [[Formatting text]] for further information.&lt;br /&gt;
&lt;br /&gt;
 [markdown]The *American holiday of Thanksgiving* is celebrated on the {&lt;br /&gt;
    ~second&lt;br /&gt;
    ~third&lt;br /&gt;
    =fourth&lt;br /&gt;
 } Thursday of November.&lt;br /&gt;
&lt;br /&gt;
===Multiple Answers===&lt;br /&gt;
The Multiple Answers option is used for multiple choice questions when two or more answers must be selected in order to obtain full credit. The multiple answers option is enabled by assigning partial answer weight to multiple answers, while allowing no single answer to receive full credit.&lt;br /&gt;
&lt;br /&gt;
 What two people are entombed in Grant&#039;s tomb? {&lt;br /&gt;
    ~No one&lt;br /&gt;
    ~%50%Grant&lt;br /&gt;
    ~%50%Grant&#039;s wife&lt;br /&gt;
    ~Grant&#039;s father&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Note that there is no equal sign (=) in any answer and the answers should total no more than 100%, otherwise Moodle will return an error. To avoid the problem of students automatically getting 100% by simply checking all of the answers, it is best to include negative answer weights for wrong answers.&lt;br /&gt;
&lt;br /&gt;
 What two people are entombed in Grant&#039;s tomb? {&lt;br /&gt;
    ~%-50%No one&lt;br /&gt;
    ~%50%Grant&lt;br /&gt;
    ~%50%Grant&#039;s wife&lt;br /&gt;
    ~%-50%Grant&#039;s father&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Special Characters ~ = # { }===&lt;br /&gt;
These symbols ~ = # { } : control the operation of this filter and cannot be used as normal text within questions. Since these symbols have a special role in determining the operation of this filter, they are called &amp;quot;control characters.&amp;quot; But sometimes you may want to use one of these characters, for example to show a mathematical formula in a question. The way to get around this problem is &amp;quot;escaping&amp;quot; the control characters. This means simply putting a backslash (\) before a control character so the filter will know that you want to use it as a literal character instead of as a control character. For example:&lt;br /&gt;
&lt;br /&gt;
 Which answer equals 5? {&lt;br /&gt;
    ~ \= 2 + 2&lt;br /&gt;
    = \= 2 + 3&lt;br /&gt;
    ~ \= 2 + 4&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
 ::GIFT Control Characters::&lt;br /&gt;
 Which of the following is NOT a control character for the GIFT import format? {&lt;br /&gt;
   ~ \~     # \~ is a control character.&lt;br /&gt;
   ~ \=     # \= is a control character.&lt;br /&gt;
   ~ \#     # \# is a control character.&lt;br /&gt;
   ~ \{     # \{ is a control character.&lt;br /&gt;
   ~ \}     # \} is a control character.&lt;br /&gt;
   = \      # Correct! \ (backslash) is not a control character. BUT,&lt;br /&gt;
              it is used to escape the control characters.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
When the question is processed, the backslash is removed and is not saved in Moodle.&lt;br /&gt;
&lt;br /&gt;
===Specifying Categories===&lt;br /&gt;
&lt;br /&gt;
It is possible to change the category into which the questions are added within the GIFT file. You can change the category as many times as you wish within the file. All questions after the modifier up to the next modifier or the end of the file will be added to the specified category. Up to the first category modifier the category specified on the import screen will be used. Note that for this to work the from file: box must be ticked on the import screen.&lt;br /&gt;
&lt;br /&gt;
To include a category modifier include a line like this (with a blank line before and after):&lt;br /&gt;
&lt;br /&gt;
 $CATEGORY: tom/dick/harry&lt;br /&gt;
&lt;br /&gt;
or simply&lt;br /&gt;
&lt;br /&gt;
 $CATEGORY: mycategory&lt;br /&gt;
&lt;br /&gt;
...the first example specifies a path of nested categories. In this case the questions will go into harry. The categories are created if they do not exist.&lt;br /&gt;
&lt;br /&gt;
===Making questions case sensitive===&lt;br /&gt;
Short Answer questions can be made case sensitive by changing &amp;quot;0&amp;quot; to &amp;quot;1&amp;quot; in the following line:&lt;br /&gt;
 $question-&amp;gt;usecase = 0; // Ignore case&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
* Use the ::title:: at the beginning of every question to organize your questions when Moodle presents a list or exports them as another GIFT file.  When the title is left blank, Moodle will put the beginning of the question as the title. Some teachers want to see something like &amp;quot;001 LIT101 Poe ref Purloin Letter&amp;quot; or &amp;quot;The Purloin Letter was written by (AmLit pg 254)&amp;quot; in the title.  &lt;br /&gt;
&lt;br /&gt;
* You can specify markup if you need to format the question by setting [html], [moodle], [plain] or [markdown] just before the question text. See more about this in the reference pdf below.&lt;br /&gt;
* In the Lesson module, in a question page, correct answers jump by default to Next page and incorrect answers jump to This page (i.e. student has to &amp;quot;try again&amp;quot;). When importing from a GIFT format file, this is exactly the mechanism which is used.&lt;br /&gt;
* If you want a student to be taken directly from one question to the next irrespective of their answer being correct or incorrect: in the Lesson Settings, set Maximum number of attempts: to 1. &lt;br /&gt;
**Please note, however, that a message &amp;quot;correct / incorrect&amp;quot; will still be displayed to the student upon answering each question. If you do not want this (default) feedback message to be displayed then enter your own feedback message (i.e. &amp;quot;continue&amp;quot;, &amp;quot;---&amp;quot;, etc.) &lt;br /&gt;
**In case you want no visible message displayed then enter a non-breaking space as feedback. Moodle will not put it&#039;s automatic response because it sees the blank space. To do this, put a # after the answer and write [[Image:Nbsp.png]] (without spaces between these characters). &lt;br /&gt;
* Need to use a special GIFT character in your question or answer?  Put a \ in front of the GIFT character.  &lt;br /&gt;
**For example if you want to use curly braces, { or }, or equal sign, =, or # or ~ in a GIFT file (in a math question including TeX expressions) you must &amp;quot;escape&amp;quot; them by preceding them with a \ directly in front of each { or } or =. It is possible to use a replace program/macro/editor filter to do this conversion before importing to Moodle.&lt;br /&gt;
* Want to change T/F type questions to multiple choice? Consider exporting the T/F questions as a GIFT file, then using a text editor to replace the (T) with (=True ~False). Perhaps change the title slightly so you will recognize the new questions.&lt;br /&gt;
* Alphabetic case-sensitive comparison is disabled by default. If you need case-sensitive comparison for short answer questions (an unusual need), precede them with:&lt;br /&gt;
   $question-&amp;gt;usecase = 1;&lt;br /&gt;
surrounded by blank lines.&lt;br /&gt;
&lt;br /&gt;
==Word processors and Spreadsheets tools that create GIFTs==&lt;br /&gt;
Several contributors have used macros to generate GIFT files from a more familiar popular programs.   &lt;br /&gt;
* There are Word macros available for easily creating GIFT files. See [http://www.moodleschool.co.nz/mod/resource/view.php?id=83 Moodle4Teachers] for downloads and instructions for use.&lt;br /&gt;
* There are several Excel spreadsheets for generating GIFT files. Several people have built upon other contributors work.  &lt;br /&gt;
**The latest version was posted on 10 April 2007 and can be found in this thread with this file name: [http://moodle.org/mod/forum/discuss.php?d=66660 Excel2GIFTv1.1.zip by Timothy Takemoto].  There is also a set of instructions Excel2GIFTv1.1_Instructions.rtf by Jeff Shek on the same day in that thread.&lt;br /&gt;
** [http://video.google.com/videoplay?docid=-6612645502883459334# video tutorial] for using Excel2GIFTv2.xls &lt;br /&gt;
**An earlier version of this Excel spreadsheet for generating multiple choice GIFT files [http://moodle.org/mod/forum/discuss.php?d=45245 initially created by Olga Forlani and improved by A. T. Wyatt].&lt;br /&gt;
*There are Open Office templates for generating GIFT files in Writer.  These are located in the Quiz forum in the[http://moodle.org/mod/forum/discuss.php?d=20705&amp;amp;parent=168385 OOo template to write exams and convert to GIFT format thread].&lt;br /&gt;
**The most recent for OO 2.x is &amp;quot;OOo2GIFT_Template_05.zip&amp;quot; postes 17 December 2005 by Enrique Castro.&lt;br /&gt;
**An earlier version is &amp;quot;GIFT_template_OOo.zip&amp;quot; posted 22 March 2005 by Enrique Castro.&lt;br /&gt;
*There is an easy to use on line multiple question generator at [http://a4esl.org/c/qw.html  a4esl.org]. Here you write your question(s) without formating marks, select Moodle and press the generate quiz button.  This creates GIFT formatted text that can be pasted into a file for importing into Moodle.&lt;br /&gt;
**The initial format requires fewer keystrokes (it uses line position and returns) than the GIFT format, so you should save time and be less likely to create invalid data.&lt;br /&gt;
** Quiz authoring template for Microsoft Word [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=578 link]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Here is a 2-column PDF [http://buypct.com/gift_reference.pdf GIFT Reference Sheet]&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[Import and export FAQ]]&lt;br /&gt;
*[[Aiken Format]]&lt;br /&gt;
*[[Moodle XML format]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.kingsley.k12.mi.us/documents/gift_format.pdf Formatting quizzes in GIFT format]&lt;br /&gt;
*[http://en.wikiversity.org/wiki/Google_Summer_of_Code_2010_Proposal:_GIFT_Conversion Google Summer of Code 2010 Proposal: GIFT Conversion] (Wikiversity)&lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[de:GIFT]]&lt;br /&gt;
[[fr:Format GIFT]]&lt;br /&gt;
[[ja:GIFTフォーマット]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Anv%C3%A4ndare:Jeff_Forssell&amp;diff=78067</id>
		<title>Användare:Jeff Forssell</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Anv%C3%A4ndare:Jeff_Forssell&amp;diff=78067"/>
		<updated>2010-11-23T09:52:05Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I was Born In Buffalo NY USA 1945. I have lived in Sweden since 1964.&lt;br /&gt;
&lt;br /&gt;
I have a Swedish Fil. Lic. (about Masters degree) in physics and have been a Math Physics teacher for many years. I worked with adult distant education at the [[http://web.archive.org/web/20041009224241/http://www.cfl.se/?sid=60 Swedish Agency for Flexible Learning]], in Härnösand from 1996-2008. After that I&#039;ve taken Moodle certification 100, 101 and 200 and am starting to learn PHP. Any interesting jobs, especially in English-speaking countries, especially involving Moodle, would be interesting to hear about!). I have given distance consulting to several Moodle sites and have registered a firm, Tupo Media.&lt;br /&gt;
&lt;br /&gt;
I have also worked 2*2 years in Tanzania. (see: http://biphome.spray.se/jeff.forssell/index.html but I&#039;ve learned a lot of html since I made that.) I speak (Am.) English, Swedish and Swahili (and rusty German in an emergency)&lt;br /&gt;
&lt;br /&gt;
I have a site at http://www.tupo.biz&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Anv%C3%A4ndare:Jeff_Forssell&amp;diff=78041</id>
		<title>Användare:Jeff Forssell</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Anv%C3%A4ndare:Jeff_Forssell&amp;diff=78041"/>
		<updated>2010-11-22T12:07:24Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I was Born In Buffalo NY USA 1945. I have lived in Sweden since 1964.&lt;br /&gt;
&lt;br /&gt;
I have a Swedish Fil. Lic. (about Masters degree) in physics and have been a Math Physics teacher for many years. I worked with adult distant education at the [[http://web.archive.org/web/20041009224241/http://www.cfl.se/?sid=60 Swedish Agency for Flexible Learning]], in Härnösand from 1996-2008. After that I&#039;ve taken Moodle certification 100, 101 and 200 and am starting to learn PHP. Any interesting jobs, especially in English-speaking countries, especially involving Moodle, would be interesting to hear about!). I have given distance consulting to several Moodle sites and have a firma, Tupo Media.&lt;br /&gt;
&lt;br /&gt;
I have also worked 2*2 years in Tanzania. (see: http://biphome.spray.se/jeff.forssell/index.html but I&#039;ve learned a lot of html since I made that.) I speak (Am.) English, Swedish and Swahili (and rusty German in an emergency)&lt;br /&gt;
&lt;br /&gt;
I have a site at http://www.tupo.biz&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Automated_course_backup&amp;diff=77915</id>
		<title>Automated course backup</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Automated_course_backup&amp;diff=77915"/>
		<updated>2010-11-18T13:13:28Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Setting a backup schedule */ Suggest possible pathways for backup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Location: &#039;&#039;Administration &amp;gt; Courses &amp;gt; Backups&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The backups page enables administrators to configure automated course backups and a backup schedule. &lt;br /&gt;
Automated course backups runs the same functions as individual [[Course backup|course backups]]. It&#039;s a good idea to schedule backups for when your server isn&#039;t usually busy. Running the backup tool over all the courses can be processor-intensive, so you shouldn&#039;t run it when there are a lot of students trying to access the server. You should always alert users with an announcement on the first page that if they log on during the backup hours they may notice a decrease in performance.  &lt;br /&gt;
&lt;br /&gt;
In order to make scheduled backups, you have to set up CRON to run periodically. Please refer to the [[Cron|cron instructions]].&lt;br /&gt;
&lt;br /&gt;
==Setting a backup schedule==&lt;br /&gt;
&lt;br /&gt;
To set the backup schedule:&lt;br /&gt;
#Click the Active checkbox. This turns on the automated backup system.&lt;br /&gt;
#Click the days of the week to run the backup.&lt;br /&gt;
#Set the execution time for the backup process. For most servers, early morning will be the best time.  Keep in mind the time zone your server is using.&lt;br /&gt;
#Set the &amp;quot;Save to...&amp;quot; path. If you can, choose a backup path on another machine or on a different drive than the one Moodle is on. You don’t want to lose your backups at the same time you lose your Moodle site if the drive fails. If you leave the field blank, then backup zip files will be saved in the backup folder of each course files folder. On a Linux server the path might look like: /home/(your user or domain)/public_html/archive/ or if it&#039;s below the publicly accessible folders: /home/(your user or domain)/archive/ if the path is not recognized a red X is shown after saving, otherwise a green check.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button.&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve set up your backup schedule, Moodle will automatically create archives of all the courses on the server at the time you specified. Once the backup is complete, Moodle will send you an email describing the status of the backup.&lt;br /&gt;
&lt;br /&gt;
Note: From 1.6 onwards, course backups automatically skip courses which are unavailable to students and have not been changed in the last month.&lt;br /&gt;
&lt;br /&gt;
==Course versus site backups==&lt;br /&gt;
&lt;br /&gt;
*Automated course backups are more expensive in terms of time and CPU usage. The recovery time to have your site running again is longer. &lt;br /&gt;
*Course backups are useful for obtaining &amp;quot;fresh&amp;quot; copies of courses to be re-used or distributed individually, however they should never be used as a primary backup system (unless your hosting doesn&#039;t allow the preferred [[Site backup|site backups]]). &lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
*[[Backup and restore FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Backup]]&lt;br /&gt;
&lt;br /&gt;
[[eu:Ikastaroen_segurtasun-kopia_automatikoa]]&lt;br /&gt;
[[fr:Sauvegarde (administrateur)]]&lt;br /&gt;
[[ja:自動コースバックアップ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=77473</id>
		<title>Authentication FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=77473"/>
		<updated>2010-11-05T08:53:00Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Where are users&amp;#039; details stored? */ changed indicate to is called&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
An authentication plugin is a method of handling user authentication i.e. enabling certain people to login to your Moodle site.&lt;br /&gt;
&lt;br /&gt;
==How do I enable the &amp;quot;Create new account&amp;quot; button on the login page?==&lt;br /&gt;
&lt;br /&gt;
To display the &amp;quot;Is this your first time here?&amp;quot; instructions and the &amp;quot;Create new account&amp;quot; button:&lt;br /&gt;
&lt;br /&gt;
# Make sure that the [[Email-based self-registration|email-based self-registration plugin]] (or any other plugin that can support self-registration, such as LDAP) is enabled in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
# Select the self-registration plugin in the common module settings.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. See [[Reducing spam in Moodle]] for ways of minimizing the risk.&lt;br /&gt;
&lt;br /&gt;
==How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions?==&lt;br /&gt;
#Access &#039;&#039;Site administration block&amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
#Write the instructions in the &#039;&#039;auth_instructions&#039;&#039; text field.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
If your site caters to more than one language you can edit the language via &#039;&#039;Site administration &amp;gt; [[Language editing]]. Choose the languages (one at a time) and click &amp;quot;edit words or phrases&amp;quot;. Choose &amp;quot;file to edit&amp;quot; : moodle.php&lt;br /&gt;
Go to the string called &amp;quot;loginsteps&amp;quot; and put in the instruction text you want (for that language). Then repeat for the other languages you want offered.&lt;br /&gt;
&lt;br /&gt;
==How do I set up LDAP authentication?==&lt;br /&gt;
&lt;br /&gt;
See [[LDAP authentication]] for full instructions.&lt;br /&gt;
&lt;br /&gt;
==How is the &amp;quot;No login&amp;quot; authentication plugin used?==&lt;br /&gt;
&lt;br /&gt;
The [[No login]] authentication plugin can be used to suspend particular user accounts. To do so:&lt;br /&gt;
&lt;br /&gt;
# Access the user&#039;s profile page.&lt;br /&gt;
# Click the edit profile tab.&lt;br /&gt;
# Select &amp;quot;No login&amp;quot; as the authentication method. (If the setting isn&#039;t shown, click the &amp;quot;Show advanced&amp;quot; button to reveal it.)&lt;br /&gt;
# Click the &amp;quot;Update profile&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==Since upgrading, users are reporting that they can no longer login. What should be done?==&lt;br /&gt;
&lt;br /&gt;
If users are unable to login following an upgrade to 1.8 or 1.9, then most likely their account authentication method, such as [[Email-based self-registration]], requires enabling in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: The [[No authentication|No authentication (none)]] type should not be enabled on any production server. You can use phpmyadmin to convert all existing accounts created with &#039;none&#039; to &#039;manual&#039; or an admin can change the authentication type in [[Edit profile]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between enabling the email-based self-registration auth plugin and selecting it as the self registration method?==&lt;br /&gt;
&lt;br /&gt;
The [[Email-based self-registration| email-based self-registration authentication plugin]] must be enabled to allow users who previously self-registered to login.&lt;br /&gt;
&lt;br /&gt;
Selecting email-based self-registration as the self registration method allows potential users to self register.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. This risk can be minimized by limiting self registration to particular email domains with the allowed email domains setting in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Authentication|Manage authentication]]&#039;&#039; (or in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; prior to Moodle 1.9). Alternatively, self registration may be enabled for a short period of time to allow users to create accounts, and then later disabled.&lt;br /&gt;
&lt;br /&gt;
==How can I create an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
See [[Development:Authentication plugins]].&lt;br /&gt;
&lt;br /&gt;
==How can students without email addresses have Moodle accounts?==&lt;br /&gt;
&lt;br /&gt;
See [[No Email]].&lt;br /&gt;
&lt;br /&gt;
==Where are users&#039; details stored?==&lt;br /&gt;
&lt;br /&gt;
Users&#039; details can be stored in local Moodle database or externally.  &lt;br /&gt;
&lt;br /&gt;
If Users&#039; details are stored in the local Moodle database, it is called &amp;quot;internal authentication&amp;quot;. Storing users&#039; details externally is called &amp;quot;external authentication&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
See [[Manage authentication]] for more information.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=42 User authentication forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
[[de:Authentifizierung FAQ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=77461</id>
		<title>Embedded Answers (Cloze) question type</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Embedded_Answers_(Cloze)_question_type&amp;diff=77461"/>
		<updated>2010-11-04T12:42:24Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Format */ { should not be escaped in answers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Questions}}&lt;br /&gt;
&#039;&#039;&#039;Embedded answers (Cloze)&#039;&#039;&#039; questions consist of a passage of text (in Moodle format) that has various answers embedded within it, including multiple choice, short answers and numerical answers.&lt;br /&gt;
&lt;br /&gt;
There is currently no graphical interface to create these questions - you need to specify the question format using the text box or by importing them from external files. &lt;br /&gt;
&lt;br /&gt;
Lots of people suggest that [[Hot Potatoes]] software is the easiest way to create Embedded answer (Cloze) questions.  Once you have created your questions on your PC, you can then import them into Moodle&#039;s quiz module.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Question set-up==&lt;br /&gt;
&lt;br /&gt;
#Select the question category&lt;br /&gt;
#Give the question a descriptive name - this allows you to identify it in the question bank.&lt;br /&gt;
#Enter the passage of text (in Moodle format - see [[Embedded_Answers_%28Cloze%29_question_type#Format|Format]] below) into the &#039;question text&#039; field.&lt;br /&gt;
#Select an image to display if you want to add a picture to the question. For the student, it appears immediately above the question text.&lt;br /&gt;
#Set the &#039;default question grade&#039; (i.e. the maximum number of marks for this question).&lt;br /&gt;
#Set the &#039;Penalty factor&#039; (see [[Embedded_Answers_%28Cloze%29_question_type#Penalty_factor|Penalty factor]] below).&lt;br /&gt;
#If you wish, add general feedback. This is text that appears to the student after he/she has answered the question.&lt;br /&gt;
#The editor has been modified and allows you to test if your syntax is good. The different questions elements decoded will be displayed and syntax errors pinpoint. However, it cannot check if the question decoded is two questions in one because of an error syntax.&lt;br /&gt;
#Click Save changes to add the question to the category.&lt;br /&gt;
&lt;br /&gt;
=== Penalty factor ===&lt;br /&gt;
&lt;br /&gt;
The &#039;penalty factor&#039; only applies when the question is used in a quiz using adaptive mode - i.e. where the student is allowed multiple attempts at a question even within the same attempt at the quiz. If the penalty factor is more than 0, then the student will lose that proportion of the &#039;&#039;&#039;maximum&#039;&#039;&#039; grade upon each successive attempt. For example, if the default question grade is 10, and the penalty factor is 0.2, then each successive attempt after the first one will incur a penalty of 0.2 x 10 = 2 points.&lt;br /&gt;
&lt;br /&gt;
==Question rendering==&lt;br /&gt;
&lt;br /&gt;
The question answer INPUT HTML ELEMENT ( Short and Numerical) or SELECT HTML ELEMENT (multichoice) are normally displayed in-line with the text.&lt;br /&gt;
&lt;br /&gt;
The size of INPUT HTML ELEMENT ( Short and Numerical) will be adjustable to the length of the longest answer (good or bad) + a random number (0 to 15% total length).([[User:Pierre Pichet|Pierre Pichet]] 15:37, 26 January 2008 (CST))&lt;br /&gt;
&lt;br /&gt;
The size will adjust to the length of the student response when displayed in the grading and feedback process.&lt;br /&gt;
&lt;br /&gt;
The size of the SELECT HTML ELEMENT (multichoice) adjusts itself automatically to the longest answer.&lt;br /&gt;
&lt;br /&gt;
==Format==&lt;br /&gt;
&lt;br /&gt;
Questions consist of a passage of text (in Moodle format) that has various sub-questions embedded within it, including&lt;br /&gt;
&lt;br /&gt;
* short answers (SHORTANSWER or SA or MW), case is unimportant,&lt;br /&gt;
* short answers (SHORTANSWER_C or SAC or MWC), case must match,&lt;br /&gt;
* numerical answers (NUMERICAL or NM),&lt;br /&gt;
* multiple choice (MULTICHOICE or MC), represented as a dropdown menu in-line in the text&lt;br /&gt;
* multiple choice (MULTICHOICE_V or MCV), represented a vertical column of radio buttons, or&lt;br /&gt;
* multiple choice (MULTICHOICE_H or MCH), represented as a horizontal row of radio-buttons.&lt;br /&gt;
&lt;br /&gt;
For full details of the format for embedded-answers questions, see the [[Embedded_Answers_%28Cloze%29_question_type#Detailed_syntax_explanations|detailed syntax explanation]] below.&lt;br /&gt;
&lt;br /&gt;
NB: Be careful when copying a cloze type question into the WYSIWYG HTML editor, as line breaks tend to get added, which destroys the question.&lt;br /&gt;
&lt;br /&gt;
If the correct answer contains } # ~ / &amp;quot; or \ you will have to escape them by putting a \ in front of each such character. The { shouldn&#039;t be escaped, this can be vital in getting TeX expressions to work. In the feedback ~ and } must be escaped otherwise it will be interpreted as &#039;&#039;the next answer&#039;&#039; or &#039;&#039;end of the short answer section&#039;&#039; respectively. Quotation signs: &amp;quot; can lead to trouble anyhow in both places. Use the HTML entity: &amp;amp; quot; (without the space between &#039;&#039;&amp;amp;&#039;&#039; and &#039;&#039;quot;&#039;&#039;). If you want to have Mathematical symbols there can be problems with the \ used in TeX expressions. One alternative can be to use [[unicode]] characters. &lt;br /&gt;
&lt;br /&gt;
See the notes further down about numerical embedded question!&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
&lt;br /&gt;
====Example 1====&lt;br /&gt;
The following text creates a simple embedded-answers question:&lt;br /&gt;
&lt;br /&gt;
 Match the following cities with the correct state:&lt;br /&gt;
 * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}&lt;br /&gt;
 * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}&lt;br /&gt;
 * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}&lt;br /&gt;
 The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!&lt;br /&gt;
 ~%50%Marseille#No, that is the second largest city in France (after&lt;br /&gt;
 Paris).~*#Wrong answer. The capital of France is Paris, of course.}.&lt;br /&gt;
&lt;br /&gt;
And the result will be:&lt;br /&gt;
 &lt;br /&gt;
[[Image:Cloze.gif|Cloze question type]] &lt;br /&gt;
&lt;br /&gt;
====Example 2====&lt;br /&gt;
&lt;br /&gt;
 This question consists of some text with an answer embedded right here {1:MULTICHOICE:Wrong answer#Feedback for this wrong answer~Another wrong answer#Feedback for the other wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and right after that you will have to deal with this short answer {1:SHORTANSWER:Wrong answer#Feedback for this wrong answer~=Correct answer#Feedback for correct answer~%50%Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 and finally we have a floating point number {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8~%50%23.8:2#Feedback for half credit answer in the nearby region of the correct answer}.&lt;br /&gt;
 The  multichoice question can also be shown in the vertical display of the standard moodle multiple choice.&lt;br /&gt;
 {2:MCV:1. Wrong answer#Feedback for this wrong answer~2. Another wrong answer#Feedback for the other wrong answer~=3. Correct answer#Feedback for correct answer~%50%4. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 Or in an horizontal display that is included here in a table&lt;br /&gt;
 {2:MCH:a. Wrong answer#Feedback for this wrong answer~b. Another wrong answer#Feedback for the other wrong answer~=c. Correct answer#Feedback for correct answer~%50%d. Answer that gives half the credit#Feedback for half credit answer}&lt;br /&gt;
 A shortanswer question where case must match. Write moodle in upper case letters {1:SHORTANSWER_C:moodle#Feedback for moodle in lower case ~=MOODLE#Feedback for MOODLE in upper case ~%50%Moodle#Feedback for only first letter in upper case}&lt;br /&gt;
 Note that addresses like www.moodle.org and smileys :-) all work as normal:&lt;br /&gt;
 a) How good is this? {:MULTICHOICE:=Yes#Correct~No#We have a different opinion}&lt;br /&gt;
 b) What grade would you give it? {3:NUMERICAL:=3:2}&lt;br /&gt;
&lt;br /&gt;
[[Image:Cloze example.png]]&lt;br /&gt;
&lt;br /&gt;
Some things to note:&lt;br /&gt;
* The individual embedded answers are represented by the code in braces {}.&lt;br /&gt;
* The number at the start is the &#039;weight&#039;, so in this case each answer contributes an equal share of the overall grade.&lt;br /&gt;
* The correct option in each case is preceded either by an = sign or by %100%. &lt;br /&gt;
:&#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
* The text appearing after the # that follows each option is the feedback that the student will see if they choose that option.&lt;br /&gt;
* If the student enters &#039;Marseille&#039; in the final example, they score 50% of the total grade.&lt;br /&gt;
* The asterisk * preceding the &amp;quot;Wrong answer&amp;quot; feedback in the final example means that the student will see this feedback if they enter anything other than &amp;quot;Paris&amp;quot; or &amp;quot;Marseille&amp;quot;.&lt;br /&gt;
* For multiple choice vertical or horizontal rendering there is no automatic numbering, though can added at each answer.&lt;br /&gt;
&lt;br /&gt;
==Detailed syntax explanations==&lt;br /&gt;
# all question items within a cloze-type question are coded inside curled braces { }&lt;br /&gt;
# the number which appears between the opening brace and the colon {1: is the weighting of that item; if it is set at 1 for all the items, it needs not be specified, so you can have {:&lt;br /&gt;
# after the colon we have the item question type: MULTICHOICE, SHORTANSWER, NUMERICAL&lt;br /&gt;
# &#039;&#039;&#039;NOTE&#039;&#039;&#039;.- If you have installed the [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=338 REGEXP question type plugin] you can also use the REGEXP question type&lt;br /&gt;
# the syntax for MULTICHOICE and SHORTANSWER is the same; the only difference is in the displaying of the item to the student&lt;br /&gt;
# the order of the various answers is indifferent (except if you want a catch-all for wrong answers, see #13 below)&lt;br /&gt;
# a correct answer is preceded with the equal sign = or a percentage (usually %100%) - &#039;&#039;&#039;Note&#039;&#039;&#039;: [[Talk:Embedded_Answers_(Cloze)_question_type| The equal sign (=) doesn&#039;t seem to work with SHORTANSWER.]]&lt;br /&gt;
# a wrong answer is preceded with nothing or a percentage (usually %0%)&lt;br /&gt;
# you can allocate some points between 0 and 100 to some answers, if you put the appropriate percentage&lt;br /&gt;
# all answers except the first one are separated from one another by the tilde ~ sign&lt;br /&gt;
# answers can be followed by an optional feedback message, preceded with the # sign; if there is no feedback message, the # sign can be present or absent, it does not matter&lt;br /&gt;
# note that the feedback message and (since [[User:Pierre Pichet|Pierre Pichet]] 24 May 2008 )in 1.9 the correct answer are displayed in a small popup window (if and when the correct and or feedback have been declared accessible to the students in the Quiz settings) upon mouse hovering. The popup window has a title &amp;quot;feedback&amp;quot; and you can use HTML tags to format your feedback. In some browsers (For example IE5.5) the form fields can cover part of the feedback windows. It can help to not have the formfields for the answers too close to each other.&lt;br /&gt;
# in the SHORTANSWER type you may want to put a catch-all (wrong) answer in order to send a &amp;quot;wrong, try again&amp;quot; feedback; you can do this by inserting an asterisk &#039;&#039;&#039;*&#039;&#039;&#039; as &#039;&#039;&#039;the very last expected answer&#039;&#039;&#039; in your formula&lt;br /&gt;
# unfortunately in MULTICHOICE MODE it is not possible to get the answers to be scrambled&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Numerical Cloze questions==	 &lt;br /&gt;
		 &lt;br /&gt;
From the student perspective, a numerical Cloze question looks just like a short-answer question or &#039;&#039;fill in the blanks&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. You can also express your answer in some different numerical formats. 23.4 23,4 (some countries use , as a decimal separator) and 2.34E+1 (meaning 2.34*10^1) would be interpreted as the same.&lt;br /&gt;
&lt;br /&gt;
=== False positives ===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note:&#039;&#039;&#039; the following examples of false positives do &#039;&#039;&#039;not&#039;&#039;&#039; apply to Moodle 1.8+, where you cannot use percentages or fractions as the answers in a numerical Cloze test; Moodle will generate an error if you try to save such a question. However the following may be relevant for earlier versions of Moodle.&lt;br /&gt;
&lt;br /&gt;
 More examples:	 &lt;br /&gt;
 0.5 accepts .5 0.5 ,5 0,5 0.500 5e-1 5E-1 but not 1/2 50% 	 &lt;br /&gt;
 50% accepts 50% 50.0% 5E1% 50/100 even &#039;&#039;&#039;50/1000 50&#039;&#039;&#039; but not 500/1000 0.5	 &lt;br /&gt;
 1/2 accepts 1/2 &#039;&#039;&#039;1/3 1twenty&#039;&#039;&#039; but not 2/4 0.5 0,5 3/6 50% ½	 &lt;br /&gt;
 ½ accepts ½	 &lt;br /&gt;
 HALF doesn&#039;t even accept HALF (maybe &#039;&#039;&#039;0&#039;&#039;&#039;?)	 &lt;br /&gt;
&lt;br /&gt;
If you want to accept several variants you can have them in the same {} but &#039;&#039;&#039;be careful, notice the &amp;quot;false positives&amp;quot; in bold&#039;&#039;&#039;!&lt;br /&gt;
&lt;br /&gt;
===Syntax for numerical Cloze questions===&lt;br /&gt;
&lt;br /&gt;
The format of a NUMERICAL Cloze question is similar to that of the other Cloze types and they can be mixed in the same question. As with other Cloze tests, you write your question or incomplete text, and add the Cloze code at the point where the student is supposed to enter their numerical answer.&lt;br /&gt;
&lt;br /&gt;
An example of the syntax used is shown below:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Note: &#039;&#039;&#039; It is preferable to write the code in &#039;source code&#039; mode. The WSIWYG editor can insert linebreaks that make the question not function. The linebreak in the example box below is for readability only! A problem with these questions is the readability of the code! :(	&lt;br /&gt;
		 &lt;br /&gt;
 {2:NUMERICAL:=23.8:0.1#Feedback for correct answer 23.8	 &lt;br /&gt;
 ~%50%23.8:2#Feedback for ½credit near correct answer}. 	 &lt;br /&gt;
	 &lt;br /&gt;
In this example:&lt;br /&gt;
* 2: is the question point weight, which means that this question has twice the weight in the final point(s) for this question as other partial answers with weight 1 (or no declared weight - you can start with {: for the default weight 1) in the same question.&lt;br /&gt;
* NUMERICAL: says what kind of question it is. It must be in CAPS. &lt;br /&gt;
* =23.8:0.1 = or %100% means correct if the answer is 23.8 with an accepted error of 0.1, then any number between 23.7 and 23.9 will be accepted as correct. (In the GIFT numerical question one can express an interval like this 13..15 or 14:1 but in Cloze only 14:1 works.)	 &lt;br /&gt;
* #Feedback for correct answer 23.8 is preceded by #&lt;br /&gt;
* ~%50%23.8:2 ~ is the separator for answer alternatives %50% means this answer would get 50% of the score that the more precise answer had gotten. Because the tolerance here is 2, 21.8 to 25.8 would get this point and feedback.&lt;br /&gt;
&lt;br /&gt;
The feedback (which is seen within a popup window when the user hovers over the answer space) is formattable with HTML tags. For example, if you want an exponent, surround it with superscript tags: &amp;amp;lt;sup&amp;amp;gt; &amp;amp;lt;/sup&amp;amp;gt;. You can even include pictures in the feedback popup, but you must clean out all &amp;quot; characters and save while still in source code mode (not WYSIWYG). So, this works in feedback popup:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=Something.gif /&amp;gt;}	 &lt;br /&gt;
but not this:&lt;br /&gt;
 #See this picture:&amp;amp;lt;br&amp;amp;gt;&amp;amp;lt;img src=&amp;quot;Something.gif&amp;quot; /&amp;gt;}	 &lt;br /&gt;
&lt;br /&gt;
(ALGEBRA and TEX filters don&#039;t work in the feedback popups, but they can be very useful in the question writing for math/science expressions). But you can use [[Unicode]] characters.	 &lt;br /&gt;
&lt;br /&gt;
If you want to give feedback for any answer that didn&#039;t fit the intervals you already have specified feedback for, add some BIG general intervals, like for positive answers (if they aren&#039;t bigger than 20000 you could add:	 &lt;br /&gt;
 ~%0%10000.0001:10000#Feedback for unspecified not_right answers}	 &lt;br /&gt;
This would give feedback for anything from 0.0001 to 20000.0001 (that hadn&#039;t already gotten feedback). I didn&#039;t want to include 0 since that special case as well as negative ought to have specific reactions.	 &lt;br /&gt;
 ~%0%0#Hey! It can&#039;t be zero	 &lt;br /&gt;
 ~%0%-10000.0001:10000#We just want the size here,	 &lt;br /&gt;
 so a negative value is not what we want}			 &lt;br /&gt;
&lt;br /&gt;
Numerical questions could, before version 1.7, also have case-insensitive non-numerical answers. This is useful whenever the answer for a numerical question is something like +inf, -inf, NaN etc.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
This information was drawn from:&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36521 Is there a guide to using the cloze format?] forum discussion&lt;br /&gt;
*Using Moodle [http://moodle.org/mod/forum/discuss.php?d=36430&amp;amp;parent=170308 Cloze-type question syntax] forum post&lt;br /&gt;
&lt;br /&gt;
[[fr:Question Cloze à réponses intégrés]]&lt;br /&gt;
[[ja: 穴埋め問題 ( Cloze ) タイプ]]&lt;br /&gt;
[[de:Lückentext-Fragen]]&lt;br /&gt;
[[zh:填空題(克漏字)]]&lt;br /&gt;
[[es:Tipo de Pregunta incrustadas (Cloze)]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=74803</id>
		<title>Broken/Setting up Netbeans</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=74803"/>
		<updated>2010-08-15T21:04:39Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== CVS instructions ==&lt;br /&gt;
&lt;br /&gt;
I copied the instructions from [[User:Gary_Anderson| Gary Anderson]]&#039;s &#039;&#039;NetBeans for Moodle Development course&#039;&#039; (http://moodle2.seattleacademy.org/wiki/index.php/Get_the_Moodle_Software, http://moodle2.seattleacademy.org/course/view.php?id=5). There might be some redundancies which still have to be amended. --[[User:Frank Ralf|Frank Ralf]] 09:43, 20 May 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
: I was in the Gary Andersson course and there was a prepared package there with both NetBeans and Moodle. But Right now I can&#039;t get to that course at all. I am setting up on another computer and would like to have the latest NetBeans 6.7, and set up Moodle preferably both 1.9.5+ and HEAD 2.0. &lt;br /&gt;
&lt;br /&gt;
: When I see the instructions here I don&#039;t see anything about getting the xamp server setup. &lt;br /&gt;
&lt;br /&gt;
: I also wonder about if one should maybe use a complete install package first than connect that to NetBeans and after that try doing CVS updating through NetBeans. (I maybe wrong, but I assume that doing a complete install via CVS would take much longer.)  I also assume that I must than create an extra Moodle database in MySQL and of course a separate folder if I want to install 2.0 also.  [[User:Jeff Forssell|Jeff Forssell]] 13:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:: Hi Jeff, If you want to use CVS you should do a manual installation.&lt;br /&gt;
::* Setting up XAMPP is nothing more than downloading and unpacking it, really painless. The web server&#039;s directory will be \htdocs\.&lt;br /&gt;
::* Then you install NetBeans 6.7 and do separate CVS checkouts for HEAD (2.0) and 1.9.5 into separate directories (e.g. \htdocs\moodle19\ and \htdocs\moodle20\.&lt;br /&gt;
::* Then you can run Moodle 1.9.5 under &amp;quot;localhost/moodle19/&amp;quot; in your browser and Moodle &amp;quot;localhost/moodle20/&amp;quot;. &lt;br /&gt;
:: Further details for manually setting up Moodle you&#039;ll find under [[Windows installation using XAMPP]]. hth --[[User:Frank Ralf|Frank Ralf]] 13:42, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::Thanx&lt;br /&gt;
&lt;br /&gt;
:::I&#039;ve done lots of xampp installs of the Moodle complete packages, but never just xampp alone. Should I interpret your answer as I have to install Moodle via CVS if I want to use CVS to keep it updated? And that it won&#039;t be ridiculously long time doing the original checkout? In the GA course we did a CVS update of the original install, but I don&#039;t know if he had done that package by doing a CVS checkout. (It just doesn&#039;t feel like that was what was going on!) &lt;br /&gt;
:::: The first checkout might take some time, but as far as I remember it&#039;s done in about 15 minutes. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::: Oh well I suppose it&#039;s time to learn to create MySQL databases for Moodle without complete packages or Fantastico! [[User:Jeff Forssell|Jeff Forssell]] 15:04, 9 July 2009 (UTC)&lt;br /&gt;
:::: XAMPP comes with PHPMyAdmin for MySQL administration. That&#039;s a very useful tool and worth exploring. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::: Just another thing: Moodle 2.0 requires quite recent versions of PHP and MySQL. So for using HEAD I had to install a new version of XAMPP (I have two versions installed on my development machine which is no problem, you only should not run them at the same time). --[[User:Frank Ralf|Frank Ralf]] 16:14, 9 July 2009 (UTC)&lt;br /&gt;
::::: I have now CVSed moodle 1.9 with NetBeans - it took less than 10 mins. Created a new project. Then it started &amp;quot;scanning projects&amp;quot; - I didn&#039;t know what it is doing and it wasn&#039;t finished after more than 10 minutes. I see now that it has stopped. Anyhow now I\ve also done the same with HEAD / moodle20.&lt;br /&gt;
&lt;br /&gt;
:::::I have some hesitation about trying to &amp;quot;run&amp;quot; them. Anything one should do before that other than creating the projects?  [[User:Jeff Forssell|Jeff Forssell]] 08:55, 10 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::::: I see when trying to RUN that my moodle 2.0 is in http://localhost/moodle20/moodle/install.php while i thought it would be in http://localhost/moodle20/install.php. Maybe that&#039;s good because the NB proj files are in a folder there too. &lt;br /&gt;
&lt;br /&gt;
:::::When I get to the &amp;quot;web address&amp;quot; page that is greyed out. I was hoping to try out setting the computer name so I could access from others on my intranet. How can I change that (from &amp;quot;localhost&amp;quot;)?&lt;br /&gt;
&lt;br /&gt;
:::::: Hi Jeff, I would suggest moving this discussion to the appropriate forum to give more people the chance to join. This here is quite a private place and should preferably only be used for issues directly connected to this Moodle Docs page. Thanks in advance! --[[User:Frank Ralf|Frank Ralf]] 10:29, 10 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::::::: Which is &amp;quot;the appropriate forum&amp;quot; for this subject? [[User:Jeff Forssell|Jeff Forssell]] 21:04, 15 August 2010 (UTC)&lt;br /&gt;
:::::: &amp;quot;localhost&amp;quot; is always the local PC itself. You can access it from other computers by using the PC&#039;s IP address (use &amp;quot;ipconfig&amp;quot; in a DOS box) or by modifying the &amp;quot;hosts&amp;quot; file on your PC.&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Language_editing&amp;diff=73855</id>
		<title>Language editing</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Language_editing&amp;diff=73855"/>
		<updated>2010-07-12T11:32:32Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Changes in 1.9 */ set to &amp;quot;prevent&amp;quot; + dd in adition&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Location: &#039;&#039;Administration &amp;gt; Language &amp;gt; Language editing&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Edit words or phrases ==&lt;br /&gt;
[[Image:Editing-language-moodle-19.gif|thumb|Edit words or phrases in Moodle 1.9.5]]The language editing interface enables you to easily change any word or phrase used on the site. For example, you may want to change the word &amp;quot;Course&amp;quot; to &amp;quot;Area&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
To edit a word or phrase:&lt;br /&gt;
#Access &#039;&#039;Administration &amp;gt; Language &amp;gt; Language editing&#039;&#039;.&lt;br /&gt;
#Click the &amp;quot;Edit words or phrases&amp;quot; link in the middle of the page.&lt;br /&gt;
#Choose a file to edit. You may need to search through a few files before finding the file containing the word you wish to change. The file &#039;&#039;moodle.php&#039;&#039; contains all common site-wide phrases.&lt;br /&gt;
#Change the word or phrase.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button. The changed phrase will be highlighted in a different color.&lt;br /&gt;
&lt;br /&gt;
Note: In versions of Moodle prior to 1.9, it is necessary to click the &amp;quot;Switch lang directory&amp;quot; button on the edit words or phrases page. A local language folder, &#039;&#039;parentlanguage_local&#039;&#039;, will then be automatically created in &#039;&#039;moodledata/lang&#039;&#039;. Files of edited strings will then be saved in this folder. This is necessary to prevent changes that you make being overwritten by a newer language pack when updating. In Moodle 1.9 onwards, the option to switch is no longer provided as edited strings are automatically saved in the local language folder.&lt;br /&gt;
&lt;br /&gt;
If you wish to make further changes later, be sure to check that files of edited strings will again be saved to the folder &#039;&#039;parentlanguage_local&#039;&#039;, switching folder if necessary.&lt;br /&gt;
&lt;br /&gt;
==Changes in 1.9==&lt;br /&gt;
[[Image:screenshot-admin-lang-19.png|thumb|Language pack maintaining in Moodle 1.9]]&lt;br /&gt;
{{Moodle 1.9}}* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditmaster|moodle/site:langeditmaster]] may modify the master language packages (i.e. those being saved in &#039;&#039;moodledata/lang/&#039;&#039;). By default, the admin role has this capability set to &amp;quot;&#039;&#039;prevent&#039;&#039;&amp;quot;. It is expected that only language maintainers will manually allow this for themselves. Language pack maintainers have an additional &amp;quot;Language pack maintaining&amp;quot; tab.&lt;br /&gt;
* From Moodle 1.9 onwards, only users with the capability [[Capabilities/moodle/site:langeditlocal|moodle/site:langeditlocal]] may customize the site translation (i.e. files being saved in &#039;&#039;moodledata/lang_local/&#039;&#039;). Admins are allowed to do this by default.&lt;br /&gt;
* Added ability to edit language files in non-standard locations, i.e. string files for various types of plugin (e.g. blocks, database presets, 3rd party modules etc.)&lt;br /&gt;
* Features coming soon: The ability to edit help files in non-standard locations and translate local modifications of help files.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Language FAQ]]&lt;br /&gt;
* [[Translation]]&lt;br /&gt;
* [[Development:Places to search for lang strings]]&lt;br /&gt;
* [[Talk:Language editing]] for information on language editing in Moodle 1.5&lt;br /&gt;
* [http://www.moodletutorials.org/view_video.php?viewkey=4a10e0db5e4b97fc2af3 Tutorial Showing How to Change a Word or Phrase in Moodle 1.9]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=49150 Local language]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=78225 Editing help files]&lt;br /&gt;
&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
[[es:admin/lang]]&lt;br /&gt;
[[fr:Langue]]&lt;br /&gt;
[[ja:言語]]&lt;br /&gt;
[[pt:Edição da língua]]&lt;br /&gt;
[[zh:语言]]&lt;br /&gt;
[[sk:Jazyk]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Formatting_text&amp;diff=72020</id>
		<title>Formatting text</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Formatting_text&amp;diff=72020"/>
		<updated>2010-05-11T09:57:45Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Markdown text format */ SPACE after .&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When writing text in Moodle there are several formats you can choose to produce your text, depending on your expertise and the type of browser you are using.&lt;br /&gt;
&lt;br /&gt;
Usually you can just leave this setting to the default value and things should work as you expect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Moodle auto-format==&lt;br /&gt;
&lt;br /&gt;
This format is best for when you are using normal web forms for entry (instead of the Richtext HTML editor). Just type text normally, as if you were sending an email.&lt;br /&gt;
&lt;br /&gt;
When you save your text, Moodle will do a number of things to automatically format your text for you. &lt;br /&gt;
&lt;br /&gt;
For example, URLs such as http://yahoo.com or even www.yahoo.com will be turned into links. Your line breaks will be retained, and blank lines will start new paragraphs.&lt;br /&gt;
&lt;br /&gt;
Smiley characters such as :-) will automatically become their graphical equivalents.&lt;br /&gt;
&lt;br /&gt;
You can even embed HTML code if you want to and it will be retained.&lt;br /&gt;
&lt;br /&gt;
More info about Moodle auto-formatting: http://moodle.org/help.php?file=text.html&lt;br /&gt;
&lt;br /&gt;
==HTML format==&lt;br /&gt;
&lt;br /&gt;
This format assumes the text is pure HTML. If you are using the HTML editor to edit text then this is the default format - all the commands in the toolbar are producing HTML for you.&lt;br /&gt;
&lt;br /&gt;
Even if you are not using the Richtext HTML editor, you can use HTML code in your text and it should come out exactly as you intended.&lt;br /&gt;
&lt;br /&gt;
Unlike the Moodle auto-format, no automatic formatting is performed.&lt;br /&gt;
&lt;br /&gt;
More info about HTML in Moodle: http://moodle.org/help.php?file=html.html&lt;br /&gt;
&lt;br /&gt;
More info about the Richtext HTML editor: http://moodle.org/help.php?file=richtext.html&lt;br /&gt;
&lt;br /&gt;
==Plain text format==&lt;br /&gt;
&lt;br /&gt;
This format is useful when you need to include lots of code or HTML that you want to be displayed exactly as you wrote it.&lt;br /&gt;
&lt;br /&gt;
It still translates spaces and new lines, but otherwise your text isn&#039;t touched.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Markdown text format==&lt;br /&gt;
&lt;br /&gt;
[http://moodle.org/help.php?file=markdown.html Markdown] format tries to make it easy as possible to type well-formatted XHTML pages using nothing but text written more or less like you would write an email.&lt;br /&gt;
&lt;br /&gt;
It&#039;s very good for writing clean text pages with some headings and some lists but without many links or images. It is an excellent choice when accessibility of the generated page is important.&lt;br /&gt;
&lt;br /&gt;
For complete syntax description, see: http://daringfireball.net/projects/markdown/syntax Moodle 1.6 has extended features called Markdown Extra: for &#039;&#039;additional&#039;&#039; features see http://www.michelf.com/projects/php-markdown/extra/&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
* &#039;&#039;Wrong Characters Showing&#039;&#039; - If some users do not see the same characters or figures, have them check their browser settings for their character settings.  At Moodle.org, the recommended default character decoding set is UTF-8.  On a Firefox browser, this can be found in Tools&amp;gt;Options&amp;gt;Fonts &amp;amp; colors&amp;gt;advanced&amp;gt;default character decoding pull down menu.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work you can try installing a UTF-8 Unicode font from: http://titus.fkidg1.uni-frankfurt.de/unicode/tituut.asp. (This has at least helped XP users that weren&#039;t seeing stars in the ratings.)&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
&lt;br /&gt;
[[de:Formatierung]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Formatting_text&amp;diff=71957</id>
		<title>Formatting text</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Formatting_text&amp;diff=71957"/>
		<updated>2010-05-10T10:32:49Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Markdown text format */ put in URL to markdown&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When writing text in Moodle there are several formats you can choose to produce your text, depending on your expertise and the type of browser you are using.&lt;br /&gt;
&lt;br /&gt;
Usually you can just leave this setting to the default value and things should work as you expect.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Moodle auto-format==&lt;br /&gt;
&lt;br /&gt;
This format is best for when you are using normal web forms for entry (instead of the Richtext HTML editor). Just type text normally, as if you were sending an email.&lt;br /&gt;
&lt;br /&gt;
When you save your text, Moodle will do a number of things to automatically format your text for you. &lt;br /&gt;
&lt;br /&gt;
For example, URLs such as http://yahoo.com or even www.yahoo.com will be turned into links. Your line breaks will be retained, and blank lines will start new paragraphs.&lt;br /&gt;
&lt;br /&gt;
Smiley characters such as :-) will automatically become their graphical equivalents.&lt;br /&gt;
&lt;br /&gt;
You can even embed HTML code if you want to and it will be retained.&lt;br /&gt;
&lt;br /&gt;
More info about Moodle auto-formatting: http://moodle.org/help.php?file=text.html&lt;br /&gt;
&lt;br /&gt;
==HTML format==&lt;br /&gt;
&lt;br /&gt;
This format assumes the text is pure HTML. If you are using the HTML editor to edit text then this is the default format - all the commands in the toolbar are producing HTML for you.&lt;br /&gt;
&lt;br /&gt;
Even if you are not using the Richtext HTML editor, you can use HTML code in your text and it should come out exactly as you intended.&lt;br /&gt;
&lt;br /&gt;
Unlike the Moodle auto-format, no automatic formatting is performed.&lt;br /&gt;
&lt;br /&gt;
More info about HTML in Moodle: http://moodle.org/help.php?file=html.html&lt;br /&gt;
&lt;br /&gt;
More info about the Richtext HTML editor: http://moodle.org/help.php?file=richtext.html&lt;br /&gt;
&lt;br /&gt;
==Plain text format==&lt;br /&gt;
&lt;br /&gt;
This format is useful when you need to include lots of code or HTML that you want to be displayed exactly as you wrote it.&lt;br /&gt;
&lt;br /&gt;
It still translates spaces and new lines, but otherwise your text isn&#039;t touched.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Markdown text format==&lt;br /&gt;
&lt;br /&gt;
[[http://moodle.org/help.php?file=markdown.html Markdown]] format tries to make it easy as possible to type well-formatted XHTML pages using nothing but text written more or less like you would write an email.&lt;br /&gt;
&lt;br /&gt;
It&#039;s very good for writing clean text pages with some headings and some lists but without many links or images.&lt;br /&gt;
&lt;br /&gt;
==Tips and Tricks==&lt;br /&gt;
* &#039;&#039;Wrong Characters Showing&#039;&#039; - If some users do not see the same characters or figures, have them check their browser settings for their character settings.  At Moodle.org, the recommended default character decoding set is UTF-8.  On a Firefox browser, this can be found in Tools&amp;gt;Options&amp;gt;Fonts &amp;amp; colors&amp;gt;advanced&amp;gt;default character decoding pull down menu.&lt;br /&gt;
&lt;br /&gt;
If that doesn&#039;t work you can try installing a UTF-8 Unicode font from: http://titus.fkidg1.uni-frankfurt.de/unicode/tituut.asp. (This has at least helped XP users that weren&#039;t seeing stars in the ratings.)&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Feedback_link_for_all_elements&amp;diff=71773</id>
		<title>Feedback link for all elements</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Feedback_link_for_all_elements&amp;diff=71773"/>
		<updated>2010-05-05T10:48:56Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Page */ how much effort did YOU put forth to use page?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a work in progress when I find the time. Sometimes there is obvious repetition that I haven&#039;t cleaned up yet.  &lt;br /&gt;
&lt;br /&gt;
The web is more and more social in that the users/readers of content are more and more invited to influence the content. This is especially true for support pages that are for helping ie. [http://documents.google.com/support/spreadsheets/bin/answer.py?answer=87589 Google &amp;quot;was this helpful?&amp;quot;];  [http://office.microsoft.com/en-us/powerpoint/HP030713791033.aspx?pid=CH063500491033 Microsofts ditto].&lt;br /&gt;
&lt;br /&gt;
Therefore it seems very important that this feature is lacking in Moodle, especially considering its social constructivistic underpinnings. It seems natural that this should be implemented, indeed almost a glaring miss.&lt;br /&gt;
&lt;br /&gt;
There is a form for collecting feedback ([https://docs.moodle.org/en/Development:Feedback  documentation] [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=95 download]) in Moodle which can be used for making course evaluations etc. The problem is that it is difficult to get people to spontaneously report suggestions, criticisms etc at all. If they have to find and go to another page, formulate a description of where they came from and what they want, felt etc, there are few that will do it, and the quality of the feedback will often lack crucial details so it may be useless. &lt;br /&gt;
&lt;br /&gt;
Collecting feedback in a general form at the end of a course has many lacks. The students are poorly motivated (they won&#039;t be getting any use of changes that are made). Many annoyances, suggestions will have been forgotten. Those that are remembered will be difficult to describe accurately.&lt;br /&gt;
&lt;br /&gt;
One way of nicely collecting feedback for an HTML page is to use a forum page as if it were an ordinary webpage. Then, after the content you put into the top, there is a forum at the bottom which can receive feedback and can have some soc. const. advantages over my proposal. But this wouldn&#039;t work for other kinds of pages/elements.&lt;br /&gt;
&lt;br /&gt;
Having some kind of general course feedback early in a course is a good idea and can, of course, meet the first problem (that the pupil&#039;s feedback usually doesn&#039;t effect the on-going course).&lt;br /&gt;
&lt;br /&gt;
=Which Elements?=&lt;br /&gt;
==Page==&lt;br /&gt;
The properties that would be good to include:&lt;br /&gt;
*No response&lt;br /&gt;
*General rating&lt;br /&gt;
*Lacking: &lt;br /&gt;
**Linkage&lt;br /&gt;
**Content&lt;br /&gt;
**Language&lt;br /&gt;
***grammar&lt;br /&gt;
***spelling&lt;br /&gt;
*Suggestions&lt;br /&gt;
* Automatically (javascript) generated info about the browser, operating system, screen and window size, plugin availability. Often the user wouldn&#039;t even know these things, and they could be critically helpful for the page editor.&lt;br /&gt;
&lt;br /&gt;
Here is an example of [http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm a page feedback form]. The form has many of the things that I&#039;d like to include. I would be like to have a small page with expandable fields connected to checked types. Only the first two checks are implemented in this. It does have a JavaScript that in the background includes auto-generated information in the form submission.&lt;br /&gt;
&lt;br /&gt;
This microSoft page had some interesting questions:&lt;br /&gt;
&lt;br /&gt;
 Provide feedback on this information&lt;br /&gt;
 Did this information solve your problem?&lt;br /&gt;
  Yes &lt;br /&gt;
  No &lt;br /&gt;
  I don&#039;t know &lt;br /&gt;
&lt;br /&gt;
 Was this information relevant?&lt;br /&gt;
  Yes &lt;br /&gt;
  No &lt;br /&gt;
&lt;br /&gt;
 How much effort did you personally put forth to use this article?&lt;br /&gt;
  Very low &lt;br /&gt;
  Low &lt;br /&gt;
  Moderate &lt;br /&gt;
  High &lt;br /&gt;
  Very high &lt;br /&gt;
 &lt;br /&gt;
 What can we do to improve this information?&lt;br /&gt;
&lt;br /&gt;
==Quiz questions (even lesson and feedback and questionnaire?)==&lt;br /&gt;
This is very important. If I had to chose between Page  and Question, I&#039;d chose question feedback.&lt;br /&gt;
&lt;br /&gt;
Since evaluation questions are very important to the learners, they are very motivated to see that they are clear.&lt;br /&gt;
&lt;br /&gt;
This can also be a way to make students an active part of the quiz creation/improvement process. Dennis Daniels has been trying to [http://video.google.com/videoplay?docid=5678154150724088700&amp;amp;q=dennis+daniels+moodle+quiz&amp;amp;total=35&amp;amp;start=0&amp;amp;num=10&amp;amp;so=0&amp;amp;type=search&amp;amp;plindex=7 push for this possibility]. He calls it &amp;quot;question challenge&amp;quot;. A possible use scenario: The teacher quickly prepares a quiz with minimal answer alternatives and makes it available to the fastest students. These are encouraged to add more answer alternatives with motivations, and react to the existing formulation, grading and feedback. The teacher reviews their feedback and easily incorporates the useful suggestions into the test before the main body of students try the quiz. &lt;br /&gt;
&lt;br /&gt;
There are many possible parts that can be specific to the feedback for questions.&lt;br /&gt;
&lt;br /&gt;
Is the question itself clear? This might be able to be covered by the same fields that are of interest for general feedback for pages.&lt;br /&gt;
&lt;br /&gt;
Is my answer considered wrong though I feel it is right? It would be good to include a &amp;quot;certainty&amp;quot; rating. Certainty Based Marking, CBM, is a very valuable form of quiz feedback. It would be good to think about it at the same time as other quiz feedback. It is often a 3-step scale.: C1 C2 C3 where 1 is quite uncertain and 3 is very certain. Many teachers would appreciate the ability to connect the certainty to the grading of the question. But even while the grading implementation has not been successfully made yet, it would be valuable feedback for the teacher. &amp;quot;Hmm a lot of students have this right, but almost all of them are very uncertain about it.&amp;quot; or &amp;quot;Hmm, this student was very certain about this incorrect answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Is the feedback I get for my answer: unclear, incorrect, possible to improve?&lt;br /&gt;
&lt;br /&gt;
Does the user have other answers that (s)he was tempted to try? Usually people make similar mistakes and this could be a valuable resource for giving better feedback to common mistakes and for creating good &amp;quot;distractors&amp;quot; for multiple choice questions.&lt;br /&gt;
&lt;br /&gt;
When a quiz editor receives feedback on a question it should be easy to use it to develop the question. Prepared fields may depend on the question type. &amp;quot;the answer I would have used&amp;quot;, &amp;quot;an answer I might have used&amp;quot;, &amp;quot;my motivation&amp;quot;. The first 2 could be used to make new answer alternatives. The last as foundation for feedback for that answer. There should be a field for explaining how the learner got the answer. This could be the basis for the feedback field for that answer, if the teacher should chose to include that answer.There should be a field for explaining how the learner got the answer. This could be the basis for the feedback field for that answer, if the teacher should chose to include that answer.&lt;br /&gt;
&lt;br /&gt;
===Question feedback form fields===&lt;br /&gt;
&lt;br /&gt;
  There are prepared fields below to help you formulate your&lt;br /&gt;
  feedback, but in case you feel like&lt;br /&gt;
  &amp;quot;&#039;&#039;I would rather just explain in my own words&#039;&#039;&amp;quot;: ...............&lt;br /&gt;
  ............................................................&lt;br /&gt;
  ............................................................&lt;br /&gt;
&lt;br /&gt;
  [_]question/[X]word in this question unclear&lt;br /&gt;
     (check on word-&amp;gt; expand to: which word: ____________  ) &lt;br /&gt;
   a)possible interpretation 1 __________________________&lt;br /&gt;
   b)possible interpretation(s) 2, ... _____________________________&lt;br /&gt;
&lt;br /&gt;
  [_]grade questionable, motivation: ______________________________  &lt;br /&gt;
    (this perspective maybe the teacher should be able to choose not to ask about)&lt;br /&gt;
&lt;br /&gt;
  answer feedback [_]wrong/[_]unclear (this would be for the answer that was active&lt;br /&gt;
     when the feedback button was pushed, and automatically included)&lt;br /&gt;
     What was wrong/unclear: ________________________________&lt;br /&gt;
     Suggested improvement: _________________________________&lt;br /&gt;
&lt;br /&gt;
  Other possible answers:&lt;br /&gt;
  [_]Best possible, [_]acceptable, [_]should get partial credit, [_]Not right but probable&lt;br /&gt;
   (if last two are checked expand to: Suggested credit [____]% )&lt;br /&gt;
   answer: ________________________________________________&lt;br /&gt;
   motivation: ____________________________________________&lt;br /&gt;
   (how one would get this answer.) &lt;br /&gt;
&lt;br /&gt;
  [_]More possible answers? (gives more fields like above)&lt;br /&gt;
    &lt;br /&gt;
Social bookmarking is important since what&#039;s good for the goose isn&#039;t always good for the gander! The grade goal of students varies and this can mean that a highly rated resource for one person could be useless for another. Therefore a rating should be able to be connected to information about the user. Anonymous (though visible for admin if breaking netiquette) ratings are better than none, though the value would be increased if complemented by some info like grade goal, special branch, language proficiency, disabilities, etc.&lt;br /&gt;
&lt;br /&gt;
=Who would the feedback go to?=&lt;br /&gt;
&lt;br /&gt;
There could be some parts of a Moodle distribution that are default set to collect feedback. The pages that are for administrators, teacher editors should be of interest to Moodle developers. Help pages should collect to the documenters. It should be possible to turn off these default settings if a site doesn&#039;t want to participate.&lt;br /&gt;
&lt;br /&gt;
The other parts could choose at different levels, admin, course developer, teacher, to invite feedback for specific courses, pages, questions and which recipients would get it.&lt;br /&gt;
&lt;br /&gt;
Another consideration is making feedback easier/possible for people using Moodle off line. There are many situations, especially in many places in developing countries, where Internet access is poor, slow or nonexistent. Moodle is still usable on LAN or even a single computer or on a USB memory stick that can be used on different computers, some on line some off line. It would be good if there were preparations made for saving up feedback for when coming on line or for exporting to a file that could be sent on a floppy, through a mobile phone etc to someone on line.&lt;br /&gt;
&lt;br /&gt;
==Some Examples==&lt;br /&gt;
&lt;br /&gt;
Developers have made a new version of some component in Moodle and are  really not sure about if it will be easily understood and function well. They can than choose to set a VERY Inviting feedback link. &amp;quot;This page is new and we would really like suggestions about how to make it better&amp;quot;&lt;br /&gt;
The feedback choice will be default in Moodle packages and the developers will get the feedback from any site that doesn&#039;t turn it off (and has a user giving feedback). The form should contain all the fields, as many as possible automatically, that would be needed to interface with the Tracker: first for search, then for entering a new bug/feature. &lt;br /&gt;
&lt;br /&gt;
A school administrator would like to collect any views that anyone using the site has about pages and turns on a more general feedback invitation: &amp;quot;If this page doesn&#039;t meet your needs, please tell us!&amp;quot; (S)he choses to have the feedback go to (her)him and to the course teacher in charge of the course containing the page. Some administrators have wished for a channel for getting info, questions, suggestions even from non-registered visitors (usually on the front page but perhaps even in other guest open courses). Feedback from non-registered visitors should probably include a reCaptcha antispam protection. &lt;br /&gt;
&lt;br /&gt;
A teacher could want to have students rate pages to be able to give other students a Social bookmarking guide especially if there is a lot of varied material that everybody isn&#039;t expected to go through. Or compare the webpages with the textbook. [the book was better][Both were needed][the webpage better][Neither helped much]. This particular type of feedback would be good to be able to display for the students, perhaps tagged according to grade goals, previous experience, math love/hate, etc.&lt;br /&gt;
&lt;br /&gt;
=Links=&lt;br /&gt;
&lt;br /&gt;
[http://tracker.moodle.org/browse/MDL-18067 The Moodle tracker issue for this suggestion.]&lt;br /&gt;
&lt;br /&gt;
[http://blog.pbwiki.com/2008/03/28/the-foolproof-5-step-way-to-answer-tough-questions/ A blog post about answering tough questions] includes &amp;quot;Check afterwards to see if the questioner feels satisfied.&amp;quot;&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Editing_question_page&amp;diff=69857</id>
		<title>Editing question page</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Editing_question_page&amp;diff=69857"/>
		<updated>2010-03-18T09:23:34Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* See Also */ Link to forum thread about media in quiz answers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Lessons}} &lt;br /&gt;
Editing a question page in the Lesson Module is like editing other lesson pages.   There are several types of questions.  Almost mandatory reading should be the [http://moodle.org/help.php?module=lesson&amp;amp;file=questiontypes.html Question types help files] that can also be reached with the &amp;quot;?&amp;quot; next to Question Types (see Figure 1).   [[Lesson module| Lessons page in MoodleDocs]] has a great deal of information on types of questions and their uses, in addition to [[Lesson module#Answers|answers]] and [[Lesson module#Grading|grading]].  We will spend the most time on multiple choice because most of the general use of &#039;&#039;&#039;title&#039;&#039;&#039;, &#039;&#039;&#039;content&#039;&#039;&#039;,&#039;&#039;&#039; response&#039;&#039;&#039;, &#039;&#039;&#039;score&#039;&#039;&#039; and &#039;&#039;&#039;save&#039;&#039;&#039; are the same for all.&lt;br /&gt;
&lt;br /&gt;
You may use a variety of types of questions:&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
| [[Image:Question_type_tabs.GIF]]&lt;br /&gt;
|-&lt;br /&gt;
|  | &#039;&#039;&#039;Figure 1 - Version 1.6 tabs with question types&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Multiple choice==&lt;br /&gt;
Moodle provides you with a lot of flexibility when creating this common question type. Figure 3 shows an example question. You can create single answer and multiple answer questions, display pictures in the question or as an answer and weight individual answers. &lt;br /&gt;
 &lt;br /&gt;
There are two types of multiple choice questions - single or multi correct answer questions.  See figure 1 which shows the multi answer option.&lt;br /&gt;
&lt;br /&gt;
;Single-answer questions&lt;br /&gt;
:These questions allow one and only one answer to be chosen by providing radio  buttons next to the answers for students to select their answer. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;text-align: center;&amp;quot;&lt;br /&gt;
| [[Image:Question_multiplechoice_expanded_med.gif]]&lt;br /&gt;
|-&lt;br /&gt;
|  | &#039;&#039;&#039;Figure 3 - Edit mode, expanded view,  multiple choice question page&#039;&#039;&#039;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To set up a multiple choice question you proceed as follows:&lt;br /&gt;
&lt;br /&gt;
#Check the multianswer box if you want to allow students to select more than one answer.(see box in Figure 1)&lt;br /&gt;
#&#039;&#039;&#039;Question title&#039;&#039;&#039;. Start out by giving the question a title. Remember the student will see this and it will also be used as a page name.&lt;br /&gt;
#&#039;&#039;&#039;Question context.&#039;&#039;&#039; Generally, this is where your question will be placed. The HTML editor tool bar is useful. It has a few simple formating tools.&lt;br /&gt;
##If you want students to fill in a blank with an answer, indicate the place with an underscore.   &lt;br /&gt;
##It has the basic word processing icons, centering text, bold and others&lt;br /&gt;
##It has tools for linking,  images to the question (content area), you have two options&lt;br /&gt;
###If you’ve already uploaded an image to your Files area (see Chapter 4 for details), it will be available to add to the question stem in a dropdown menu under the Question text area&lt;br /&gt;
###You can use the image icon to add a picture. [[Insert image|Click here for more insert image help.]] &lt;br /&gt;
#There are several options to format the appearance of answers in multiple choice questions.&lt;br /&gt;
##The simpliest is to write your answer in text in Answer 1 field. Repeat this for Answer 2 and so on. &lt;br /&gt;
##Adding picture or using the HTML editor in an answer or response requires a few more steps.&lt;br /&gt;
### AFTER YOU HAVE SAVED AND REOPENED THE QUESTION,&lt;br /&gt;
### click on the use editor box on, then the redisplay button at the bottom of the question screen.  For example if a student has to choice one of two 2 pictures, then click on the box in Answer1 and Answer2 before clicking on the redisplay button.  Help explains this process.&lt;br /&gt;
#Select a grade percentage for the answer. This is the percentage of the total points for the question that selecting this response is worth. You can select negative percentages as well as positive percentages. So if a question is worth 10 points, selecting a correct response in a multiple answer question may give you 50% of the possible points. Selecting a wrong answer may take away 10%. &lt;br /&gt;
#&#039;&#039;&#039;Response.&#039;&#039;&#039; If you wish, you can add comments for each question. &lt;br /&gt;
#&#039;&#039;&#039;Score&#039;&#039;&#039;.  Review or enter in the [[Lesson module#Grading|score]] for each answer if you have turned on [https://docs.moodle.org/en/Adding/editing_a_lesson#Custom_Scoring custom_scoring] in lesson settings .&lt;br /&gt;
#&#039;&#039;&#039;Save.&#039;&#039;&#039; Select the “Insert Question” button at the bottom of the screen to save the question.&lt;br /&gt;
&lt;br /&gt;
You have now added a multiple choice question to the question category.  &lt;br /&gt;
*A true false question could be set up as a multiple choice question.&lt;br /&gt;
=== Multi-answer questions ===&lt;br /&gt;
A type of multiple choice question.  The student must select every correct answer or the question is scored wrong. In edit mode, all the correct answers are at the top and the wrong answer below them.  All correct answers must have the same score, response and jump.  The wrong answers should also have the same score, response and jump.&lt;br /&gt;
[[Image:Lesson Question multianswer student.png|thumb|center|Multianswer question, student view with both graphics and text]]&lt;br /&gt;
&lt;br /&gt;
==Short answer==&lt;br /&gt;
In this kind of question, the student answers by typing a word or phrase.    There may be several possible correct answers, similar to a multi-answer question.  By carefully constructing the answers, it is possible to give different grades for each correct answer.&lt;br /&gt;
&lt;br /&gt;
Special considerations:&lt;br /&gt;
In version 1.6 there are two types of answer evaluations. The question type help files give more information on Simple analysis also used in Version 1.5 and both types in 1.6. [http://moodle.org/help.php?module=lesson&amp;amp;file=questiontypes.html Question types help files] will lead you to more information about short answers.&lt;br /&gt;
&lt;br /&gt;
#Simple analysis. The answer does not depend upon the case of the text. You can use the asterisk character (*) as a wildcard to match any series of characters. For example, use ran*ing to match any word or phrase starting with &amp;quot;ran&amp;quot; and ending with &amp;quot;ing&amp;quot;. If you really do want to match an asterisk then use a backslash like this: \*&lt;br /&gt;
&lt;br /&gt;
The matching process goes through the answers in the order they appear on the screen. Once a match is found the process stops and the corresponding result (and response, if present) is returned. &lt;br /&gt;
&lt;br /&gt;
#Regular expressions analysis. This uses a more complex notation method. For example, in Answer 1 the teacher types in the expression: &amp;quot;it’s blue, white(,| and) red/i&amp;quot;. This will match any of those four student answers:&lt;br /&gt;
&lt;br /&gt;
    * it’s blue, white, red&lt;br /&gt;
    * it’s blue, white and red&lt;br /&gt;
    * It’s blue, white, red&lt;br /&gt;
    * It’s blue, white and red&lt;br /&gt;
Please see the question type link above for more information.&lt;br /&gt;
&lt;br /&gt;
You may like to prototype your short answer questions to catch common acceptable answers you hadn’t thought of. Start out by creating a few acceptable answers, then include the question in a quiz for no points. Be sure to tell students you are testing a new question. Once the quiz is over, review students’ answers and add their acceptable answers to the list.&lt;br /&gt;
&lt;br /&gt;
==Numerical==&lt;br /&gt;
&lt;br /&gt;
From the student perspective, a numerical question looks just like a short-answer question. The difference is that numerical answers are allowed to have an accepted error. This allows a continuous range of answers to be set. &lt;br /&gt;
&lt;br /&gt;
==True/false==&lt;br /&gt;
&lt;br /&gt;
In response to a question, the respondent selects from two options: True or False. &lt;br /&gt;
&lt;br /&gt;
==Matching==&lt;br /&gt;
&lt;br /&gt;
After an optional introduction or instruction, the student is presented with a list of sub-questions that have the same pull down list of answers. There is one correct match for each sub-part. &lt;br /&gt;
&lt;br /&gt;
The student must select an answer to match each sub-question.&lt;br /&gt;
&lt;br /&gt;
==Essay==&lt;br /&gt;
&lt;br /&gt;
In response to a question (that may include an image) the respondent writes an answer in essay format. Three fields may be edited when creating the essay question: the question title, the body of the question, and feedback that can be displayed at a time chosen by the facilitator.&lt;br /&gt;
&lt;br /&gt;
The essay question will not be assigned a grade until it has been reviewed by a teacher or facilitator by using the Manual Grading feature. When manually grading an essay question, the grader will be able to enter a custom comment in response to the respondent&#039;s essay and be able to assign a score for the essay.&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
*Please see the [[Drag and Drop question tutorial]] for more information.&lt;br /&gt;
*Quiz Questions in the [[Question bank]]&lt;br /&gt;
*[http://moodle.org/help.php?module=lesson&amp;amp;file=questiontypes.html Question types help files] &lt;br /&gt;
*[[Multiple choice question (Lesson)]]: more about multianswer scoring&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=87073 including graphics and sound in question answers (forum thread)]&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Lesson]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=68230</id>
		<title>GIFT format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=68230"/>
		<updated>2010-02-05T14:28:35Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Format symbols */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GIFT format allows someone to use a text editor to write multiple-choice, true-false, short answer, matching  missing word and numerical questions in a simple format than can be imported. The GIFT format is also an export file format available in Question bank.&lt;br /&gt;
&lt;br /&gt;
*When creating a large numbers of questions, GIFT can provide a quick way of bulk loading questions either into a [[Question bank|question category]], or into a [[Adding_a_question_page#Importing_questions|Lesson]]. &lt;br /&gt;
*Sometimes it is easier proofing questions in a question category by viewing them in a GIFT file.&lt;br /&gt;
&lt;br /&gt;
==General instructions==&lt;br /&gt;
At least one blank line must be left between each question. &lt;br /&gt;
&lt;br /&gt;
In the simple form, the question comes first, then the answers are set in between brackets, with an equal sign indicating the correct answer(s) and tilde the wrong answers.  A Number sign will insert a response.  Questions can be weighted by placing percentage signs around the weight.  Comments are preceded by double slashes and are not imported.  &lt;br /&gt;
&lt;br /&gt;
Here are some useful [http://moodle.org/file.php/5/moddata/forum/121/236161/GIFT-examples.zip GIFT examples] than can be imported or used as rough template.  Many of the examples below used the questions in the file as a starting point.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; Any GIFT file &#039;&#039;&#039;must&#039;&#039;&#039; be correctly encoded in [[UTF8]]. Beware of some of Microsoft&#039;s &amp;quot;fake&amp;quot; Unicode implementation which is not compatible and may result in strange characters appearing in your quizzes.  When in doubt, save as a simple MS-DOS text file.&lt;br /&gt;
&lt;br /&gt;
===Format symbols===&lt;br /&gt;
&lt;br /&gt;
Here are some common GIFT symbols and their use.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Symbol !! Use&lt;br /&gt;
|-&lt;br /&gt;
| // text || Comment until the end of the line (optional)&lt;br /&gt;
|-&lt;br /&gt;
| ::title:: || Question title (optional)&lt;br /&gt;
|-&lt;br /&gt;
| text || Question text (becomes title if no title specified)&lt;br /&gt;
|-&lt;br /&gt;
| { || Start answer(s)&lt;br /&gt;
|-&lt;br /&gt;
| {T} or {F} || True or False answer&lt;br /&gt;
|-&lt;br /&gt;
| { ... =right ... } || Correct answer for multiple choice, multiple answer, or fill-in-the-blank&lt;br /&gt;
|-&lt;br /&gt;
| { ... ~wrong ... } || Incorrect answer for multiple choice or multiple answer&lt;br /&gt;
|-&lt;br /&gt;
| #answer feedback || Answer feedback which should be given to the answer just preceding (can be right, partially right, wrong and of different types: mc, short answer, numerical ...)&lt;br /&gt;
|-&lt;br /&gt;
| { ... =item -&amp;gt; match ... } || Answer for matching questions&lt;br /&gt;
|-&lt;br /&gt;
| {# || Start numeric answer(s)&lt;br /&gt;
|-&lt;br /&gt;
| answer:tolerance || Answer ± tolerance for numeric question&lt;br /&gt;
|-&lt;br /&gt;
| low..high || Lower and upper range end points of accepted numerical answer &lt;br /&gt;
|-&lt;br /&gt;
| =%n%answer:tolerance || n percent credit for numeric range within tolerance from answer&lt;br /&gt;
|-&lt;br /&gt;
| } || End answer(s)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here are some quick examples:&lt;br /&gt;
&lt;br /&gt;
 // true/false&lt;br /&gt;
 ::Q1:: 1+1=2 {T}&lt;br /&gt;
 &lt;br /&gt;
 // multiple choice&lt;br /&gt;
 ::Q2:: What&#039;s between orange and green in the spectrum? {=yellow ~red ~blue}&lt;br /&gt;
 &lt;br /&gt;
 // fill-in-the-blank&lt;br /&gt;
 ::Q3:: Two plus {=two =2} equals four.&lt;br /&gt;
 &lt;br /&gt;
 // matching&lt;br /&gt;
 ::Q4:: Which animal eats which food? { =cat -&amp;gt; cat food =dog -&amp;gt; dog food }&lt;br /&gt;
 &lt;br /&gt;
 // math range question&lt;br /&gt;
 ::Q5:: What is a number from 1 to 5? {#3:2}&lt;br /&gt;
 &lt;br /&gt;
 // math range specified with interval end points&lt;br /&gt;
 ::Q6:: What is a number from 1 to 5? {#1..5}&lt;br /&gt;
 // translated on import to the same as Q5, but unavailable from Moodle question interface&lt;br /&gt;
&lt;br /&gt;
===Format symbols explained===&lt;br /&gt;
The multiple choice format below as a comment line // for the question, when Moodle exports it the question unique id number will appear here.  The first set of  :: precedes the question title. The second :: precedes the actual question. The first { indicates the start of the answers.  The correct answer is preceded by an = sign and wrong answers by a ~.  Teacher responses have a # in front of them.  The question ends with a } and then a blank line. NOTE it is { } not ( ) parenthesis! Usually these are gotten with help of the [AltGr] key.&lt;br /&gt;
&lt;br /&gt;
 //Comment line &lt;br /&gt;
 ::Question title &lt;br /&gt;
 :: Question {&lt;br /&gt;
 =A correct answer&lt;br /&gt;
 ~Wrong answer1&lt;br /&gt;
 #A response to wrong answer1&lt;br /&gt;
 ~Wrong answer2&lt;br /&gt;
 #A response to wrong answer2&lt;br /&gt;
 ~Wrong answer3&lt;br /&gt;
 #A response to wrong answer3&lt;br /&gt;
 ~Wrong answer4&lt;br /&gt;
 #A response to wrong answer4&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The shortest format for a multiple choice question is:&lt;br /&gt;
 Question{= A Correct Answer ~Wrong answer1 ~Wrong answer2 ~Wrong answer3 ~Wrong answer4 }&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you don&#039;t specify a question title the WHOLE question will be used as the title at the time of import into Moodle. There are pros and cons to allowing this to happen. Cons: This can add a lot of unnecessary words. This can include characters which might confuse the export GIFT process.  Pros: On the other hand. if the start of each question is different, it can make finding a single question easier in a category list of questions. It will save you typing.  Having the same title for every question is a very bad idea.&lt;br /&gt;
&lt;br /&gt;
==Question format examples==&lt;br /&gt;
There are several ways to use a text editor to write a GIFT format.  We will try to show the simple version for example and in some formats we will introduce some more complex features that can be imported into many Moodle Question formats.  &lt;br /&gt;
&lt;br /&gt;
===Multiple choice===&lt;br /&gt;
Here is a simple acceptable GIFT multiple choice format:&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }&lt;br /&gt;
&lt;br /&gt;
Here is a longer format that uses most of the GIFT elements:&lt;br /&gt;
&lt;br /&gt;
  // question: 1 name: Grants tomb&lt;br /&gt;
 ::Grants tomb::Who is buried in Grant&#039;s tomb in New York City? {&lt;br /&gt;
 =Grant&lt;br /&gt;
 ~No one&lt;br /&gt;
 #Was true for 12 years, but Grant&#039;s remains were buried in the tomb in 1897&lt;br /&gt;
 ~Napoleon&lt;br /&gt;
 #He was buried in France&lt;br /&gt;
 ~Churchill&lt;br /&gt;
 #He was buried in England&lt;br /&gt;
 ~Mother Teresa&lt;br /&gt;
 #She was buried in India&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===True-false===&lt;br /&gt;
&lt;br /&gt;
 // question: 0 name: TrueStatement&lt;br /&gt;
 ::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}&lt;br /&gt;
&lt;br /&gt;
===Short answer===&lt;br /&gt;
Here are two examples using the simple method showing possible right answers for credit.&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}&lt;br /&gt;
&lt;br /&gt;
 Two plus two equals {=four =4}&lt;br /&gt;
&lt;br /&gt;
===Matching===&lt;br /&gt;
The matching uses the equal sign before the list item with a -&amp;gt; (dash and greater than) before the correct match.&lt;br /&gt;
 &lt;br /&gt;
 Match the following countries with their corresponding capitals. {&lt;br /&gt;
    =Canada -&amp;gt; Ottawa&lt;br /&gt;
    =Italy  -&amp;gt; Rome&lt;br /&gt;
    =Japan  -&amp;gt; Tokyo&lt;br /&gt;
    =India  -&amp;gt; New Delhi&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
===Missing word===&lt;br /&gt;
This is a simple missing word format&lt;br /&gt;
 Grant {~is not buried =is buried ~might be buried} in Grant&#039;s tomb.&lt;br /&gt;
&lt;br /&gt;
===Numerical questions===&lt;br /&gt;
Here is a simple numerical format question. It will accept a range of 5 years.&lt;br /&gt;
 When was Ulysses S. Grant born?{#1822:5}&lt;br /&gt;
&lt;br /&gt;
Here is a more complex numerical format with a ranged and partial credit given for 1 answer.&lt;br /&gt;
 //this comment will be ignored in the import process &lt;br /&gt;
 ::Numerical example::&lt;br /&gt;
 When was Ulysses S. Grant born? {#&lt;br /&gt;
     =1822:0      #Correct!  you will get full credit for this answer&lt;br /&gt;
     =%50%1822:2  #He was born in 1822.&lt;br /&gt;
                  You get 50% credit for being close.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
* Use the ::title:: at the beginning of every question to organize your questions when Moodle presents a list or exports them as another GIFT file.  When the title is left blank, Moodle will put the beginning of the question as the title. Some teachers want to see something like &amp;quot;001 LIT101 Poe ref Purloin Letter&amp;quot; or &amp;quot;The Purloin Letter was written by (AmLit pg 254)&amp;quot; in the title.  &lt;br /&gt;
* You can specify which question category the following questions will be in with&lt;br /&gt;
   $CATEGORY: myParentCat/myCategory &lt;br /&gt;
(that line must be preceded and followed by an empty line. See more about this in the reference pdf below.&lt;br /&gt;
* You can specify markup if you need to format the question by setting [html], [moodle], [plain] or [markdown] just before the question text. See more about this in the reference pdf below.&lt;br /&gt;
* In the Lesson module, in a question page, correct answers jump by default to Next page and incorrect answers jump to This page (i.e. student has to &amp;quot;try again&amp;quot;). When importing from a GIFT format file, this is exactly the mechanism which is used.&lt;br /&gt;
* If you want a student to be taken directly from one question to the next irrespective of their answer being correct or incorrect: in the Lesson Settings, set Maximum number of attempts: to 1. &lt;br /&gt;
**Please note, however, that a message &amp;quot;correct / incorrect&amp;quot; will still be displayed to the student upon answering each question. If you do not want this (default) feedback message to be displayed then enter your own feedback message (i.e. &amp;quot;continue&amp;quot;, &amp;quot;---&amp;quot;, etc.) &lt;br /&gt;
**In case you want no visible message displayed then enter a non-breaking space as feedback. Moodle will not put it&#039;s automatic response because it sees the blank space. To do this, put a # after the answer and write [[Image:Nbsp.png]] (without spaces between these characters). &lt;br /&gt;
* Need to use a special GIFT character in your question or answer?  Put a \ in front of the GIFT character.  &lt;br /&gt;
**For example if you want to use curly braces, { or }, or equal sign, =, or # or ~ in a GIFT file (in a math question including TeX expressions) you must &amp;quot;escape&amp;quot; them by preceding them with a \ directly in front of each { or } or =. It is possible to use a replace program/macro/editor filter to do this conversion before importing to Moodle.&lt;br /&gt;
* Want to change T/F type questions to multiple choice? Consider exporting the T/F questions as a GIFT file, then using a text editor to replace the (T) with (=True ~False). Perhaps change the title slightly so you will recognize the new questions.&lt;br /&gt;
&lt;br /&gt;
==Word processors and Spreadsheets tools that create GIFTs==&lt;br /&gt;
Several contributors have used macros to generate GIFT files from a more familiar popular programs.   &lt;br /&gt;
* There are Word macros available for easily creating GIFT files. See [http://www.soberit.hut.fi/sprg/resources/moodle/GiftConverter.html this non-Moodle site] for downloads and instructions for use.&lt;br /&gt;
* There are several Excel spreadsheets for generating GIFT files. Several people have built upon other contributors work.  &lt;br /&gt;
**The latest version was posted on 10 April 2007 and can be found in this thread with this file name: [http://moodle.org/mod/forum/discuss.php?d=66660 Excel2GIFTv1.1.zip by Timothy Takemoto].  There is also a set of instructions Excel2GIFTv1.1_Instructions.rtf by Jeff Shek on the same day in that thread.&lt;br /&gt;
**An earlier version of this Excel spreadsheet for generating multiple choice GIFT files [http://moodle.org/mod/forum/discuss.php?d=45245 initially created by Olga Forlani and improved by A. T. Wyatt].&lt;br /&gt;
*There are Open Office templates for generating GIFT files in Writer.  These are located in the Quiz forum in the[http://moodle.org/mod/forum/discuss.php?d=20705&amp;amp;parent=168385 OOo template to write exams and convert to GIFT format thread].&lt;br /&gt;
**The most recent for OO 2.x is &amp;quot;OOo2GIFT_Template_05.zip&amp;quot; postes 17 December 2005 by Enrique Castro.&lt;br /&gt;
**An earlier version is &amp;quot;GIFT_template_OOo.zip&amp;quot; posted 22 March 2005 by Enrique Castro.&lt;br /&gt;
*There is an easy to use on line multiple question generator at [http://a4esl.org/c/qw.html  a4esl.org]. Here you write your question(s) without formating marks, select Moodle and press the generate quiz button.  This creates GIFT formatted text that can be pasted into a file for importing into Moodle.&lt;br /&gt;
**The initial format requires fewer keystrokes (it uses line position and returns) than the GIFT format, so you should save time and be less likely to create invalid data.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Here is a 2-column PDF [http://buypct.com/gift_reference.pdf GIFT Reference Sheet]&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[Import and export FAQ]]&lt;br /&gt;
*[[Aiken Format]]&lt;br /&gt;
*[[Moodle XML format]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[de:GIFT]]&lt;br /&gt;
[[fr:Format GIFT]]&lt;br /&gt;
[[ja:GIFTフォーマット]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=68215</id>
		<title>GIFT format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=68215"/>
		<updated>2010-02-05T12:42:28Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Format symbols */  added numerical interval and corrected error in tolerance interpretation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GIFT format allows someone to use a text editor to write multiple-choice, true-false, short answer, matching  missing word and numerical questions in a simple format than can be imported. The GIFT format is also an export file format available in Question bank.&lt;br /&gt;
&lt;br /&gt;
*When creating a large numbers of questions, GIFT can provide a quick way of bulk loading questions either into a [[Question bank|question category]], or into a [[Adding_a_question_page#Importing_questions|Lesson]]. &lt;br /&gt;
*Sometimes it is easier proofing questions in a question category by viewing them in a GIFT file.&lt;br /&gt;
&lt;br /&gt;
==General instructions==&lt;br /&gt;
At least one blank line must be left between each question. &lt;br /&gt;
&lt;br /&gt;
In the simple form, the question comes first, then the answers are set in between brackets, with an equal sign indicating the correct answer(s) and tilde the wrong answers.  A Number sign will insert a response.  Questions can be weighted by placing percentage signs around the weight.  Comments are preceded by double slashes and are not imported.  &lt;br /&gt;
&lt;br /&gt;
Here are some useful [http://moodle.org/file.php/5/moddata/forum/121/236161/GIFT-examples.zip GIFT examples] than can be imported or used as rough template.  Many of the examples below used the questions in the file as a starting point.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; Any GIFT file &#039;&#039;&#039;must&#039;&#039;&#039; be correctly encoded in [[UTF8]]. Beware of some of Microsoft&#039;s &amp;quot;fake&amp;quot; Unicode implementation which is not compatible and may result in strange characters appearing in your quizzes.  When in doubt, save as a simple MS-DOS text file.&lt;br /&gt;
&lt;br /&gt;
===Format symbols===&lt;br /&gt;
&lt;br /&gt;
Here are some common GIFT symbols and their use.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
! Symbol !! Use&lt;br /&gt;
|-&lt;br /&gt;
| // text || Comment until the end of the line (optional)&lt;br /&gt;
|-&lt;br /&gt;
| ::title:: || Question title (optional)&lt;br /&gt;
|-&lt;br /&gt;
| text || Question text (becomes title if no title specified)&lt;br /&gt;
|-&lt;br /&gt;
| { || Start answer(s)&lt;br /&gt;
|-&lt;br /&gt;
| {T} or {F} || True or False answer&lt;br /&gt;
|-&lt;br /&gt;
| { ... =right ... } || Correct answer for multiple choice, multiple answer, or fill-in-the-blank&lt;br /&gt;
|-&lt;br /&gt;
| { ... ~wrong ... } || Incorrect answer for multiple choice or multiple answer&lt;br /&gt;
|-&lt;br /&gt;
| { ... =item -&amp;gt; match ... } || Answer for matching questions&lt;br /&gt;
|-&lt;br /&gt;
| #answer feedback || Answer feedback or comment following an incorrect answer&lt;br /&gt;
|-&lt;br /&gt;
| {# || Numeric answer start&lt;br /&gt;
|-&lt;br /&gt;
| answer:tolerance || Answer and tolerance answering numeric question&lt;br /&gt;
|-&lt;br /&gt;
| low..high || Specifies lower and higher boundary of accepted numerical answer &lt;br /&gt;
|-&lt;br /&gt;
| =%n%answer:range || n percent credit for a numeric answer in range specified around answer by tolerance	&lt;br /&gt;
|-&lt;br /&gt;
| } || End answers&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here are some quick examples:&lt;br /&gt;
&lt;br /&gt;
 // true/false&lt;br /&gt;
 ::Q1:: 1+1=2 {T}&lt;br /&gt;
 &lt;br /&gt;
 // multiple choice&lt;br /&gt;
 ::Q2:: What&#039;s between orange and green in the spectrum? {=yellow ~red ~blue}&lt;br /&gt;
 &lt;br /&gt;
 // fill-in-the-blank&lt;br /&gt;
 ::Q3:: Two plus {=two =2} equals four.&lt;br /&gt;
 &lt;br /&gt;
 // matching&lt;br /&gt;
 ::Q4:: Which animal eats which food? { =cat -&amp;gt; cat food =dog -&amp;gt; dog food }&lt;br /&gt;
 &lt;br /&gt;
 // math range question&lt;br /&gt;
 ::Q5:: What is a number from 1 to 5? {#3:2}&lt;br /&gt;
&lt;br /&gt;
 // math range specified with interval end points (which unfortunately is not offered in the internal Moodle interface!) &lt;br /&gt;
 ::Q6:: What is a number from 1 to 5? {#1..5}&lt;br /&gt;
 (This get translated on import to the same as Q5&lt;br /&gt;
&lt;br /&gt;
===Format symbols explained===&lt;br /&gt;
The multiple choice format below as a comment line // for the question, when Moodle exports it the question unique id number will appear here.  The first set of  :: precedes the question title. The second :: precedes the actual question. The first { indicates the start of the answers.  The correct answer is preceded by an = sign and wrong answers by a ~.  Teacher responses have a # in front of them.  The question ends with a } and then a blank line. NOTE it is { } not ( ) parenthesis! Usually these are gotten with help of the [AltGr] key.&lt;br /&gt;
&lt;br /&gt;
 //Comment line &lt;br /&gt;
 ::Question title &lt;br /&gt;
 :: Question {&lt;br /&gt;
 =A correct answer&lt;br /&gt;
 ~Wrong answer1&lt;br /&gt;
 #A response to wrong answer1&lt;br /&gt;
 ~Wrong answer2&lt;br /&gt;
 #A response to wrong answer2&lt;br /&gt;
 ~Wrong answer3&lt;br /&gt;
 #A response to wrong answer3&lt;br /&gt;
 ~Wrong answer4&lt;br /&gt;
 #A response to wrong answer4&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The shortest format for a multiple choice question is:&lt;br /&gt;
 Question{= A Correct Answer ~Wrong answer1 ~Wrong answer2 ~Wrong answer3 ~Wrong answer4 }&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you don&#039;t specify a question title the WHOLE question will be used as the title at the time of import into Moodle. There are pros and cons to allowing this to happen. Cons: This can add a lot of unnecessary words. This can include characters which might confuse the export GIFT process.  Pros: On the other hand. if the start of each question is different, it can make finding a single question easier in a category list of questions. It will save you typing.  Having the same title for every question is a very bad idea.&lt;br /&gt;
&lt;br /&gt;
==Question format examples==&lt;br /&gt;
There are several ways to use a text editor to write a GIFT format.  We will try to show the simple version for example and in some formats we will introduce some more complex features that can be imported into many Moodle Question formats.  &lt;br /&gt;
&lt;br /&gt;
===Multiple choice===&lt;br /&gt;
Here is a simple acceptable GIFT multiple choice format:&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }&lt;br /&gt;
&lt;br /&gt;
Here is a longer format that uses most of the GIFT elements:&lt;br /&gt;
&lt;br /&gt;
  // question: 1 name: Grants tomb&lt;br /&gt;
 ::Grants tomb::Who is buried in Grant&#039;s tomb in New York City? {&lt;br /&gt;
 =Grant&lt;br /&gt;
 ~No one&lt;br /&gt;
 #Was true for 12 years, but Grant&#039;s remains were buried in the tomb in 1897&lt;br /&gt;
 ~Napoleon&lt;br /&gt;
 #He was buried in France&lt;br /&gt;
 ~Churchill&lt;br /&gt;
 #He was buried in England&lt;br /&gt;
 ~Mother Teresa&lt;br /&gt;
 #She was buried in India&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===True-false===&lt;br /&gt;
&lt;br /&gt;
 // question: 0 name: TrueStatement&lt;br /&gt;
 ::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}&lt;br /&gt;
&lt;br /&gt;
===Short answer===&lt;br /&gt;
Here are two examples using the simple method showing possible right answers for credit.&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}&lt;br /&gt;
&lt;br /&gt;
 Two plus two equals {=four =4}&lt;br /&gt;
&lt;br /&gt;
===Matching===&lt;br /&gt;
The matching uses the equal sign before the list item with a -&amp;gt; (dash and greater than) before the correct match.&lt;br /&gt;
 &lt;br /&gt;
 Match the following countries with their corresponding capitals. {&lt;br /&gt;
    =Canada -&amp;gt; Ottawa&lt;br /&gt;
    =Italy  -&amp;gt; Rome&lt;br /&gt;
    =Japan  -&amp;gt; Tokyo&lt;br /&gt;
    =India  -&amp;gt; New Delhi&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
===Missing word===&lt;br /&gt;
This is a simple missing word format&lt;br /&gt;
 Grant {~is not buried =is buried ~might be buried} in Grant&#039;s tomb.&lt;br /&gt;
&lt;br /&gt;
===Numerical questions===&lt;br /&gt;
Here is a simple numerical format question. It will accept a range of 5 years.&lt;br /&gt;
 When was Ulysses S. Grant born?{#1822:5}&lt;br /&gt;
&lt;br /&gt;
Here is a more complex numerical format with a ranged and partial credit given for 1 answer.&lt;br /&gt;
 //this comment will be ignored in the import process &lt;br /&gt;
 ::Numerical example::&lt;br /&gt;
 When was Ulysses S. Grant born? {#&lt;br /&gt;
     =1822:0      #Correct!  you will get full credit for this answer&lt;br /&gt;
     =%50%1822:2  #He was born in 1822.&lt;br /&gt;
                  You get 50% credit for being close.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
* Use the ::title:: at the beginning of every question to organize your questions when Moodle presents a list or exports them as another GIFT file.  When the title is left blank, Moodle will put the beginning of the question as the title. Some teachers want to see something like &amp;quot;001 LIT101 Poe ref Purloin Letter&amp;quot; or &amp;quot;The Purloin Letter was written by (AmLit pg 254)&amp;quot; in the title.  &lt;br /&gt;
* You can specify which question category the following questions will be in with&lt;br /&gt;
   $CATEGORY: myParentCat/myCategory &lt;br /&gt;
(that line must be preceded and followed by an empty line. See more about this in the reference pdf below.&lt;br /&gt;
* You can specify markup if you need to format the question by setting [html], [moodle], [plain] or [markdown] just before the question text. See more about this in the reference pdf below.&lt;br /&gt;
* In the Lesson module, in a question page, correct answers jump by default to Next page and incorrect answers jump to This page (i.e. student has to &amp;quot;try again&amp;quot;). When importing from a GIFT format file, this is exactly the mechanism which is used.&lt;br /&gt;
* If you want a student to be taken directly from one question to the next irrespective of their answer being correct or incorrect: in the Lesson Settings, set Maximum number of attempts: to 1. &lt;br /&gt;
**Please note, however, that a message &amp;quot;correct / incorrect&amp;quot; will still be displayed to the student upon answering each question. If you do not want this (default) feedback message to be displayed then enter your own feedback message (i.e. &amp;quot;continue&amp;quot;, &amp;quot;---&amp;quot;, etc.) &lt;br /&gt;
**In case you want no visible message displayed then enter a non-breaking space as feedback. Moodle will not put it&#039;s automatic response because it sees the blank space. To do this, put a # after the answer and write [[Image:Nbsp.png]] (without spaces between these characters). &lt;br /&gt;
* Need to use a special GIFT character in your question or answer?  Put a \ in front of the GIFT character.  &lt;br /&gt;
**For example if you want to use curly braces, { or }, or equal sign, =, or # or ~ in a GIFT file (in a math question including TeX expressions) you must &amp;quot;escape&amp;quot; them by preceding them with a \ directly in front of each { or } or =. It is possible to use a replace program/macro/editor filter to do this conversion before importing to Moodle.&lt;br /&gt;
* Want to change T/F type questions to multiple choice? Consider exporting the T/F questions as a GIFT file, then using a text editor to replace the (T) with (=True ~False). Perhaps change the title slightly so you will recognize the new questions.&lt;br /&gt;
&lt;br /&gt;
==Word processors and Spreadsheets tools that create GIFTs==&lt;br /&gt;
Several contributors have used macros to generate GIFT files from a more familiar popular programs.   &lt;br /&gt;
* There are Word macros available for easily creating GIFT files. See [http://www.soberit.hut.fi/sprg/resources/moodle/GiftConverter.html this non-Moodle site] for downloads and instructions for use.&lt;br /&gt;
* There are several Excel spreadsheets for generating GIFT files. Several people have built upon other contributors work.  &lt;br /&gt;
**The latest version was posted on 10 April 2007 and can be found in this thread with this file name: [http://moodle.org/mod/forum/discuss.php?d=66660 Excel2GIFTv1.1.zip by Timothy Takemoto].  There is also a set of instructions Excel2GIFTv1.1_Instructions.rtf by Jeff Shek on the same day in that thread.&lt;br /&gt;
**An earlier version of this Excel spreadsheet for generating multiple choice GIFT files [http://moodle.org/mod/forum/discuss.php?d=45245 initially created by Olga Forlani and improved by A. T. Wyatt].&lt;br /&gt;
*There are Open Office templates for generating GIFT files in Writer.  These are located in the Quiz forum in the[http://moodle.org/mod/forum/discuss.php?d=20705&amp;amp;parent=168385 OOo template to write exams and convert to GIFT format thread].&lt;br /&gt;
**The most recent for OO 2.x is &amp;quot;OOo2GIFT_Template_05.zip&amp;quot; postes 17 December 2005 by Enrique Castro.&lt;br /&gt;
**An earlier version is &amp;quot;GIFT_template_OOo.zip&amp;quot; posted 22 March 2005 by Enrique Castro.&lt;br /&gt;
*There is an easy to use on line multiple question generator at [http://a4esl.org/c/qw.html  a4esl.org]. Here you write your question(s) without formating marks, select Moodle and press the generate quiz button.  This creates GIFT formatted text that can be pasted into a file for importing into Moodle.&lt;br /&gt;
**The initial format requires fewer keystrokes (it uses line position and returns) than the GIFT format, so you should save time and be less likely to create invalid data.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Here is a 2-column PDF [http://buypct.com/gift_reference.pdf GIFT Reference Sheet]&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[Import and export FAQ]]&lt;br /&gt;
*[[Aiken Format]]&lt;br /&gt;
*[[Moodle XML format]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[de:GIFT]]&lt;br /&gt;
[[fr:Format GIFT]]&lt;br /&gt;
[[ja:GIFTフォーマット]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Converting_files_to_UTF-8&amp;diff=64999</id>
		<title>Converting files to UTF-8</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Converting_files_to_UTF-8&amp;diff=64999"/>
		<updated>2009-11-07T11:20:51Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: added some utf-8 compatible editors&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 1.6}}&lt;br /&gt;
Some files, like Moodle import and export files and custom language packs or language files from third party modules need to be converted or treated as UTF-8 before they may be used with Moodle 1.6 and later.&lt;br /&gt;
&lt;br /&gt;
==*nix like computers (including Mac OS X)==&lt;br /&gt;
Generally, this may be done with the &#039;&#039;iconv&#039;&#039; command on Unix, Linux or a Mac. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;iconv -f original_charset -t utf-8 originalfile &amp;gt; newfile&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;see also the windows explanation - the script there is one for *nix computers, but used in a cygwin environment&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
==Windows computers==&lt;br /&gt;
For Windows, there are four methods of performing the conversion. &lt;br /&gt;
&lt;br /&gt;
=== Method 1 ===&lt;br /&gt;
* Open the flat file in PSPad (a freeware editor) : http://www.pspad.com  (some other editors people use: TextPad or NotePad++ or Crimson Editor, but there are many others. Windows built-in editors Notepad and Wordpad are often giving problems)&lt;br /&gt;
* Click on Format, UTF-8&lt;br /&gt;
* Save the file&lt;br /&gt;
&lt;br /&gt;
=== Method 2 ===&lt;br /&gt;
Download the [http://gnuwin32.sourceforge.net/packages/libiconv.htm Windows version] of the iconv program. Download the &amp;quot;Complete package, except source&amp;quot; and run the setup program. The executable is located in the bin folder. Run from the command prompt (Start -&amp;gt; Run -&amp;gt; cmd) and follow the instructions as above.&lt;br /&gt;
&lt;br /&gt;
=== Method 3 ===&lt;br /&gt;
The conversion may also be done by using [http://www.cygwin.com Cygwin], a Linux-like environment for Windows, and excecuting the iconv command in that environment. Here is an example of a working solution on Windows with [http://www.cygwin.com Cygwin]:&lt;br /&gt;
&lt;br /&gt;
* Create a text file, named ToUtf8.txt&lt;br /&gt;
* Fill it with the following code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#!/bin/bash&lt;br /&gt;
FROM=iso-8859-1&lt;br /&gt;
TO=UTF-8&lt;br /&gt;
ICONV=&amp;quot;iconv -f $FROM -t $TO&amp;quot;&lt;br /&gt;
# Convert&lt;br /&gt;
find ToUTF/ -type f -name &amp;quot;*&amp;quot; | while read fn; do&lt;br /&gt;
cp ${fn} ${fn}.bak&lt;br /&gt;
$ICONV &amp;lt; ${fn}.bak &amp;gt; ${fn}&lt;br /&gt;
rm ${fn}.bak&lt;br /&gt;
done&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two things should be changed for your local situation:&lt;br /&gt;
&lt;br /&gt;
# FROM is the originating encoding (the one your original files are in)&lt;br /&gt;
# ToUTF is the foldername where the files that need to be converted are in. This folder may contain subfolders. Make sure you have a backup!&lt;br /&gt;
&lt;br /&gt;
* Start Cygwin.&lt;br /&gt;
* With the &#039;&#039;cd foldername, cd.., ls&#039;&#039; commands, go to the folder on your windows machine where the ToUtf8.txt script and the ToUTF8 folder are in.&lt;br /&gt;
* Execute the script by typing &#039;&#039;sh ToUtf8.txt&#039;&#039; and your files will be converted.&lt;br /&gt;
&lt;br /&gt;
=== Method 4 === &lt;br /&gt;
The default Unicode format for Microsoft Excel and Wordpad is UTF-16.&lt;br /&gt;
These files can be converted to UTF-8 using GNU Emacs 22.1&lt;br /&gt;
&lt;br /&gt;
* Open the file with Emacs&lt;br /&gt;
* Enter the command &amp;lt;code&amp;gt;C-x RET c utf-8 RET&amp;lt;/code&amp;gt;&lt;br /&gt;
* You will then be asked what command you want this encoding to apply to&lt;br /&gt;
* Enter the command &amp;lt;code&amp;gt;C-x C-w&amp;lt;/code&amp;gt;  then enter a new file name&lt;br /&gt;
* The file you have saved will be UTF-8&lt;br /&gt;
&lt;br /&gt;
==Saving files directly as UTF-8==&lt;br /&gt;
&lt;br /&gt;
Most text editors these days can handle UTF-8, although you might have to tell them explicitly to do this when loading and saving files. (The notable exception to this is probably Notepad on Windows.)&lt;br /&gt;
&lt;br /&gt;
===Windows===&lt;br /&gt;
&lt;br /&gt;
You may save a file using Notepad (sometimes called &amp;quot;Editor&amp;quot;) as UTF-8 but not with Wordpad.&lt;br /&gt;
&lt;br /&gt;
# Open Notepad&lt;br /&gt;
# File - Save as -&amp;gt; there you see 3 fields set the last one called &amp;quot;encoding&amp;quot; to: UTF-8&lt;br /&gt;
&lt;br /&gt;
===Mac OS X===&lt;br /&gt;
&lt;br /&gt;
The built in text edit application has a &#039;Plain text encoding&#039; option in the Save as... dialogue.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
&lt;br /&gt;
The standard Gnome Text Editor defaults to UTF-8 and has character set options when loading and saving.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
[[Category:Administrator]]&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
[[Category:UTF-8]]&lt;br /&gt;
&lt;br /&gt;
[[fr:Conversion de fichiers en UTF-8]]&lt;br /&gt;
[[ja:ファイルをUTF-8にコンバートする]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=LDAP_authentication&amp;diff=64646</id>
		<title>LDAP authentication</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=LDAP_authentication&amp;diff=64646"/>
		<updated>2009-10-24T07:10:29Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Bind settings */ spelling&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Moodle 1.9}}&lt;br /&gt;
Location: Settings link in &#039;&#039;Administration &amp;gt; Users &amp;gt; [[Authentication]] &amp;gt; LDAP Server&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
This document describes how to set up Lightweight Directory Access Protocol (LDAP) authentication in Moodle.  We cover the basic, advanced and some trouble shooting sections to assist the user in the installation and administrating LDAP in Moodle.  &lt;br /&gt;
==Table of Contents==&lt;br /&gt;
__TOC__&lt;br /&gt;
==Basic Scenario==&lt;br /&gt;
The simple and straightforward approach  for most installations.&lt;br /&gt;
&lt;br /&gt;
===Assumptions===&lt;br /&gt;
&lt;br /&gt;
# Your Moodle site is located at &#039;&#039;&#039;http://your.moodle.site/&#039;&#039;&#039;&lt;br /&gt;
# You have configured your PHP installation with the LDAP extension. It is loaded and activated, and it shows when you go to &#039;&#039;&#039;http://your.moodle.site/admin/phpinfo.php&#039;&#039;&#039; (logged in as user &#039;admin&#039;).&lt;br /&gt;
# Your LDAP server has &#039;&#039;&#039;192.168.1.100&#039;&#039;&#039; as its IP address.&lt;br /&gt;
# You are not using LDAP with SSL (also known as LDAPS) in your settings. This might prevent certain operations from working (e.g., you cannot update data if you are using MS Active Directory -- MS-AD from here on --), but should be OK if you just want to authenticate your users.&lt;br /&gt;
# You don&#039;t want your users to change their passwords the first time they log in into Moodle.&lt;br /&gt;
# You are using a single domain as the source of your authentication data in case you are using MS-AD (more on this in the Appendices).&lt;br /&gt;
# You are using a top level distinguished name (DN) of &#039;&#039;&#039;dc=my,dc=organization,dc=domain&#039;&#039;&#039; as the root of your LDAP tree. &lt;br /&gt;
# You have a non-privileged LDAP user account you will use to bind to the LDAP server. This is not necessary with certain LDAP servers, but MS-AD requires this and it won&#039;t hurt if you use it even if your LDAP server doesn&#039;t need it. Make sure &#039;&#039;&#039;this account and its password don&#039;t expire&#039;&#039;&#039;, and make this password as strong as possible. Remember you only need to type this password once, when configuring Moodle, so don&#039;t be afraid of making it as hard to guess as possible. Let&#039;s say this user account has a DN of &#039;&#039;&#039;cn=ldap-user,dc=my,dc=organization,dc=domain&#039;&#039;&#039;, and password &#039;&#039;&#039;hardtoguesspassword&#039;&#039;&#039;.&lt;br /&gt;
# All of your Moodle users are in an organizational unit (OU) called &#039;&#039;&#039;moodleusers&#039;&#039;&#039;, which is right under your LDAP root. That OU has a DN of &#039;&#039;&#039;ou=moodleusers,dc=my,dc=organization,dc=domain&#039;&#039;&#039;.&lt;br /&gt;
# You &#039;&#039;&#039;don&#039;t&#039;&#039;&#039; want your LDAP users&#039; passwords to be stored in Moodle at all.&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
===Configuring Moodle authentication===&lt;br /&gt;
&lt;br /&gt;
Log in as an admin user and go to Administration &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Authentication &amp;gt;&amp;gt; Manage authentication. In the table that appears, enable the &amp;quot;LDAP Server&amp;quot; authentication option (click on the closed eye to make it open) and then click on the associated &#039;Settings&#039; link. You will get a page similar to this one:&lt;br /&gt;
&lt;br /&gt;
[[Image:auth_ldap_config_screenshot.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
Now, you just have to fill in the values. Let&#039;s go step by step.&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====LDAP Server Settings====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Host URL&lt;br /&gt;
| As the IP of your LDAP server is 192.168.1.100, type &amp;quot;&#039;&#039;&#039;ldap://192.168.1.100&#039;&#039;&#039;&amp;quot; (without the quotes), or just &amp;quot;&#039;&#039;&#039;192.168.1.100&#039;&#039;&#039;&amp;quot; (some people have trouble connecting with the first syntax, specially on MS Windows servers).&lt;br /&gt;
|-&lt;br /&gt;
| Version&lt;br /&gt;
| Unless you are using a really old LDAP server, &#039;&#039;&#039;version 3&#039;&#039;&#039; is the one you should choose.&lt;br /&gt;
|-&lt;br /&gt;
| LDAP Encoding&lt;br /&gt;
| Specify encoding used by LDAP server. Most probably utf-8.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Bind settings====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Hide passwords&lt;br /&gt;
| As you &#039;&#039;&#039;don&#039;t&#039;&#039;&#039; want to store the users&#039;s password in Moodle&#039;s database, choose &#039;&#039;&#039;Yes&#039;&#039;&#039; here.&lt;br /&gt;
|-&lt;br /&gt;
| Distinguished Name&lt;br /&gt;
| This is the distinguished name of the bind user defined above. Just type &amp;quot;&#039;&#039;&#039;cn=ldap-user,dc=my,dc=organization,dc=domain&#039;&#039;&#039;&amp;quot; (without the quotes).&lt;br /&gt;
|-&lt;br /&gt;
| Password&lt;br /&gt;
| This is the bind user password defined above. Type &amp;quot;&#039;&#039;&#039;hardtoguesspassword&#039;&#039;&#039;&amp;quot; (without the quotes).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====User lookup settings====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| User type&lt;br /&gt;
| Choose: &lt;br /&gt;
* &#039;&#039;&#039;Novel Edirectory&#039;&#039;&#039; if your LDAP server is running Novell&#039;s eDdirectory.&lt;br /&gt;
* &#039;&#039;&#039;posixAccount (rfc2307)&#039;&#039;&#039; if your LDAP server is running a RFC-2307 compatible LDAP server (choose this is your server is running OpenLDAP).&lt;br /&gt;
* &#039;&#039;&#039;posixAccount (rfc2307bis)&#039;&#039;&#039; if your LDAP server is running a RFC-2307bis compatible LDAP server.&lt;br /&gt;
* &#039;&#039;&#039;sambaSamAccount (v.3.0.7)&#039;&#039;&#039; if your LDAP server is running with SAMBA&#039;s 3.x LDAP schema extension and you want to use it.&lt;br /&gt;
* &#039;&#039;&#039;MS ActiveDirectory&#039;&#039;&#039; if your LDAP server is running Microsoft&#039;s Active Directory (MS-AD)&lt;br /&gt;
|-&lt;br /&gt;
| Contexts&lt;br /&gt;
| The DN of the context (container) where all of your Moodle users are found. Type &#039;&#039;&#039;ou=moodleusers,dc=my,dc=organization,dc=domain&#039;&#039;&#039; here.&lt;br /&gt;
|-&lt;br /&gt;
| Search subcontexts&lt;br /&gt;
| If you have any sub organizational units (subcontexts) hanging from &#039;&#039;&#039;ou=moodleusers,dc=my,dc=organization,dc=domain&#039;&#039;&#039; and you want Moodle to search there too, set this to &#039;&#039;&#039;yes&#039;&#039;&#039;. Otherwise, set this to &#039;&#039;&#039;no&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Dereference aliases&lt;br /&gt;
| Sometimes your LDAP server will tell you that the real value you are searching for is in fact in another part of the LDAP tree (this is called an alias). If you want Moodle to &#039;dereference&#039; the alias and fetch the real value from the original location, set this to &#039;&#039;&#039;yes&#039;&#039;&#039;. If you don&#039;t want Moodle to dereference it, set this to &#039;&#039;&#039;no&#039;&#039;&#039;. If you are using MS-AD, set this to &#039;&#039;&#039;no&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| User attribute&lt;br /&gt;
| The attribute used to name/search users in your LDAP tree. This option takes a default value based on the &#039;&#039;User type&#039;&#039; value you choosed above. &amp;lt;u&amp;gt;So unless you need something special, you don&#039;t need to fill this in&amp;lt;/u&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
By the way, it&#039;s usually &#039;&#039;&#039;cn&#039;&#039;&#039; (Novell eDirectory and MS-AD) or &#039;&#039;&#039;uid&#039;&#039;&#039; (RFC-2037, RFC-2037bis and SAMBA 3.x LDAP extension), but if you are using MS-AD you could use &#039;&#039;&#039;sAMAccountName&#039;&#039;&#039; (the pre-Windows 2000 logon account name) if you need too.&lt;br /&gt;
|-&lt;br /&gt;
| Member attribute&lt;br /&gt;
| The attribute used to list the members of a given group. This option takes a default value based on the &#039;&#039;User type&#039;&#039; value you choosed above. &amp;lt;u&amp;gt;So unless you need something special, you don&#039;t need to fill this in.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
By the way, the usual values are &#039;&#039;&#039;member&#039;&#039;&#039; and &#039;&#039;&#039;memberUid&#039;&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Member attribute uses dn&lt;br /&gt;
| Whether the member attribute contains distinguished names (1) or not (0).This option takes a default value based on the &#039;&#039;User type&#039;&#039; value you choosed above. &amp;lt;u&amp;gt;So unless you need something special, you don&#039;t need to fill this in.&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Object class&lt;br /&gt;
| The type of LDAP object used to search for users. This option takes a default value based on the &#039;&#039;User type&#039;&#039; value you choosed above. &amp;lt;u&amp;gt;So unless you need something special, you don&#039;t need to fill this in.&amp;lt;/u&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here are the default values for each of the &#039;&#039;ldap_user_type&#039;&#039; values:&lt;br /&gt;
* &#039;&#039;&#039;User&#039;&#039;&#039; for Novel eDirectory&lt;br /&gt;
* &#039;&#039;&#039;posixAccount&#039;&#039;&#039; for RFC-2037 and RFC-2037bis&lt;br /&gt;
* &#039;&#039;&#039;sambaSamAccount&#039;&#039;&#039; for SAMBA 3.0.x LDAP extension&lt;br /&gt;
* &#039;&#039;&#039;user&#039;&#039;&#039; for MS-AD&lt;br /&gt;
If you get an error about a problem with updating the ldap server (even if you have specified not to write changes back to the ldap server) try setting the ldap object class to * - see http://moodle.org/mod/forum/discuss.php?d=70566 for a discussion on this problem&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Force change password====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Force change password&lt;br /&gt;
| Set this to &#039;&#039;Yes&#039;&#039; if you want to force your users to change their password on the first login into Moodle. Otherwise, set this to &#039;&#039;no&#039;&#039;. Bear in mind the password they are forced to change is the one stored in your LDAP server.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;As you don&#039;t want your users to change their passwords in their first login, leave this set to &#039;&#039;No&#039;&#039;&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Use standard Change Password Page&lt;br /&gt;
|&lt;br /&gt;
* Setting this to &#039;&#039;Yes&#039;&#039; makes Moodle use it&#039;s own standard password change page, everytime users want to change their passwords.&lt;br /&gt;
* Setting this to &#039;&#039;No&#039;&#039; makes Moodle use the the page specified in the field called &amp;quot;Password change URL&amp;quot; (see below).&lt;br /&gt;
&lt;br /&gt;
Bear in mind that changing your LDAP passwords from Moodle might require a LDAPS connection (this is actually a requirement for MS-AD). In addition to that, the bind user specified above must have the rights needed to change other users&#039; passwords.&lt;br /&gt;
&lt;br /&gt;
Also, code for changing passwords from Moodle for anything but Novell eDirectory and Active Directory is almost not tested, so this may or may not work for other LDAP servers.&lt;br /&gt;
|-&lt;br /&gt;
| Password Format&lt;br /&gt;
| Specify how the new password is encrypted before sending it to the LDAP server: Plain text, MD5 hash or SHA-1 hash. MS-AD uses plain text, for example.&lt;br /&gt;
|-&lt;br /&gt;
| Password change URL&lt;br /&gt;
| Here you can specify a location at which your users can recover or change their username/password if they&#039;ve forgotten it. This will be provided to users as a button on the login page and their user page. if you leave this blank the button will not be printed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====LDAP password expiration settings====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Expiration&lt;br /&gt;
| &lt;br /&gt;
* Setting this to &#039;&#039;No&#039;&#039; will make Moodle not to check if the password of the user has expired or not.&lt;br /&gt;
* Setting this to &#039;&#039;LDAP&#039;&#039; will make Moodle check if the LDAP password of the user has expired or not, and warn her a number of days before the password expires.&lt;br /&gt;
&lt;br /&gt;
Current code only deals with Novell eDirectory LDAP server and MS-AD.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;So unless you have Novell eDirectory server or MS-AD, choose &#039;&#039;No&#039;&#039; here.&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Expiration warning&lt;br /&gt;
| This value sets how many days in advance of password expiration the user is warned that her password is about to expire.&lt;br /&gt;
|-&lt;br /&gt;
| Expiration attribute.&lt;br /&gt;
| The LDAP user attribute used to check password expiration. This option takes a default value based on the &#039;&#039;User type&#039;&#039; value you choosed above. &amp;lt;u&amp;gt;So unless you need something special, you don&#039;t need to fill this in.&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Grace logins&lt;br /&gt;
| This setting is specific to Novell eDirectory. If set to &#039;&#039;Yes&#039;&#039;, enable LDAP gracelogin support. After password has expired the user can login until gracelogin count is 0.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;So unless you have Novell eDirectory server and want to allow gracelogin support, choose &#039;&#039;No&#039;&#039; here.&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Grace login attribute&lt;br /&gt;
| This setting is currently not used in the code (and is specific to Novell eDirectory). &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;So you don&#039;t need to fill this in.&amp;lt;/u&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Enable user creation====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Create users externally&lt;br /&gt;
| New (anonymous) users can self-create user accounts on the external LDAP server and confirm them via email. If you enable this, remember to also configure module-specific options for user creation and to fill in some instructions in &#039;&#039;auth_instructions&#039;&#039; field in Administration &amp;gt;&amp;gt; Users &amp;gt;&amp;gt; Authentication &amp;gt;&amp;gt; Manage authentication. Otherwise the new users won&#039;t be able to self-create new accounts.&lt;br /&gt;
&lt;br /&gt;
As of now, only Novell eDirectory and MS-AD can create users externally.&lt;br /&gt;
|-&lt;br /&gt;
| Context for new users&lt;br /&gt;
| Specify the context where users are created. This context should be different from other users&#039; contexts to prevent security issues. &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Course creation====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Creators&lt;br /&gt;
| The DN of the group that contains all of your Moodle creators. This is typically a posixGroup with a &amp;quot;memberUid&amp;quot; attribute for each user you want to be a creator.  If your group is called &#039;&#039;creators&#039;&#039;, type &#039;&#039;&#039;cn=creators,ou=moodleusers,dc=my,dc=organization,dc=domain&#039;&#039;&#039; here.  Each memberUid attribute contains the CN of a user who is authorized to be a creator.  Do not use the user&#039;s full DN (e.g.,  not &#039;&#039;&#039;memberUid: cn=JoeTeacher,ou=moodleusers,dc-my,dc=organizations,dc=domain&#039;&#039;&#039;, but rather &#039;&#039;&#039;memberUid: JoeTeacher&#039;&#039;&#039;).&lt;br /&gt;
&lt;br /&gt;
In eDirectory, the objectClass for a group is (by default) not &#039;&#039;&#039;posixGroup&#039;&#039;&#039; but &#039;&#039;&#039;groupOfNames,&#039;&#039;&#039; whose member attribute is &#039;&#039;&#039;member,&#039;&#039;&#039; not &#039;&#039;&#039;memberUid,&#039;&#039;&#039; and whose value is the full DN of the user in question.  Although you can probably modify Moodle&#039;s code to use this field, a better solution is just to add a new &#039;&#039;&#039;objectClass&#039;&#039;&#039; attribute of &#039;&#039;&#039;posixGroup&#039;&#039;&#039; to your creators group and put the CNs for each creator in a &#039;&#039;&#039;memberUid&#039;&#039;&#039; attribute.&lt;br /&gt;
&lt;br /&gt;
In MS Active Directory, you will need to create a security group for your creators to be part of and then add them all. If your ldap context above is &#039;ou=staff,dc=my,dc=org&#039; then your group should then be &#039;cn=creators,ou=staff,dc=my,dc=org&#039;. If some of the users are from other contexts and have been added to the same security group, you&#039;ll have to add these as separate contexts after the first one using the same format.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Cron synchronization script====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Removed ext user&lt;br /&gt;
| Specify what to do with internal user account during mass synchronization when user was removed from external source. Only suspended users are automatically revived if they reappear in ext source.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====NTLM SSO====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| Enable&lt;br /&gt;
| If you want to use NTLM SSO (see details at [[NTLM_authentication]]), choose &#039;&#039;Yes&#039;&#039; here. Otherwise, choose &#039;&#039;No&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Subnet&lt;br /&gt;
| Specify the subnets of the clients that will use NTLM SSO (see details at [[NTLM_authentication]]).&lt;br /&gt;
|-&lt;br /&gt;
| MS IE Fast Path?&lt;br /&gt;
| If all of you clients (or most of them) are using MS Internet Explorer, you can set this option to bypasses certain steps of the SSO login and speed up login times. This only works with MS Internet Explorer, but deals with other browsers in a sensible way (they are automatically sent to the plain login page).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
====Data Mapping====&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Field name&lt;br /&gt;
! Value to fill in&lt;br /&gt;
|-&lt;br /&gt;
| First name&lt;br /&gt;
| The name of the attribute that holds the first name of your users in your LDAP server. This is usually &#039;&#039;&#039;givenName&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Surname&lt;br /&gt;
| The name of the attribute that holds the surname of your users in your LDAP server. This is usually &#039;&#039;&#039;sn&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Email address&lt;br /&gt;
| The name of the attribute that holds the email address of your users in your LDAP server. This is usually &#039;&#039;&#039;mail&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| City/town&lt;br /&gt;
| The name of the attribute that holds the city/town of your users in your LDAP server. This is usully &#039;&#039;&#039;l&#039;&#039;&#039; (lowercase L) or &#039;&#039;&#039;localityName&#039;&#039;&#039; (not valid in MS-AD).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt; &lt;br /&gt;
|-&lt;br /&gt;
| Country&lt;br /&gt;
| The name of the attribute that holds the couuntry of your users in your LDAP server. This is usully &#039;&#039;&#039;c&#039;&#039;&#039; or &#039;&#039;&#039;countryName&#039;&#039;&#039; (not valid in MS-AD).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Language&lt;br /&gt;
| &#039;&#039;&#039;preferredLanguage&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Description&lt;br /&gt;
| &#039;&#039;&#039;description&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Webpage&lt;br /&gt;
| &amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| ID Number&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Institution&lt;br /&gt;
| &lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Department&lt;br /&gt;
| The name of the attribute that holds the department name of your users in your LDAP server. This is usully &#039;&#039;&#039;departmentNumber&#039;&#039;&#039; (for posixAccount and maybe eDirectory) or &#039;&#039;&#039;department&#039;&#039;&#039; (for MS-AD).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Phone 1&lt;br /&gt;
| The name of the attribute that holds the telephone number of your users in your LDAP server. This is usually &#039;&#039;&#039;telephoneNumber&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Phone 2&lt;br /&gt;
|  The name of the attribute that holds an additional telephone number of your users in your LDAP server. This can be &#039;&#039;&#039;homePhone&#039;&#039;&#039;, &#039;&#039;&#039;mobile&#039;&#039;&#039;, &#039;&#039;&#039;pager&#039;&#039;&#039;, &#039;&#039;&#039;facsimileTelephoneNumber&#039;&#039;&#039; or even others.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Address&lt;br /&gt;
| The name of the attribute that holds the street address of your users in your LDAP server. This is usully &#039;&#039;&#039;streetAddress&#039;&#039;&#039; or &#039;&#039;&#039;street&#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;This setting is optional&amp;lt;/u&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
===Setting up regular automatic synchronisation using cron===&lt;br /&gt;
There is a script located at /auth/ldap/auth_ldap_sync_users.php which will create or suspend/delete (see the setting above) all LDAP accounts automatically. Ideally, this is called from the command line once a day during a quiet time using exactly the same procedure as the standard [[Cron|cron]] job (so you will end up with two cron entries). It is important, however, to make sure that all of the above LDAP settings are working properly before you try this, as well as backing up your database and moodledata folders. Poor LDAP configuration could lead to users being wrongly deleted.&lt;br /&gt;
&lt;br /&gt;
If you find that the script is not running through all of your users properly and you have MS Active Directory + over 1000 users, this is because by default, MS AD only sends back 1000 users at a time. Follow the instructions [http://support.microsoft.com/kb/315071 here] to set the MaxPageSize setting to a number higher than your total number of users (both now and in future) to fix it.&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
==Active Directory help==&lt;br /&gt;
[[Active Directory]] is Microsoft&#039;s directory service. It is included in Windows 2000 Server and later versions of their operating system. For more information about subjects below, &#039;&#039;&#039;[[Active Directory|please go here]]&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
*Warning: The PHP LDAP module does not seem to be present&lt;br /&gt;
*LDAP-module cannot connect any LDAP servers &lt;br /&gt;
*Getting correct CNs for Contexts and Creators&lt;br /&gt;
*Getting the right user_attribute&lt;br /&gt;
*Installing ldp.exe Server Tool&lt;br /&gt;
*Example Active Directory Configuration&lt;br /&gt;
*Child Domains and the Global Catalog in MS Active Directory&lt;br /&gt;
*Enabling the Global Catalog&lt;br /&gt;
*Active Directory with Moodle 1.8&lt;br /&gt;
*MS Active Directory + SSL&lt;br /&gt;
&lt;br /&gt;
==Advanced Scenarios - Multiple servers or locations==&lt;br /&gt;
For larger installations with  multiple LDAP servers, or multiple locations (contexts) in a LDAP tree.&lt;br /&gt;
&lt;br /&gt;
===Using multiple LDAP Servers===&lt;br /&gt;
Entering more than one name in the ldap_host_url field can provide some sort of resilience to your system. Simply use the syntax :&lt;br /&gt;
ldap://my.first.server ; ldap://my.second.server ; ...&lt;br /&gt;
&lt;br /&gt;
Of course, this will only work if all the servers share the same directory information, using a replication or synchronization mecanism once introduced in eDirectory and now generalized to the main LDAP-compatible directories.&lt;br /&gt;
&lt;br /&gt;
There is one drawback in Moodle 1.5 - 1.6 implementation of LDAP authentication : the auth_ldap_connect() function processes the servers sequentially, not in a round robin mode. Thus, if the primary server fails, you will have to wait for the connection to time out before switching to the following one.&lt;br /&gt;
&lt;br /&gt;
===Using multiple user locations (contexts) in your LDAP tree===&lt;br /&gt;
There is no need to use multiple user locations if your directory tree is flat, i.e. if all user accounts reside in a &#039;&#039;&#039;ou=people,dc=my,dc=organization,dc=domain&#039;&#039;&#039; or &#039;&#039;&#039;ou=people,o=myorg&#039;&#039;&#039; container. &lt;br /&gt;
&lt;br /&gt;
At the opposite, if you use the ACL mecanism to delegate user management, there are chances that your users will be stored in containers like &#039;&#039;&#039;ou=students,ou=dept1,o=myorg&#039;&#039;&#039; and &#039;&#039;&#039;ou=students,ou=dept2,o=myorg&#039;&#039;&#039; ...&lt;br /&gt;
&lt;br /&gt;
Then there is an alternative :&lt;br /&gt;
* Look at the &#039;&#039;&#039;o=myorg&#039;&#039;&#039; level with the ldap_search_sub attribute set to &#039;&#039;&#039;yes&#039;&#039;&#039;.&lt;br /&gt;
* Set the ldap_context to &#039;&#039;&#039;ou=students,ou=dept1,o=myorg ; ou=students,ou=dept2,o=myorg&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Choosing between these two solutions supposes some sort of benchmarking, as the result depends heavily on the structure of your directory tree &#039;&#039;&#039;and&#039;&#039;&#039; on your LDAP software indexing capabilities. Simply note that there is a probability in such deep trees that two users share the same &#039;&#039;common name&#039;&#039; (cn), while having different &#039;&#039;distinguished names&#039;&#039;. Then only the second solution will have a deterministic result (returning allways the same user).&lt;br /&gt;
&lt;br /&gt;
===Using LDAPS (LDAP + SSL)===&lt;br /&gt;
====Enabling LDAPS on the LDAP server side====&lt;br /&gt;
&lt;br /&gt;
* [[Active_Directory#MS_Active_Directory_.2B_SSL|Enabling LDAPS on MS Active Directory ]]&lt;br /&gt;
&lt;br /&gt;
====Enabling LDAPS on the client side (Moodle server)====&lt;br /&gt;
&lt;br /&gt;
* If you are running Moodle on MS Windows, you need to tell PHP&#039;s OpenLDAP extension to disable SSL server certificate checking. You must create a directory called &#039;&#039;C:\OpenLDAP\sysconf&#039;&#039;. In this directory, create a file called &#039;&#039;ldap.conf&#039;&#039; with the following content:&lt;br /&gt;
&lt;br /&gt;
 TLS_REQCERT never&lt;br /&gt;
&lt;br /&gt;
* If you are running Moodle on Linux or any other Unix-like operating system, and you want to disable SSL server certificate checking, you need to edit the OpenLDAP client configuration file (usually /etc/ldap.conf or /etc/ldap/ldap.conf or even /etc/openldap/ldap.conf) and make sure you have a line like the following one:&lt;br /&gt;
&lt;br /&gt;
 TLS_REQCERT never&lt;br /&gt;
&lt;br /&gt;
Now you should be able to use &#039;&#039;&#039;ldaps://&#039;&#039;&#039; when connecting to your LDAP server.&lt;br /&gt;
&lt;br /&gt;
If you have the certificate of the LDAPS server as a file and want to check the certificate for the connection, copy the certificate file to an arbitary directory (e.g. /etc/ldap/certificate.pem) on your client and change the content of the &#039;&#039;ldap.conf&#039;&#039; as follows:&lt;br /&gt;
&lt;br /&gt;
 TLS_REQCERT demand&lt;br /&gt;
 TLS_CACERT  /etc/ldap/certificate.pem&lt;br /&gt;
&lt;br /&gt;
When the requested server certificate is bad or not provided, the connection to the LDAPS server is immediately terminated.&lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
==Appendices==&lt;br /&gt;
===ldap auth_user_create() only suports Novell===&lt;br /&gt;
&lt;br /&gt;
After configuring user authentication with ldap I realized ldap only support edir (Novell) when combining ldap an email user confirmation. For example in my case (I use openldap) I have the following error after filling the user form:&lt;br /&gt;
&lt;br /&gt;
auth: ldap auth_user_create() does not support selected usertype:&amp;quot;rfc2307&amp;quot; (..yet)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting Resource Limits RedHat Directory Server ===&lt;br /&gt;
&lt;br /&gt;
Operational attributes can be set for the bind user DN using the command-line. &lt;br /&gt;
One can simply use ldapmodify to add the following attributes:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellspacing=&amp;quot;0&amp;quot; cellpadding=&amp;quot;5&amp;quot;&lt;br /&gt;
! Attribute Name &lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| nsLookThroughLimit&lt;br /&gt;
| Specifies how many entries are examined for a search operation. Giving this attribute a value of -1 indicates that there is no limit.&lt;br /&gt;
|-&lt;br /&gt;
| nsSizeLimit &lt;br /&gt;
| Specifies the maximum number of entries the server returns to a client application in response to a search operation. Giving this attribute a value of -1 indicates that there is no limit.&lt;br /&gt;
|-&lt;br /&gt;
| nsTimeLimit &lt;br /&gt;
| Specifies the maximum time the server spends processing a search operation. Giving this attribute a value of -1 indicates that there is no time limit.&lt;br /&gt;
|-&lt;br /&gt;
| nsIdleTimeout 	        &lt;br /&gt;
| Specifies the time a connection to the server can be idle before the connection is dropped. The value is given in seconds. Giving this attribute a value of -1 indicates that there is no limit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;pre&amp;gt; LDAP Console Command-Line&lt;br /&gt;
&lt;br /&gt;
 ldapmodify -h redhat_dir_server -p 389 -D &amp;quot;cn=directory manager&amp;quot; -w secretpwd&lt;br /&gt;
&lt;br /&gt;
 dn: uid=MoodleAdmin,ou=system,dc=myschool,dc=edu&lt;br /&gt;
 changetype: modify&lt;br /&gt;
 add:nsSizeLimit&lt;br /&gt;
 nsSizeLimit: 1000&lt;br /&gt;
 &amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
[[LDAP_authentication#Table of Contents|Table of Contents]]&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* [[NTLM_authentication]]&lt;br /&gt;
* [[Active_Directory]]&lt;br /&gt;
* [[LDAP enrolment]]&lt;br /&gt;
* [http://download.moodle.org/download.php/docs/en/how-to_guides/ldap_auth_and_enrolment_set-up.pdf LDAP auth and enrolment set-up guide] (PDF 227KB)&lt;br /&gt;
&lt;br /&gt;
Using Moodle:&lt;br /&gt;
*[http://moodle.org/mod/forum/view.php?id=42 User authentication forum]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=32168 PHP LDAP module does not seem to be present] forum discussion&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
&lt;br /&gt;
[[es:LDAP_authentication]]&lt;br /&gt;
[[fr:Utiliser un serveur LDAP]]&lt;br /&gt;
[[ja:LDAP認証]]&lt;br /&gt;
[[zh:LDAP认证]]&lt;br /&gt;
[[de:Authentifizierung über LDAP]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Setting_up_Netbeans&amp;diff=64440</id>
		<title>Setting up Netbeans</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Setting_up_Netbeans&amp;diff=64440"/>
		<updated>2009-10-16T07:55:20Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Coding faster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.netbeans.org/features/php/index.html NetBeans] has got a good PHP support. You find a host of information on the website (tutorials, developer blog, screen casts, etc.).&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
* CVS integration: see all changes, lines deletion, diff in real time, show annotations, diff history...&lt;br /&gt;
* Ctrl+Click: Go to declaration&lt;br /&gt;
* Export/Import Diff Patch&lt;br /&gt;
* Easy navigation&lt;br /&gt;
* List of functions&lt;br /&gt;
* Code completion&lt;br /&gt;
* Instant rename&lt;br /&gt;
* HTML, CSS, JavaScript support&lt;br /&gt;
* MySQL manager&lt;br /&gt;
* Quick Search&lt;br /&gt;
* Very few bugs&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
* I recommend downloading the latest [http://www.netbeans.org/downloads/indexB.html 6.7.1 version with PHP support ]. It&#039;s only a 26 MB download.&lt;br /&gt;
* Install and run it.&lt;br /&gt;
&lt;br /&gt;
== Set up for Moodle development ==&lt;br /&gt;
&lt;br /&gt;
* Checkout your Moodle project with a &#039;&#039;&#039;CVS client&#039;&#039;&#039; - see [[CVS for Administrators]] or [[Development:CVS for developers|CVS for Developers]].&lt;br /&gt;
&lt;br /&gt;
* Open File &amp;gt; New Project &amp;gt; PHP &amp;gt; PHP Application &amp;gt; Next &lt;br /&gt;
: You&#039;re going to set the project now. &#039;&#039;Name&#039;&#039;, &#039;&#039;Location&#039;&#039; and &#039;&#039;Folder&#039;&#039; are used by NetBeans and are not related to the source code. So you can choose whatever you like, except your source folder. &#039;&#039;Sources&#039;&#039; has to be your checked out Moodle branch/head folder. The rest is clear enough. Don&#039;t forget to choose UTF-8 for &#039;&#039;Default Encoding&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Example:&lt;br /&gt;
&lt;br /&gt;
 Project Name:        Moodle 1.9 Stable&lt;br /&gt;
 Project Location:    C:\Users\jerome\Documents\NetBeansProjects&lt;br /&gt;
 Project Folder:      C:\Users\jerome\Documents\NetBeansProjects\Moodle 1.9 Stable&lt;br /&gt;
 Project Sources:     C:\Users\jerome\Projects\branch19_STABLE\moodle&lt;br /&gt;
 Project URL:         http://localhost/moodle19/&lt;br /&gt;
 Index File:          index.php&lt;br /&gt;
 Create:              unchecked&lt;br /&gt;
 Default Encoding:    UTF-8&lt;br /&gt;
 Set as Main Project: unchecked&lt;br /&gt;
&lt;br /&gt;
* Click on Finish.&lt;br /&gt;
&lt;br /&gt;
* Start coding!&lt;br /&gt;
&lt;br /&gt;
== CVS with NetBeans ==&lt;br /&gt;
&lt;br /&gt;
NetBeans comes with &#039;&#039;&#039;integrated CVS support&#039;&#039;&#039; which might be the easiest way to check out Moodle.&lt;br /&gt;
&lt;br /&gt;
* In NetBeans, select Window-&amp;gt;Versioning-&amp;gt;CVS-&amp;gt;Checkout&lt;br /&gt;
* Select Team-&amp;gt;CVS-&amp;gt;Checkout&lt;br /&gt;
* Enter into CVS Root: &#039;&#039;:pserver:anonymous@us.cvs.moodle.org:/cvsroot/moodle&#039;&#039;&lt;br /&gt;
: (Non-US-residents might use one of the other [https://docs.moodle.org/en/CVS_for_Administrators#CVS_Servers Moodle CVS servers] nearer to them.)&lt;br /&gt;
* Click &#039;&#039;Next&#039;&#039;&lt;br /&gt;
* Browse or enter into &#039;&#039;Module:&#039;&#039; moodle&lt;br /&gt;
* Browse or enter into &#039;&#039;Branch:&#039;&#039; MOODLE_19_STABLE&lt;br /&gt;
* Browse or enter into &#039;&#039;Local Folder:&#039;&#039; C:\xampp\htdocs&lt;br /&gt;
* Click &#039;&#039;Finish&#039;&#039; (and wait a few minutes for Moodle to be checked out)&lt;br /&gt;
* When you get the dialog box &amp;quot;Do you want to create an IDE project from the checked-out sources?&amp;quot;, Click &amp;quot;Create Project...&amp;quot;&lt;br /&gt;
* Select PHP Application with Existing Sources, and click Next&lt;br /&gt;
* Browse or enter into &#039;&#039;Sources Folder&#039;&#039; C:\xampp\htdocs\moodle&lt;br /&gt;
* Enter into &#039;&#039;Project Name:&#039;&#039; moodle&lt;br /&gt;
* Keep the other defaults and click next&lt;br /&gt;
* &#039;&#039;Run As:&#039;&#039; should have selected &#039;&#039;Local Web Site (running on local web server)&#039;&#039;&lt;br /&gt;
* Enter into Project URL http://localhost/moodle/&lt;br /&gt;
* Browse or enter into &#039;&#039;Index File:&#039;&#039; index.php&lt;br /&gt;
* Click &#039;&#039;Finish&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
=== Few warnings ===&lt;br /&gt;
Some of these warnings could also apply to other IDE:&lt;br /&gt;
* If you want to delete a file from your computer but not from CVS, delete it from Windows Explorer/Nautilus/Finder. Otherwise your next commit could delete the file from CVS. &amp;lt;br/&amp;gt;In case you have already deleted a wrong file from Netbeans:  with Windows Explorer/Nautilus/Finder, delete all the folder content of this deleted file (including the CVS folder) and update the folder.&lt;br /&gt;
* If you rename files and that other people are working on them, Netbeans could end up to mess up your CVS folder (even though that is quite rare). Then Netbeans CVS will refuse to update your code displaying a no explicit error as &#039;&#039;&#039;Update Failed&#039;&#039;&#039;. In this case, delete the content of the damaged folder with Windows Explorer/Nautilus/Finder. Then update this folder.&lt;br /&gt;
* If you create a patch or a new php file with Netbeans on Microsoft Windows, please check that it&#039;s a Unix format file. You may want to use another software to create Unix format patch/php file.&lt;br /&gt;
&lt;br /&gt;
== Optimization ==&lt;br /&gt;
&lt;br /&gt;
1. You may want to run Netbeans with the Sun JDK. Netbeans seems to work a bit better with the Sun JDK. Download it from  [http://java.sun.com/javase/downloads/index.jsp]. You&#039;ll have to edit Netbeans config file. Open netbeans/etc/netbeans.conf. Then uncomment and edit: &lt;br /&gt;
&lt;br /&gt;
 netbeans_jdkhome=&amp;quot;your_JDK_path&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. To change the Netbeans look and feel run netbeans in the command line with this parameter:&lt;br /&gt;
 &amp;quot;netbeans&amp;quot;  --laf javax.swing.plaf.metal.MetalLookAndFeel &lt;br /&gt;
&lt;br /&gt;
3. If Netbeans starts to slow down, give it more memory&lt;br /&gt;
 &amp;quot;netbeans&amp;quot; -J-Xmx600m&lt;br /&gt;
&lt;br /&gt;
== Coding faster ==&lt;br /&gt;
You may want to have a look at the [http://wiki.netbeans.org/KeymapProfileFor60 keyboard shortcuts].&amp;lt;br/&amp;gt;&lt;br /&gt;
You can also follow the [http://blogs.sun.com/netbeansphp/ Netbeans PHP blog].&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
* Moodle forum: [http://moodle.org/mod/forum/discuss.php?d=112972 NetBeans 6.5 for moodle/PHP/debugging is a better experience v.s Eclipse]&lt;br /&gt;
* [http://www.netbeans.org/kb/trails/php.html NetBeans PHP Learning Trail]&lt;br /&gt;
* [http://wiki.netbeans.org/PHP NetBeans PHP Wiki]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|NetBeans]]&lt;br /&gt;
[[Category:Developer tools|NetBeans]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Tracking_Moodle_CVS_with_git&amp;diff=64402</id>
		<title>Tracking Moodle CVS with git</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Tracking_Moodle_CVS_with_git&amp;diff=64402"/>
		<updated>2009-10-14T10:43:26Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Anyone got any experience with NetBeans and GIT? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am currently doing a bit of an overhaul of this page to remove obsolete coigto stuff - dont really see a reason why anyone would use it or want docs for it.--[[User:Dan Poltawski|Dan Poltawski]] 17:04, 1 October 2008 (CDT)&lt;br /&gt;
:Great! Thanks! --[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 17:05, 1 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Mass merge ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;...If you are applying patches to CVS, you can then use git-cvsexportcommit or plain old patch -p1 filename...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
can anybody please elaborate a bit? Provide and example? TIA --[[User:David Mudrak|David Mudrak]] 15:30, 18 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Anyone got any experience with NetBeans and GIT? ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started getting into CVS and am using netBeans. I like NetBeans so far and using the usual CVS seems to work OK. &lt;br /&gt;
&lt;br /&gt;
GIT seem to be &amp;quot;quite the rage&amp;quot; now. Now I&#039;m wondering should I try to get into that while I&#039;m still learning CVS? A google search reveals at least one plugin for GIT and NetBeans: NBgit.  [[User:Jeff Forssell|Jeff Forssell]] 10:43, 14 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
=== CVS Export ===&lt;br /&gt;
&lt;br /&gt;
Is that command example even correct - &amp;quot;GIT_DIR=../moodle-19/.git git cvsexportcommit b38cb61&amp;quot; doesn&#039;t look like any correct syntax and is nothing like the example in the manual page..  --[[User:Howard Miller|Howard Miller]] 10:22, 14 October 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
               $ export GIT_DIR=~/project/.git&lt;br /&gt;
               $ cd ~/project_cvs_checkout&lt;br /&gt;
               $ git cvsexportcommit -v &amp;lt;commit-sha1&amp;gt;&lt;br /&gt;
               $ cvs commit -F .msg &amp;lt;files&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, this paragraph:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&amp;quot;If the patches merge cleanly, future updates will recognise the already-applied patch. In that sense the merger in git is smarter than the merger in Cogito, consider using git-pull rather than cg-update. Note that if you see conflicts using git-pull you will have to work a bit harder to resolve them. Make sure you are familiar with handling merge conflicts with pure git before trying this.&amp;quot;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
...doesn&#039;t mean anything to me at all (what&#039;s Cogito and cg-update?). It needs contextualised in some way. This is probably a very useful feature while Moodle is CVS and could use some more explanation. --[[User:Howard Miller|Howard Miller]] 10:22, 14 October 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Open_protocol_for_accessing_question_engines&amp;diff=64394</id>
		<title>Open protocol for accessing question engines</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Open_protocol_for_accessing_question_engines&amp;diff=64394"/>
		<updated>2009-10-14T08:18:16Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* The parts of the system */ tale-&amp;gt;take&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==History==&lt;br /&gt;
&lt;br /&gt;
Previously (2004 to early 2005) there was an attempt (by the Serving Maths Project, Gustav Delius and others) to create something called [http://mantis.york.ac.uk/moodle/course/view.php?id=14 Remote Question Protocol]. This was a web service interface designed to allow question from different question engines (for example [http://web.mat.bham.ac.uk/C.J.Sangwin/aim/ AIM] and [http://stack.bham.ac.uk/ STACK]) to be included in Moodle quizzes. The effort ran out of resources at a time when the code was not in a working state. Several groups have an interest in getting RQP working again, although no one is currently working on it.&lt;br /&gt;
&lt;br /&gt;
During 2005, The Open University (mainly Sam Marshall) developed in-house an online assessment system called [http://www.open.ac.uk/openmarkexamples/ OpenMark]. Its architecture was of separate question engines and a test navigator, communicating via a web service link which we call Opaque (Open Protocol for Accessing QUestion Engines).&lt;br /&gt;
&lt;br /&gt;
Then in May 2006, I (Tim Hunt) took over maintenance of the quiz module from Gustav. At which point I learned about RQP. I was immediately struck by how similar Opaque and RQP were conceptually, although they differed in details.&lt;br /&gt;
&lt;br /&gt;
In autumn 2006, the OU wanted to be able to include OM question in Moodle quizzes. Our choices are to either&lt;br /&gt;
# change OM to use RQP; or&lt;br /&gt;
# change (add to) Moodle to support Opaque.&lt;br /&gt;
We have pretty-much decided to do 2., because it is less work for us, and becuase Opaque currenly works and RQP doesn&#039;t. Therefore, RQP implementing question engines will have to change anyway, and since Opaque is conceptually similar to RQP, changing to Opaque won&#039;t be much more work that changed to whatever the next iteration of RQP would have been.&lt;br /&gt;
&lt;br /&gt;
OpenMark was released under an open source license (hosted at [http://openmark.dev.java.net/ dev.java.net]) in Spring 2007; and STACK 2.0 (http://stack.bham.ac.uk/) was released just before Christmas 2007, so there are now at least two freely available Opaque compatible systems.&lt;br /&gt;
&lt;br /&gt;
==Rationale==&lt;br /&gt;
&lt;br /&gt;
Why are people interested in this sort of protocol? The answer is separation of concerns. The things an online assessment system has to do are:&lt;br /&gt;
# Identify students, test, which students can do which tests at what times, and which questions make up each test.&lt;br /&gt;
# Record the scores and other information that results from students attempting test, and provide reporting fascilities for this information.&lt;br /&gt;
# Display questions to students and process the responses the students make to generate scores, feedback, etc.&lt;br /&gt;
# Allow teachers to create and configure the questions.&lt;br /&gt;
&lt;br /&gt;
Moodle is very good at points 1 and 2, there is a lot of boring book-keeping do be done here, and it is already implemented in Moodle.&lt;br /&gt;
&lt;br /&gt;
For the developers who are interested in Opaque/RQP, the really interesting part of an assessment system is 3. They want to be able to pose really intersting types of questions to students to really make them think, and then use sophisticated algorithms to analyse the student&#039;s response and give targeted feedback when they get things wrong.&lt;br /&gt;
&lt;br /&gt;
Doing this may require specialist tools. For example, STACK and AIM both use Computer algebra systems to set and mark interesting mathematical questions. OpenMark lets question authors write answer marking and feedback generation algorithms in Java code, with a library of helpful classes and functions. It is simply not feasible to rewrite these question engines in PHP and turn them into Moodle question types. Hence the search for another way to get these questions into Moodle.&lt;br /&gt;
&lt;br /&gt;
Of course, each of STACK, AIM, OM, etc. could programme their own solutions to the administration parts 1 and 2. However, this is a needless duplication of effort. It does not allow questions from different question engines to be combined in the same test. And people who are interested in writing advanced question engines are normally not very interested in writing student administration systems.&lt;br /&gt;
&lt;br /&gt;
Finally, there is point 4, question authoring. Authoring advanced question types is a complicated task that will probably need a specialised interface. For example STACK provides its own editing interface. OM questions are authored in a Java IDE, then complied to a JAR file and uploaded to the server. This is all beyond the scope of Opaque. RQP started trying to address authoring at about the point that it was abandoned.&lt;br /&gt;
&lt;br /&gt;
Our approach is that Opaque should be optimised point 3 above - presenting questions to students and processing their responses. This is the point where interoperability is required. Interoperability is hard, so let us keep the scope of the protocol as small as possible. Interoperability of student data and results is a separate problem. Authoring of advanced question types is specialised to the paticular question engine, and interoperability is not possible.&lt;br /&gt;
&lt;br /&gt;
All this is in the context of an online assessment system. Therefore, we are interested in questions that get presented to students in their web browser as HTML, with accompanying CSS, Javascript, Images and other media files. Student responses get sent back as form sumissions, that is HTTP POST requests. Concievably the trendy XMLHttpRequest could be used instead, but it is not really necessary. Opaque only works with form submissions, which is simple and sufficient.&lt;br /&gt;
&lt;br /&gt;
==Overview of Opaque==&lt;br /&gt;
&lt;br /&gt;
Opaque is a web service protocol based on SOAP.&lt;br /&gt;
&lt;br /&gt;
===The parts of the system===&lt;br /&gt;
&lt;br /&gt;
[[Image:OPAQUE_block_diagram.png]]&lt;br /&gt;
&lt;br /&gt;
Opaque is only used at the point when questions are being presented to students, and possibly later when a student&#039;s attempt is being reviewed by a teacher.&lt;br /&gt;
&lt;br /&gt;
It allows the test management system (TMS) to delegate the rendering of questions, the scoring of responses and the generation of feedback to a remote question engine.&lt;br /&gt;
&lt;br /&gt;
There may be a separate question bank where question definitions are stored, or question definitions may be stored within the question engine (e.g. Stack) or the test management system may also take the role of question bank (e.g. OM).&lt;br /&gt;
&lt;br /&gt;
The TMS takes full responsibility for authenticating students and controlling which questions they see. It asks an appropriate question engine to render each question. The question just had to process the questions and responses it is told to process.&lt;br /&gt;
&lt;br /&gt;
Although Opaque is designed to allow interoperability between arbitrary different &#039;&#039;&#039;types&#039;&#039;&#039; of question engines and TMSs, the expectation is that any online assessment system will only use particular instances of each component.&lt;br /&gt;
&lt;br /&gt;
===Identifying questions===&lt;br /&gt;
&lt;br /&gt;
When the TMS asks the question engine to render a particular qustion, it needs to identify that question. This is done using three pieces of information:&lt;br /&gt;
&lt;br /&gt;
;questionbank base URL&lt;br /&gt;
:If the question engine is designed to fetch question definitions from a remote question bank, then this is base URL for fetching questions from. For example &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://example.com/questionbank&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;.&lt;br /&gt;
;question id&lt;br /&gt;
:This is a string conatining only the characters [_a-z0-9.], and also matching the syntactic rules for Java package names. That is, it is one or more &#039;words&#039; separated by &#039;.&#039;s, each word matching the regexp &#039;&#039;&#039;[_a-z][_a-z0-9]*&#039;&#039;&#039;. This identifies the question withing the question bank. For example &#039;&#039;&#039;calculus.diff01a&#039;&#039;&#039; or &#039;&#039;&#039;_12345&#039;&#039;&#039;.&lt;br /&gt;
;question version&lt;br /&gt;
:This is a string of the fomat major.minor, where major and minor are both decimal integers with no leading zero. Version with the same major version number should all behave roughly the same way. minor version changes are things like bug fixes. Therefore, a test definition would probably only specify which major version of the question to use, and the most recent minor version would be picked by the TMS. The full version number is needed for resuming interrupted sessions and reviewing student responsees. See [[#uestion_sessions_and_the_reproducability_guarantee|reproducability guarantee]] below. For example &#039;&#039;&#039;1.1&#039;&#039;&#039;, &#039;&#039;&#039;1.2&#039;&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
If the question engine fetches question definitions from a remote question bank, then it will fetch a particular question by requesting the URL &#039;&#039;questionbankBaseURL&#039;&#039;/&#039;&#039;questionId&#039;&#039;.&#039;&#039;questionVersion&#039;&#039; (e.g. &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;http://example.com/questionbank/calculus.diff01a.1.1&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039;). This returns a single block of data (e.g. OM questions are jar files conaining XML, media files and java code). The format of this data is up to the question engine. It is the responsibility of the TMS to only ask question engines to render questions that they can understand. In the question engine supports different question formats, then it may use the mime type of the response from the question bank to decide how to process this question.&lt;br /&gt;
&lt;br /&gt;
If the question engine stores its own questions, then it can ignore the questionbank base URL, and use the question id and question version to uniquely identify the requested question within its datastore.&lt;br /&gt;
&lt;br /&gt;
===Data passed when a question session is started===&lt;br /&gt;
&lt;br /&gt;
When a new question session is stared, certain information is passed from the test navigator to the question engine:&lt;br /&gt;
&lt;br /&gt;
;randomseed: Any randomisation done be the question engine should be seeded with this number. [[#Question_sessions_and_the_reproducability_guarantee|See below for details]].&lt;br /&gt;
;userid: For information only, for example to improve the logging done at the question engine.&lt;br /&gt;
;language: Information about the current user&#039;s preferred language.&lt;br /&gt;
;passkey: This may be used to improve security. The value passed is md5($secret . $userID), where $secret is a shared secret string (8 characters or fewer) specific to this question engine.&lt;br /&gt;
&lt;br /&gt;
The question engine may ignore any of these pieces of data.&lt;br /&gt;
&lt;br /&gt;
===What can be included in rendered questions===&lt;br /&gt;
&lt;br /&gt;
When a question engine is asked to render a question, it returns a response which includes the following parts:&lt;br /&gt;
&lt;br /&gt;
;String XHTML&lt;br /&gt;
:Well-formed XML which, when inserted into the body or div of an HTML page, will result in valid HTML.&lt;br /&gt;
;String CSS&lt;br /&gt;
:any CSS needed to style the content. The TMS will cache this, and include a link to it in the head of the HTML page.&lt;br /&gt;
;Resource[] resources&lt;br /&gt;
:an array of resources which the TMS must cache and make available.&lt;br /&gt;
&lt;br /&gt;
A Resource has the following fields:&lt;br /&gt;
&lt;br /&gt;
;byte[] content&lt;br /&gt;
;String encoding&lt;br /&gt;
;String filename&lt;br /&gt;
;String mimeType&lt;br /&gt;
&lt;br /&gt;
The content is what is served when the resource is requested. It is served with the specified encoding and mimeType. The filename is used in the URL the resource will be made available at. If the  question requires any javascript, this should be returned as a resource.&lt;br /&gt;
&lt;br /&gt;
Both the XHTML and CSS may contain placeholders of the form %%&#039;&#039;identifier&#039;&#039;%%. These are substituted by the TMS. Recognised placeholders include:&lt;br /&gt;
&lt;br /&gt;
;%%RESOURCE%%&lt;br /&gt;
:Path [relative or absolute] at which resources will become available. This should not include the terminating /. Example: If a resource has the name myfile.png, then &amp;lt;img src=&amp;quot;%%RESOURCES%%/myfile.png&amp;quot;/&amp;gt; should work to include that image.&lt;br /&gt;
;%%IDPREFIX%%&lt;br /&gt;
:This should be prepended to any id or class attribute in the XHTML and references to them in the CSS or Javascript. This allows multiple questions to be diplayed on one page, without conflict. [Note, this is not currently implemented since OM only ever displays one question per page. There is a problem here with javascript, since placeholders are not substituted in resources.&lt;br /&gt;
;%%%%&lt;br /&gt;
:Replaced with %%.&lt;br /&gt;
&lt;br /&gt;
For perfomance reasons, whenever the TMS asks the question engine to render a question, it may send a list of resources that it already has cached for that question. The question engine may choose not to resend any of these resources.&lt;br /&gt;
&lt;br /&gt;
===How the student response is represented===&lt;br /&gt;
&lt;br /&gt;
The TMS receives the student&#039;s response as a HTML form submission, that is, as a HTTP POST request.&lt;br /&gt;
&lt;br /&gt;
Because there might be more than one question per page, the post response to the TMS may contain many post variables. The TMS separates out the ones with the appropriate %%IDPREFIX%%, and forwards just those key-&amp;gt;value pairs to the question engine (with idprefix removed from the key name), when it asks it to process that response.&lt;br /&gt;
&lt;br /&gt;
(Another problem with multiple questions per page is that at the moment for form tag is included in the HTML returned by the question engine, whereas multiple questios per page needs a single form for all questions, provided by the TMS.)&lt;br /&gt;
&lt;br /&gt;
===What sort of results can be returned===&lt;br /&gt;
&lt;br /&gt;
Any request to the question engine to process some results will return HTML and resources etc. to be displayed to the student. In addition, it may (if the student has finished answering the question) include some stuctured results data to be stored in the results database. The Results structure includes:&lt;br /&gt;
&lt;br /&gt;
;String actionSummary&lt;br /&gt;
:A log of the actions the student took in getting to their final answer. Intended for reports seen by test administrators.&lt;br /&gt;
;String answerLine&lt;br /&gt;
:A one-line summary of the student&#039;s final answer. For general reporting.&lt;br /&gt;
;int attempts&lt;br /&gt;
:Number of attempts it took the student to get their final answer.&lt;br /&gt;
;String questionLine&lt;br /&gt;
:A one line summary of the question that was asked. For reporting. Most useful when a question has different random variants.&lt;br /&gt;
;Map&amp;lt;String, int&amp;gt; scores&lt;br /&gt;
:The scores for this question. Normally the score will be a single integer, and the corresponding key will by the empty string. However, in some situations (e.g. psychological tests) the question may want to report scores against different &#039;axes&#039;.&lt;br /&gt;
&lt;br /&gt;
To repeat, these are stored in a database by the TMS, and used for reporting and computing overall test scores without needing to contact the question engines. It it is necessary to reconstruct exactly what the student saw on a particular question, and exactly what they entered, then this can be done using the question engine. See the next section.&lt;br /&gt;
&lt;br /&gt;
===Question sessions and the reproducability guarantee===&lt;br /&gt;
&lt;br /&gt;
Opaque is a stateful protocol, but in a weak sense.&lt;br /&gt;
&lt;br /&gt;
In the protocol, a student&#039;s attempt on a question will require a call to the start() method, then one or more calls to the process() method. These calls may be separated by several minutes, but it could be any length of time.&lt;br /&gt;
&lt;br /&gt;
Normally, what will happen is that the the start() call will return a question session id, and then each call to process() will refer to this session. This works most of the time, but on it&#039;s own would not be robust. What if a studnet stopped working on a question one day and expected to come back the next day and resume where they left off? What if the question engine server crashed?&lt;br /&gt;
&lt;br /&gt;
To solve these problems, the question engine must guarantee that given a sequence of calls to start() and process() with exactly the same arguments, it will always return the same responses. The TMS should store all the information needed to recreate the sequence of calls it made on behalf of the student (that is, the question identity, the random seed, and the values submitted by students in each POST request). This means that if a question session is interrupted or lost, it can just be recreated.&lt;br /&gt;
&lt;br /&gt;
Question sessions are designed to improve performance since the question definition only has to be read and processed once per session. They should also make implementing question engines easier, since state does not have to be saved in persistent storage, and most languages designed for writing server-side applications have session handling mechanisms.&lt;br /&gt;
&lt;br /&gt;
If the TMS knows that a studnet has suspended thier attempt on a question (for example by navigating to a different question) it should call the stop() method to inform the question engine that that question session is no longer needed. The question enging may discard any question session that has been inactive for a period of time.&lt;br /&gt;
&lt;br /&gt;
===What happens in a typical attempt on a question===&lt;br /&gt;
&lt;br /&gt;
This diagram indicates a typical sequence of calls that happen when a student attempts a question.&lt;br /&gt;
&lt;br /&gt;
[[Image:OPAQUE_sequence_diagram.png]]&lt;br /&gt;
&lt;br /&gt;
==The Opaque data structures==&lt;br /&gt;
&lt;br /&gt;
These are documented in IDL (which I don&#039;t really understand, but I am familiar with it from other docs (e.g. http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/) and it is nicely language independent.)&lt;br /&gt;
&lt;br /&gt;
===StartReturn===&lt;br /&gt;
&lt;br /&gt;
 interface StartReturn {&lt;br /&gt;
   readonly attribute string questionSession;&lt;br /&gt;
   readonly attribute string XHTML;&lt;br /&gt;
   readonly attribute string CSS;&lt;br /&gt;
   readonly attribute string progressInfo;&lt;br /&gt;
   readonly attribute Resource[] resources;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Resource===&lt;br /&gt;
&lt;br /&gt;
 interface Resource {&lt;br /&gt;
   readonly attribute BLOB content;&lt;br /&gt;
   readonly attribute string encoding;&lt;br /&gt;
   readonly attribute string filename;&lt;br /&gt;
   readonly attribute string mimeType;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===ProcessReturn===&lt;br /&gt;
&lt;br /&gt;
 interface ProcessReturn {&lt;br /&gt;
   readonly attribute string XHTML;&lt;br /&gt;
   readonly attribute string CSS;&lt;br /&gt;
   readonly attribute string progressInfo;&lt;br /&gt;
   readonly attribute boolean questionEnd;&lt;br /&gt;
   readonly attribute Resource[] resources;&lt;br /&gt;
   readonly attribute Results questionLine;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===Results===&lt;br /&gt;
&lt;br /&gt;
 interface Results {&lt;br /&gt;
   readonly attribute string questionLine;&lt;br /&gt;
   readonly attribute string answerLine;&lt;br /&gt;
   readonly attribute string actionSummary;&lt;br /&gt;
   readonly attribute integer attempts;&lt;br /&gt;
   readonly attribute Map&amp;lt;string, float&amp;gt; scores;&lt;br /&gt;
   readonly attribute Map&amp;lt;string, string&amp;gt; customResults;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==The Opaque API methods==&lt;br /&gt;
&lt;br /&gt;
At the moment, I am unlikely to find time to document these in details. Sorry.&lt;br /&gt;
&lt;br /&gt;
===String getEngineInfo()===&lt;br /&gt;
&lt;br /&gt;
This returns some XML data as a string (byte array). The format of the response is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;engineinfo&amp;gt;&lt;br /&gt;
    &amp;lt;name&amp;gt;[question engine]&amp;lt;/name&amp;gt; &#039;&#039;&amp;lt;!-- Required --&amp;gt;&#039;&#039;&lt;br /&gt;
    &amp;lt;usedmemory&amp;gt;[&#039;123 bytes&#039; or &#039;45 KB&#039; or &#039;67 MB&#039;]&amp;lt;/usedmemory&amp;gt; &#039;&#039;&amp;lt;!-- Optional--&amp;gt;&#039;&#039;&lt;br /&gt;
    &amp;lt;activesessions&amp;gt;[Number of question sessions active]&amp;lt;/activesessions&amp;gt; &#039;&#039;&amp;lt;!-- Optional--&amp;gt;&#039;&#039;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/engineinfo&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This method is only ever used for system monitoring - that is to ask a question engine &amp;quot;are you still there?&amp;quot;. It is not essential to the functioning of the system.&lt;br /&gt;
&lt;br /&gt;
The tags inside the outer &amp;lt;engineinfo&amp;gt; tag may be in any order. Other tags may also be included.&lt;br /&gt;
&lt;br /&gt;
===String getQuestionMetadata(String questionID, String questionVersion, String questionBaseURL)===&lt;br /&gt;
&lt;br /&gt;
This returns a snipped of XML like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;questionmetadata&amp;gt; &lt;br /&gt;
  &amp;lt;scoring&amp;gt; &lt;br /&gt;
    &amp;lt;marks&amp;gt;3&amp;lt;/marks&amp;gt; &lt;br /&gt;
  &amp;lt;/scoring&amp;gt; &lt;br /&gt;
  &amp;lt;plainmode&amp;gt;yes&amp;lt;/plainmode&amp;gt; &lt;br /&gt;
&amp;lt;/questionmetadata&amp;gt; &lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The scoring section is basically giving the maximum score for the question, but because a question can report scores against different &#039;axes&#039;, this may be more complicated.&lt;br /&gt;
&lt;br /&gt;
plain mode is a feature of the OpenMark system designed to enhance accessibility. Since OpenMark use a lot of JavaScript and CSS which may not be accessible to some people, then every question should provide an alternative rendering using just plain HTML and standard from controls. When a student chooses to take a quiz in plain mode, they see the plain mode version of each question. However, not all questions provide a plain-mode version, in which case they should return ,plainmode&amp;gt;no&amp;lt;/plainmode&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===StartReturn start(String questionID, String questionVersion, String questionBaseURL, Map&amp;lt;String, String&amp;gt; initialParams, String[])===&lt;br /&gt;
&lt;br /&gt;
===ProcessReturn process(String questionSession, Map&amp;lt;String, String&amp;gt; response)===&lt;br /&gt;
&lt;br /&gt;
===stop(String questionSession)===&lt;br /&gt;
&lt;br /&gt;
==Opaque WSDL==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;wsdl:definitions targetNamespace=&amp;quot;http://om.open.ac.uk/&amp;quot; xmlns:apachesoap=&amp;quot;http://xml.apache.org/xml-soap&amp;quot; xmlns:impl=&amp;quot;http://om.open.ac.uk/&amp;quot; xmlns:intf=&amp;quot;http://om.open.ac.uk/&amp;quot; xmlns:soapenc=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; xmlns:wsdl=&amp;quot;http://schemas.xmlsoap.org/wsdl/&amp;quot; xmlns:wsdlsoap=&amp;quot;http://schemas.xmlsoap.org/wsdl/soap/&amp;quot; xmlns:xsd=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;wsdl:types&amp;gt;&lt;br /&gt;
  &amp;lt;schema targetNamespace=&amp;quot;http://om.open.ac.uk/&amp;quot; xmlns=&amp;quot;http://www.w3.org/2001/XMLSchema&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;import namespace=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;ArrayOf_soapenc_string&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;complexContent&amp;gt;&lt;br /&gt;
     &amp;lt;restriction base=&amp;quot;soapenc:Array&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;attribute ref=&amp;quot;soapenc:arrayType&amp;quot; wsdl:arrayType=&amp;quot;soapenc:string[]&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/restriction&amp;gt;&lt;br /&gt;
    &amp;lt;/complexContent&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;Resource&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;content&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:base64Binary&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;encoding&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;filename&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;mimeType&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;ArrayOfResource&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;complexContent&amp;gt;&lt;br /&gt;
     &amp;lt;restriction base=&amp;quot;soapenc:Array&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;attribute ref=&amp;quot;soapenc:arrayType&amp;quot; wsdl:arrayType=&amp;quot;impl:Resource[]&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/restriction&amp;gt;&lt;br /&gt;
    &amp;lt;/complexContent&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;StartReturn&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;CSS&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;XHTML&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;progressInfo&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;questionSession&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;resources&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;impl:ArrayOfResource&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence/&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;CustomResult&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;name&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;value&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;ArrayOfCustomResult&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;complexContent&amp;gt;&lt;br /&gt;
     &amp;lt;restriction base=&amp;quot;soapenc:Array&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;attribute ref=&amp;quot;soapenc:arrayType&amp;quot; wsdl:arrayType=&amp;quot;impl:CustomResult[]&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/restriction&amp;gt;&lt;br /&gt;
    &amp;lt;/complexContent&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;Score&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;axis&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;marks&amp;quot; type=&amp;quot;xsd:int&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;ArrayOfScore&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;complexContent&amp;gt;&lt;br /&gt;
     &amp;lt;restriction base=&amp;quot;soapenc:Array&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;attribute ref=&amp;quot;soapenc:arrayType&amp;quot; wsdl:arrayType=&amp;quot;impl:Score[]&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;/restriction&amp;gt;&lt;br /&gt;
    &amp;lt;/complexContent&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;Results&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;actionSummary&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;answerLine&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;attempts&amp;quot; type=&amp;quot;xsd:int&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;customResults&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;impl:ArrayOfCustomResult&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;questionLine&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;scores&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;impl:ArrayOfScore&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;complexType name=&amp;quot;ProcessReturn&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;sequence&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;CSS&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;XHTML&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;progressInfo&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;questionEnd&amp;quot; type=&amp;quot;xsd:boolean&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;resources&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;impl:ArrayOfResource&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;element name=&amp;quot;results&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;impl:Results&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/sequence&amp;gt;&lt;br /&gt;
   &amp;lt;/complexType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;/schema&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;/wsdl:types&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;getEngineInfoResponse&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;getEngineInfoReturn&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;processRequest&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionSession&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;names&amp;quot; type=&amp;quot;impl:ArrayOf_soapenc_string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;values&amp;quot; type=&amp;quot;impl:ArrayOf_soapenc_string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;getEngineInfoRequest&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;getQuestionMetadataResponse&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;getQuestionMetadataReturn&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;processResponse&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;processReturn&amp;quot; type=&amp;quot;impl:ProcessReturn&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;stopResponse&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;fault&amp;quot; type=&amp;quot;impl:OmException&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;startResponse&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;startReturn&amp;quot; type=&amp;quot;impl:StartReturn&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;stopRequest&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionSession&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;getQuestionMetadataRequest&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionID&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionVersion&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionBaseURL&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:message name=&amp;quot;startRequest&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionID&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionVersion&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;questionBaseURL&amp;quot; type=&amp;quot;soapenc:string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;initialParamNames&amp;quot; type=&amp;quot;impl:ArrayOf_soapenc_string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;initialParamValues&amp;quot; type=&amp;quot;impl:ArrayOf_soapenc_string&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:part name=&amp;quot;cachedResources&amp;quot; type=&amp;quot;impl:ArrayOf_soapenc_string&amp;quot;/&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:portType name=&amp;quot;OmService&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;start&amp;quot; parameterOrder=&amp;quot;questionID questionVersion questionBaseURL initialParamNames initialParamValues cachedResources&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input message=&amp;quot;impl:startRequest&amp;quot; name=&amp;quot;startRequest&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output message=&amp;quot;impl:startResponse&amp;quot; name=&amp;quot;startResponse&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault message=&amp;quot;impl:OmException&amp;quot; name=&amp;quot;OmException&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;stop&amp;quot; parameterOrder=&amp;quot;questionSession&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input message=&amp;quot;impl:stopRequest&amp;quot; name=&amp;quot;stopRequest&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output message=&amp;quot;impl:stopResponse&amp;quot; name=&amp;quot;stopResponse&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault message=&amp;quot;impl:OmException&amp;quot; name=&amp;quot;OmException&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;process&amp;quot; parameterOrder=&amp;quot;questionSession names values&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input message=&amp;quot;impl:processRequest&amp;quot; name=&amp;quot;processRequest&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output message=&amp;quot;impl:processResponse&amp;quot; name=&amp;quot;processResponse&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault message=&amp;quot;impl:OmException&amp;quot; name=&amp;quot;OmException&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;getEngineInfo&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input message=&amp;quot;impl:getEngineInfoRequest&amp;quot; name=&amp;quot;getEngineInfoRequest&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output message=&amp;quot;impl:getEngineInfoResponse&amp;quot; name=&amp;quot;getEngineInfoResponse&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;getQuestionMetadata&amp;quot; parameterOrder=&amp;quot;questionID questionVersion questionBaseURL&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input message=&amp;quot;impl:getQuestionMetadataRequest&amp;quot; name=&amp;quot;getQuestionMetadataRequest&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output message=&amp;quot;impl:getQuestionMetadataResponse&amp;quot; name=&amp;quot;getQuestionMetadataResponse&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault message=&amp;quot;impl:OmException&amp;quot; name=&amp;quot;OmException&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;/wsdl:portType&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:binding name=&amp;quot;OmSoapBinding&amp;quot; type=&amp;quot;impl:OmService&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdlsoap:binding style=&amp;quot;rpc&amp;quot; transport=&amp;quot;http://schemas.xmlsoap.org/soap/http&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;start&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:operation soapAction=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input name=&amp;quot;startRequest&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:input&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output name=&amp;quot;startResponse&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:output&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;wsdl:fault name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:fault encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; name=&amp;quot;OmException&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:fault&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;stop&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:operation soapAction=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input name=&amp;quot;stopRequest&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:input&amp;gt;&lt;br /&gt;
&lt;br /&gt;
         &amp;lt;wsdl:output name=&amp;quot;stopResponse&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:output&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:fault encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; name=&amp;quot;OmException&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:fault&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;process&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:operation soapAction=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input name=&amp;quot;processRequest&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:input&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output name=&amp;quot;processResponse&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:output&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:fault encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; name=&amp;quot;OmException&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:fault&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;getEngineInfo&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:operation soapAction=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input name=&amp;quot;getEngineInfoRequest&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:input&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output name=&amp;quot;getEngineInfoResponse&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:output&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;wsdl:operation name=&amp;quot;getQuestionMetadata&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:operation soapAction=&amp;quot;&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:input name=&amp;quot;getQuestionMetadataRequest&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:input&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:output name=&amp;quot;getQuestionMetadataResponse&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:body encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:output&amp;gt;&lt;br /&gt;
         &amp;lt;wsdl:fault name=&amp;quot;OmException&amp;quot;&amp;gt;&lt;br /&gt;
            &amp;lt;wsdlsoap:fault encodingStyle=&amp;quot;http://schemas.xmlsoap.org/soap/encoding/&amp;quot; name=&amp;quot;OmException&amp;quot; namespace=&amp;quot;http://om.open.ac.uk/&amp;quot; use=&amp;quot;encoded&amp;quot;/&amp;gt;&lt;br /&gt;
         &amp;lt;/wsdl:fault&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:operation&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;/wsdl:binding&amp;gt;&lt;br /&gt;
&lt;br /&gt;
   &amp;lt;wsdl:service name=&amp;quot;OmServiceService&amp;quot;&amp;gt;&lt;br /&gt;
      &amp;lt;wsdl:port binding=&amp;quot;impl:OmSoapBinding&amp;quot; name=&amp;quot;Om&amp;quot;&amp;gt;&lt;br /&gt;
         &amp;lt;wsdlsoap:address location=&amp;quot;http://kestrel.open.ac.uk/om-qe/services/Om&amp;quot;/&amp;gt;&lt;br /&gt;
      &amp;lt;/wsdl:port&amp;gt;&lt;br /&gt;
   &amp;lt;/wsdl:service&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/wsdl:definitions&amp;gt;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
-----&lt;br /&gt;
&lt;br /&gt;
See also:&lt;br /&gt;
* [[Opaque question type]] for instructions on installing and using the Moodle Opaque question type.&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|Open protocol ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Tracking_Moodle_CVS_with_git&amp;diff=63261</id>
		<title>Tracking Moodle CVS with git</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Tracking_Moodle_CVS_with_git&amp;diff=63261"/>
		<updated>2009-09-19T16:10:21Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Anyone got any experience with NetBeans and GIT? */ new section&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I am currently doing a bit of an overhaul of this page to remove obsolete coigto stuff - dont really see a reason why anyone would use it or want docs for it.--[[User:Dan Poltawski|Dan Poltawski]] 17:04, 1 October 2008 (CDT)&lt;br /&gt;
:Great! Thanks! --[[User:Eloy Lafuente (stronk7)|Eloy Lafuente (stronk7)]] 17:05, 1 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
== Mass merge ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;...If you are applying patches to CVS, you can then use git-cvsexportcommit or plain old patch -p1 filename...&amp;quot;&lt;br /&gt;
&lt;br /&gt;
can anybody please elaborate a bit? Provide and example? TIA --[[User:David Mudrak|David Mudrak]] 15:30, 18 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Anyone got any experience with NetBeans and GIT? ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started getting into CVS and am using netBeans. I like NetBeans so far and using the usual CVS seems to work OK. &lt;br /&gt;
&lt;br /&gt;
GIT seem to be &amp;quot;quite the rage&amp;quot; now. Now I&#039;m wondering should I try to get into that while I&#039;m still learning CVS? A google search reveals at least one plugin for GIT and NetBeans: NBgit.&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63211</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63211"/>
		<updated>2009-09-18T11:00:16Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Allow fraction type  2 1/2 as 2.5 */ link to wikipedia about intervals&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours. (o) or (_) is a radio button.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
Checking this would accept&lt;br /&gt;
 &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
calculation and gives a real number (which means in decimal format). &lt;br /&gt;
I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
answer forms that you allow. &lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
the same thing, and especially to accept well defined intervals.&lt;br /&gt;
&lt;br /&gt;
Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
adding new feedback for other answers.&lt;br /&gt;
&lt;br /&gt;
Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
value being able to use expressions like 1/3. &lt;br /&gt;
&lt;br /&gt;
(Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
0.333333333333333333333334 :-))&lt;br /&gt;
&lt;br /&gt;
[[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
formats that you accept as correct.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
 5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In the student question interface the answer box should:&lt;br /&gt;
   1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will &lt;br /&gt;
        usually want to answer the first question as his/her first option&lt;br /&gt;
        (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up at NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys&lt;br /&gt;
            for which targets. People that are really into this kind of thing can&lt;br /&gt;
            use &amp;quot;Mouseless Browsing&amp;quot; extension for FireFox)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpreted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
&lt;br /&gt;
Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
i.e. the round parentheses would mean that that boundary not included&lt;br /&gt;
in the [http://en.wikipedia.org/wiki/Interval_%28mathematics%29 interval]. The .. notation for an interval is already used in the GIFT format. &lt;br /&gt;
&lt;br /&gt;
Another useful possibility: that one could enter evaluation strings like&lt;br /&gt;
&#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
Answer 3: ...&lt;br /&gt;
Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
&lt;br /&gt;
The actual philosophy of units in the question at present (2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options==&lt;br /&gt;
&lt;br /&gt;
differentiated unit feedback, which is all of:&lt;br /&gt;
* If there is no SPACE between the number and unit &amp;quot;There should always be a space between the number and the unit, except for degree sign ° and other planal angle units.&amp;quot; &lt;br /&gt;
* translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
* feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
* feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
* feedback for &amp;quot;Unit not recognized, either misspelled, wrong type, or just not expected&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 (o) missed unit gives standard retry reduction of points&lt;br /&gt;
 (_)no reduction for missed unit&lt;br /&gt;
 (_)this reduction [___]  &lt;br /&gt;
&lt;br /&gt;
[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions] (#17  I don&#039;t understand. Otherwise a good collection of rules, at least about SI units. #16 is a rule that could be good to be able to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: [       ] (optional)===&lt;br /&gt;
&lt;br /&gt;
Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
where the ones enclosed in {} would be given feedback like&lt;br /&gt;
&#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Alternative Units: 	&lt;br /&gt;
 Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
&lt;br /&gt;
There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
&lt;br /&gt;
   alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented with similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a click-able link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) An easy reordering tool for alternative answers. It might be possible to have two models: &lt;br /&gt;
*Automatic based on grade for alternative. Because the question engine processes them in order it seems logical that alternative answer patterns that have higher points should be tested before others.&lt;br /&gt;
*BASIC numbering 10 20 30 40  so if I wanted 40 moved to between 20 and 30 I could change it to 25  &lt;br /&gt;
&lt;br /&gt;
5) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63210</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63210"/>
		<updated>2009-09-18T10:42:53Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Allow fraction type  2 1/2 as 2.5 */ point out .. for intervals in GIFT&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours. (o) or (_) is a radio button.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
Checking this would accept&lt;br /&gt;
 &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
calculation and gives a real number (which means in decimal format). &lt;br /&gt;
I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
answer forms that you allow. &lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
the same thing, and especially to accept well defined intervals.&lt;br /&gt;
&lt;br /&gt;
Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
adding new feedback for other answers.&lt;br /&gt;
&lt;br /&gt;
Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
value being able to use expressions like 1/3. &lt;br /&gt;
&lt;br /&gt;
(Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
0.333333333333333333333334 :-))&lt;br /&gt;
&lt;br /&gt;
[[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
formats that you accept as correct.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
 5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In the student question interface the answer box should:&lt;br /&gt;
   1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will &lt;br /&gt;
        usually want to answer the first question as his/her first option&lt;br /&gt;
        (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up at NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys&lt;br /&gt;
            for which targets. People that are really into this kind of thing can&lt;br /&gt;
            use &amp;quot;Mouseless Browsing&amp;quot; extension for FireFox)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpreted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
&lt;br /&gt;
Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
i.e. the round parentheses would mean that that boundary not included&lt;br /&gt;
in the interval. The .. notation for an interval is already used in the GIFT format. &lt;br /&gt;
&lt;br /&gt;
Another useful possibility: that one could enter evaluation strings like&lt;br /&gt;
&#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
Answer 3: ...&lt;br /&gt;
Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
&lt;br /&gt;
The actual philosophy of units in the question at present (2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options==&lt;br /&gt;
&lt;br /&gt;
differentiated unit feedback, which is all of:&lt;br /&gt;
* If there is no SPACE between the number and unit &amp;quot;There should always be a space between the number and the unit, except for degree sign ° and other planal angle units.&amp;quot; &lt;br /&gt;
* translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
* feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
* feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
* feedback for &amp;quot;Unit not recognized, either misspelled, wrong type, or just not expected&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 (o) missed unit gives standard retry reduction of points&lt;br /&gt;
 (_)no reduction for missed unit&lt;br /&gt;
 (_)this reduction [___]  &lt;br /&gt;
&lt;br /&gt;
[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions] (#17  I don&#039;t understand. Otherwise a good collection of rules, at least about SI units. #16 is a rule that could be good to be able to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: [       ] (optional)===&lt;br /&gt;
&lt;br /&gt;
Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
where the ones enclosed in {} would be given feedback like&lt;br /&gt;
&#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Alternative Units: 	&lt;br /&gt;
 Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
&lt;br /&gt;
There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
&lt;br /&gt;
   alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented with similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a click-able link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) An easy reordering tool for alternative answers. It might be possible to have two models: &lt;br /&gt;
*Automatic based on grade for alternative. Because the question engine processes them in order it seems logical that alternative answer patterns that have higher points should be tested before others.&lt;br /&gt;
*BASIC numbering 10 20 30 40  so if I wanted 40 moved to between 20 and 30 I could change it to 25  &lt;br /&gt;
&lt;br /&gt;
5) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63209</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=63209"/>
		<updated>2009-09-18T10:37:37Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* options for all [maybe?] questiontypes (including numerical): */ easy reordering of alternative answers&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours. (o) or (_) is a radio button.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
Checking this would accept&lt;br /&gt;
 &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
calculation and gives a real number (which means in decimal format). &lt;br /&gt;
I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
answer forms that you allow. &lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
the same thing, and especially to accept well defined intervals.&lt;br /&gt;
&lt;br /&gt;
Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
adding new feedback for other answers.&lt;br /&gt;
&lt;br /&gt;
Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
value being able to use expressions like 1/3. &lt;br /&gt;
&lt;br /&gt;
(Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
0.333333333333333333333334 :-))&lt;br /&gt;
&lt;br /&gt;
[[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
formats that you accept as correct.&lt;br /&gt;
&lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
[[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
 5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
In the student question interface the answer box should:&lt;br /&gt;
   1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will &lt;br /&gt;
        usually want to answer the first question as his/her first option&lt;br /&gt;
        (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up at NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys&lt;br /&gt;
            for which targets. People that are really into this kind of thing can&lt;br /&gt;
            use &amp;quot;Mouseless Browsing&amp;quot; extension for FireFox)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpreted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
&lt;br /&gt;
Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
i.e. the round parentheses would mean that boundary not included&lt;br /&gt;
in the intervall or that one could enter evaluation strings like&lt;br /&gt;
&#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
&#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
Answer 3: ...&lt;br /&gt;
Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
&lt;br /&gt;
The actual philosophy of units in the question at present (2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options==&lt;br /&gt;
&lt;br /&gt;
differentiated unit feedback, which is all of:&lt;br /&gt;
* If there is no SPACE between the number and unit &amp;quot;There should always be a space between the number and the unit, except for degree sign ° and other planal angle units.&amp;quot; &lt;br /&gt;
* translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
* feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
* feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
* feedback for &amp;quot;Unit not recognized, either misspelled, wrong type, or just not expected&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 (o) missed unit gives standard retry reduction of points&lt;br /&gt;
 (_)no reduction for missed unit&lt;br /&gt;
 (_)this reduction [___]  &lt;br /&gt;
&lt;br /&gt;
[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions] (#17  I don&#039;t understand. Otherwise a good collection of rules, at least about SI units. #16 is a rule that could be good to be able to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: [       ] (optional)===&lt;br /&gt;
&lt;br /&gt;
Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
where the ones enclosed in {} would be given feedback like&lt;br /&gt;
&#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
&lt;br /&gt;
Alternative Units: 	&lt;br /&gt;
 Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
&lt;br /&gt;
There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
&lt;br /&gt;
   alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented with similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a click-able link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) An easy reordering tool for alternative answers. It might be possible to have two models: &lt;br /&gt;
*Automatic based on grade for alternative. Because the question engine processes them in order it seems logical that alternative answer patterns that have higher points should be tested before others.&lt;br /&gt;
*BASIC numbering 10 20 30 40  so if I wanted 40 moved to between 20 and 30 I could change it to 25  &lt;br /&gt;
&lt;br /&gt;
5) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=63208</id>
		<title>GIFT format</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=GIFT_format&amp;diff=63208"/>
		<updated>2009-09-18T10:25:23Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Hints and Tips */ added about possibily to specify category and format markup&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GIFT format allows someone to use a text editor to write multiple-choice, true-false, short answer, matching  missing word and numerical questions in a simple format than can be imported. The GIFT format is also an export file format available in Question bank.&lt;br /&gt;
&lt;br /&gt;
*When creating a large numbers of questions, GIFT can provide a quick way of bulk loading questions either into a [[Question bank|question category]], or into a [[Adding_a_question_page#Importing_questions|Lesson]]. &lt;br /&gt;
*Sometimes it is easier proofing questions in a question category by viewing them in a GIFT file.&lt;br /&gt;
&lt;br /&gt;
==General instructions==&lt;br /&gt;
At least one blank line must be left between each question. &lt;br /&gt;
&lt;br /&gt;
In the simple form, the question comes first, then the answers are set in between brackets, with an equal sign indicating the correct answer(s) and tilde the wrong answers.  A Number sign will insert a response.  Questions can be weighted by placing percentage signs around the weight.  Comments are preceded by double slashes and are not imported.  &lt;br /&gt;
&lt;br /&gt;
Here are some useful [http://moodle.org/file.php/5/moddata/forum/121/236161/GIFT-examples.zip GIFT examples] than can be imported or used as rough template.  Many of the examples below used the questions in the file as a starting point.&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;TIP:&#039;&#039; Any GIFT file &#039;&#039;&#039;must&#039;&#039;&#039; be correctly encoded in [[UTF8]]. Beware of some of Microsoft&#039;s &amp;quot;fake&amp;quot; Unicode implementation which is not compatible and may result in strange characters appearing in your quizzes.  When in doubt, save as a simple MS-DOS text file.&lt;br /&gt;
&lt;br /&gt;
===Format symbols===&lt;br /&gt;
Here are some common GIFT symbols and their use.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!width=&amp;quot;40&amp;quot; |Symbol&lt;br /&gt;
!width=&amp;quot;100&amp;quot;|Use&lt;br /&gt;
!width=&amp;quot;40&amp;quot;|Symbol&lt;br /&gt;
!width=&amp;quot;100&amp;quot;|Use&lt;br /&gt;
!width=&amp;quot;40&amp;quot;|Symbol&lt;br /&gt;
!width=&amp;quot;100&amp;quot;|Use&lt;br /&gt;
!width=&amp;quot;40&amp;quot;|Symbol&lt;br /&gt;
!width=&amp;quot;100&amp;quot;|Use&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;b&amp;gt;//&amp;lt;/b&amp;gt;|| Comment ||&amp;lt;b&amp;gt;::&amp;lt;/b&amp;gt;Title&amp;lt;b&amp;gt;::&amp;lt;/b&amp;gt;||Title || &amp;lt;b&amp;gt;{&amp;lt;/b&amp;gt; || Start answer||&amp;lt;b&amp;gt; }&amp;lt;/b&amp;gt; ||After last answer&lt;br /&gt;
|-&lt;br /&gt;
||&amp;lt;b&amp;gt;= &amp;lt;/b&amp;gt;|| Correct answer || &amp;lt;b&amp;gt;#&amp;lt;/b&amp;gt; ||Answer feedback / comment|| &amp;lt;b&amp;gt;{#&amp;lt;/b&amp;gt; ||Numeric question start || &amp;lt;b&amp;gt;:&amp;lt;/b&amp;gt; || range in numeric question&lt;br /&gt;
|-&lt;br /&gt;
|| &amp;lt;b&amp;gt;~ &amp;lt;/b&amp;gt;  || Wrong answer  || &amp;lt;b&amp;gt;-&amp;gt;&amp;lt;/b&amp;gt;  || Match  ||&amp;lt;b&amp;gt;%&amp;lt;/b&amp;gt;50&amp;lt;b&amp;gt;%&amp;lt;/b&amp;gt; || Weight 50%  || || &lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Format symbols explained===&lt;br /&gt;
The multiple choice format below as a comment line // for the question, when Moodle exports it the question unique id number will appear here.  The first set of  :: precedes the question title. The second :: precedes the actual question. The first { indicates the start of the answers.  The correct answer is preceded by an = sign and wrong answers by a ~.  Teacher responses have a # in front of them.  The question ends with a } and then a blank line. NOTE it is { } not ( ) parenthesis! Usually these are gotten with help of the [AltGr] key.&lt;br /&gt;
&lt;br /&gt;
 //Comment line &lt;br /&gt;
 ::Question title &lt;br /&gt;
 :: Question {&lt;br /&gt;
 =A correct answer&lt;br /&gt;
 ~Wrong answer1&lt;br /&gt;
 #A response to wrong answer1&lt;br /&gt;
 ~Wrong answer2&lt;br /&gt;
 #A response to wrong answer2&lt;br /&gt;
 ~Wrong answer3&lt;br /&gt;
 #A response to wrong answer3&lt;br /&gt;
 ~Wrong answer4&lt;br /&gt;
 #A response to wrong answer4&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The shortest format for a multiple choice question is:&lt;br /&gt;
 Question{= A Correct Answer ~Wrong answer1 ~Wrong answer2 ~Wrong answer3 ~Wrong answer4 }&lt;br /&gt;
&lt;br /&gt;
:&#039;&#039;Tip:&#039;&#039; If you don&#039;t specify a question title the WHOLE question will be used as the title at the time of import into Moodle. There are pros and cons to allowing this to happen. Cons: This can add a lot of unnecessary words. This can include characters which might confuse the export GIFT process.  Pros: On the other hand. if the start of each question is different, it can make finding a single question easier in a category list of questions. It will save you typing.  Having the same title for every question is a very bad idea.&lt;br /&gt;
&lt;br /&gt;
==Question format examples==&lt;br /&gt;
There are several ways to use a text editor to write a GIFT format.  We will try to show the simple version for example and in some formats we will introduce some more complex features that can be imported into many Moodle Question formats.  &lt;br /&gt;
&lt;br /&gt;
===Multiple choice===&lt;br /&gt;
Here is a simple acceptable GIFT multiple choice format:&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant ~no one ~Napoleon ~Churchill ~Mother Teresa }&lt;br /&gt;
&lt;br /&gt;
Here is a longer format that uses most of the GIFT elements:&lt;br /&gt;
&lt;br /&gt;
  // question: 1 name: Grants tomb&lt;br /&gt;
 ::Grants tomb::Who is buried in Grant&#039;s tomb in New York City? {&lt;br /&gt;
 =Grant&lt;br /&gt;
 ~No one&lt;br /&gt;
 #Was true for 12 years, but Grant&#039;s remains were buried in the tomb in 1897&lt;br /&gt;
 ~Napoleon&lt;br /&gt;
 #He was buried in France&lt;br /&gt;
 ~Churchill&lt;br /&gt;
 #He was buried in England&lt;br /&gt;
 ~Mother Teresa&lt;br /&gt;
 #She was buried in India&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
===True-false===&lt;br /&gt;
&lt;br /&gt;
 // question: 0 name: TrueStatement&lt;br /&gt;
 ::TrueStatement about Grant::Grant was buried in a tomb in New York City.{T}&lt;br /&gt;
&lt;br /&gt;
===Short answer===&lt;br /&gt;
Here are two examples using the simple method showing possible right answers for credit.&lt;br /&gt;
 Who&#039;s buried in Grant&#039;s tomb?{=Grant =Ulysses S. Grant =Ulysses Grant}&lt;br /&gt;
&lt;br /&gt;
 Two plus two equals {=four =4}&lt;br /&gt;
&lt;br /&gt;
===Matching===&lt;br /&gt;
The matching uses the equal sign before the list item with a -&amp;gt; (dash and greater than) before the correct match.&lt;br /&gt;
 &lt;br /&gt;
 Match the following countries with their corresponding capitals. {&lt;br /&gt;
    =Canada -&amp;gt; Ottawa&lt;br /&gt;
    =Italy  -&amp;gt; Rome&lt;br /&gt;
    =Japan  -&amp;gt; Tokyo&lt;br /&gt;
    =India  -&amp;gt; New Delhi&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
===Missing word===&lt;br /&gt;
This is a simple missing word format&lt;br /&gt;
 Grant {~is not buried =is buried ~might be buried} in Grant&#039;s tomb.&lt;br /&gt;
&lt;br /&gt;
===Numerical questions===&lt;br /&gt;
Here is a simple numerical format question. It will accept a range of 5 years.&lt;br /&gt;
 When was Ulysses S. Grant born?{#1822:5}&lt;br /&gt;
&lt;br /&gt;
Here is a more complex numerical format with a ranged and partial credit given for 1 answer.&lt;br /&gt;
 //this comment will be ignored in the import process &lt;br /&gt;
 ::Numerical example::&lt;br /&gt;
 When was Ulysses S. Grant born? {#&lt;br /&gt;
     =1822:0      #Correct!  you will get full credit for this answer&lt;br /&gt;
     =%50%1822:2  #He was born in 1822.&lt;br /&gt;
                  You get 50% credit for being close.&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
==Hints and Tips==&lt;br /&gt;
&lt;br /&gt;
* Use the ::title:: at the beginning of every question to organize this for you (01 - testquestion), otherwise it would be difficult to find the right question for changes, moodle will take the beginning of every question as internal title.&lt;br /&gt;
* You can specify which question category the following questions will be in with&lt;br /&gt;
   $CATEGORY: myParentCat/myCategory &lt;br /&gt;
(that line must be preceded and followed by an empty line. See more about this in the reference pdf below.&lt;br /&gt;
* You can specify markup if you need to format the question by setting [html], [moodle], [plain] or [markdown] just before the question text. See more about this in the reference pdf below.&lt;br /&gt;
* In the Lesson module, in a question page, correct answers jump by default to Next page and incorrect answers jump to This page (i.e. student has to &amp;quot;try again&amp;quot;). When importing from a GIFT format file, this is exactly the mechanism which is used.&lt;br /&gt;
* If you want a student to be taken directly from one question to the next irrespective of their answer being correct or incorrect: in the Lesson Settings, set Maximum number of attempts: to 1. &lt;br /&gt;
**Please note, however, that a message &amp;quot;correct / incorrect&amp;quot; will still be displayed to the student upon answering each question. If you do not want this (default) feedback message to be displayed then enter your own feedback message (i.e. &amp;quot;continue&amp;quot;, &amp;quot;---&amp;quot;, etc.) &lt;br /&gt;
**In case you want no visible message displayed then enter a non-breaking space as feedback. Moodle will not put it&#039;s automatic response because it sees the blank space. To do this, put a # after the answer and write [[Image:Nbsp.png]] (without spaces between these characters). &lt;br /&gt;
* Need to use a special GIFT character in your question or answer?  Put a \ in front of the GIFT character.  &lt;br /&gt;
**For example if you want to use curly braces, { or }, or equal sign, =, or # or ~ in a GIFT file (in a math question including TeX expressions) you must &amp;quot;escape&amp;quot; them by preceding them with a \ directly in front of each { or } or =. It is possible to use a replace program/macro/editor filter to do this conversion before importing to Moodle.&lt;br /&gt;
* Want to change T/F type questions to multiple choice? Consider exporting the T/F questions as a GIFT file, then using a text editor to replace the (T) with (=True ~False). Perhaps change the title slightly so you will recognize the new questions.&lt;br /&gt;
&lt;br /&gt;
==Word processors and Spreadsheets tools that create GIFTs==&lt;br /&gt;
Several contributors have used macros to generate GIFT files from a more familiar popular programs.   &lt;br /&gt;
* There are Word macros available for easily creating GIFT files. See [http://www.soberit.hut.fi/sprg/resources/moodle/GiftConverter.html this non-Moodle site] for downloads and instructions for use.&lt;br /&gt;
* There are several Excel spreadsheets for generating GIFT files. Several people have built upon other contributors work.  &lt;br /&gt;
**The latest version was posted on 10 April 2007 and can be found in this thread with this file name: [http://moodle.org/mod/forum/discuss.php?d=66660 Excel2GIFTv1.1.zip by Timothy Takemoto].  There is also a set of instructions Excel2GIFTv1.1_Instructions.rtf by Jeff Shek on the same day in that thread.&lt;br /&gt;
**An earlier version of this Excel spreadsheet for generating multiple choice GIFT files [http://moodle.org/mod/forum/discuss.php?d=45245 initially created by Olga Forlani and improved by A. T. Wyatt].&lt;br /&gt;
*There are Open Office templates for generating GIFT files in Writer.  These are located in the Quiz forum in the[http://moodle.org/mod/forum/discuss.php?d=20705&amp;amp;parent=168385 OOo template to write exams and convert to GIFT format thread].&lt;br /&gt;
**The most recent for OO 2.x is &amp;quot;OOo2GIFT_Template_05.zip&amp;quot; postes 17 December 2005 by Enrique Castro.&lt;br /&gt;
**An earlier version is &amp;quot;GIFT_template_OOo.zip&amp;quot; posted 22 March 2005 by Enrique Castro.&lt;br /&gt;
*There is an easy to use on line multiple question generator at [http://a4esl.org/c/qw.html  a4esl.org]. Here you write your question(s) without formating marks, select Moodle and press the generate quiz button.  This creates GIFT formatted text that can be pasted into a file for importing into Moodle.&lt;br /&gt;
**The initial format requires fewer keystrokes (it uses line position and returns) than the GIFT format, so you should save time and be less likely to create invalid data.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Here is a 2-column [http://buypct.com/gift_reference.pdf GIFT Reference Sheet]&lt;br /&gt;
*[[Export questions]]&lt;br /&gt;
*[[Import questions]]&lt;br /&gt;
*[[Import and export FAQ]]&lt;br /&gt;
*[[Aiken Format]]&lt;br /&gt;
*[[Moodle XML format]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Questions]]&lt;br /&gt;
&lt;br /&gt;
[[de:GIFT]]&lt;br /&gt;
[[fr:Format GIFT]]&lt;br /&gt;
[[ja:GIFTフォーマット]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62912</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62912"/>
		<updated>2009-09-11T07:27:34Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Allow fraction type  2 1/2 as 2.5 */ shortened some lines, spelling correction, mouseless browsing&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
  Checking this would accept  &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
 calculation and gives a real number (which means in decimal format). &lt;br /&gt;
 I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
 answer forms that you allow. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
 To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
 answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
 used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
 the same thing, and especially to accept well defined intervals.&lt;br /&gt;
 Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
 than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
 statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
 adding new feedback for other answers.&lt;br /&gt;
 Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
 as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
 value being able to use expressions like 1/3. &lt;br /&gt;
 (Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
 0.333333333333333333333334 :-))&lt;br /&gt;
 [[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
 If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
 is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
 formats that you accept as correct.&lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
 But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
 intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
 while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
 I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
 This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
 Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
 i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  In the student question interface the answer box should:&lt;br /&gt;
  1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will &lt;br /&gt;
        usually want to answer the first question as his/her first option&lt;br /&gt;
        (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up at NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys&lt;br /&gt;
            for which targets. People that are really into this kind of thing can&lt;br /&gt;
            use &amp;quot;Mouseless Browsing&amp;quot; extension for FireFox)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpreted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
  Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
   i.e. the round parentheses would mean that boundary not included&lt;br /&gt;
   in the intervall or that one could enter evaluation strings like&lt;br /&gt;
  &#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
  100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 Answer 3: ...&lt;br /&gt;
 Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
 Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
The actual philosophy of units in the question at present (-2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options===&lt;br /&gt;
  differentiated unit feedback, which is all of:&lt;br /&gt;
           If there is no SPACE between the number and unit &amp;quot;There should always be a&lt;br /&gt;
                space between the number and the unit, except for degree sign ° and&lt;br /&gt;
                other planal angle units.&amp;quot; &lt;br /&gt;
           translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
           feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
           feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
           feedback for &amp;quot;Unit not recognized, either misspelled, wrong type,&lt;br /&gt;
               or just not expected&amp;quot;&lt;br /&gt;
          (o) missed unit gives standard retry reduction of points (_)no reduction &lt;br /&gt;
               for missed unit (_)this reduction [___]  &lt;br /&gt;
          [[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions]] (#17  I don&#039;t&lt;br /&gt;
           understand. Otherwise a good collection of rules, at least about SI units.&lt;br /&gt;
           #16 is a rule that could be good to be able to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: 	[       ] (optional)===&lt;br /&gt;
  Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
  where the ones enclosed in {} would be given feedback like&lt;br /&gt;
   &#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
    mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
    m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
	Alternative Units: 	&lt;br /&gt;
	Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
 There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
 Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
   &#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
   before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
     alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented witn similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a clickable link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62743</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62743"/>
		<updated>2009-09-09T16:00:05Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Unit feedback options= */ small spelling misstakes-checked the link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
  Checking this would accept  &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
 calculation and gives a real number (which means in decimal format). &lt;br /&gt;
 I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
 answer forms that you allow. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
 To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
 answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
 used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
 the same thing, and especially to accept well defined intervals.&lt;br /&gt;
 Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
 than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
 statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
 adding new feedback for other answers.&lt;br /&gt;
 Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
 as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
 value being able to use expressions like 1/3. &lt;br /&gt;
 (Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
 0.333333333333333333333334 :-))&lt;br /&gt;
 [[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
 If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
 is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
 formats that you accept as correct.&lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
 But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
 intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
 while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
 I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
 This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
 Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
 i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  In the student question interface the answer box should:&lt;br /&gt;
  1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will usually want to &lt;br /&gt;
        answer the first question as his/her first option (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up att NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys for which targets)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpretted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
  Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
   i.e. the round parentheses would mean that boundary not included in intervall&lt;br /&gt;
  or that one could enter evaluation strings like&lt;br /&gt;
  &#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
  100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 Answer 3: ...&lt;br /&gt;
 Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
 Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
The actual philosophy of units in the question at present (-2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options===&lt;br /&gt;
  differentiated unit feedback, which is all of:&lt;br /&gt;
           If there is no SPACE between the number and unit &amp;quot;There should always be a&lt;br /&gt;
                space between the number and the unit, except for degree sign ° and&lt;br /&gt;
                other planal angle units.&amp;quot; &lt;br /&gt;
           translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
           feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
           feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
           feedback for &amp;quot;Unit not recognized, either misspelled, wrong type,&lt;br /&gt;
               or just not expected&amp;quot;&lt;br /&gt;
          (o) missed unit gives standard retry reduction of points (_)no reduction &lt;br /&gt;
               for missed unit (_)this reduction [___]  &lt;br /&gt;
          [[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions]] (#17  I don&#039;t&lt;br /&gt;
           understand. Otherwise a good collection of rules, at least about SI units.&lt;br /&gt;
           #16 is a rule that could be good to be able to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: 	[       ] (optional)===&lt;br /&gt;
  Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
  where the ones enclosed in {} would be given feedback like&lt;br /&gt;
   &#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
    mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
    m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
	Alternative Units: 	&lt;br /&gt;
	Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
 There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
 Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
   &#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
   before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
     alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented witn similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a clickable link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=62034</id>
		<title>Multi-language content filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=62034"/>
		<updated>2009-08-24T08:10:08Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Tips and tricks */ (all too brief) about the lang dropdown in HTML editor&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi-language content filter enables resources to be created in multiple languages. When turned on, it looks for &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt; tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.&lt;br /&gt;
&lt;br /&gt;
The multilang syntax was changed in 1.8. &amp;lt;nowiki&amp;gt;&amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; is not supported any more. It is required to add &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; into each &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt; tag in multilang block. The new syntax is backwards compatible with old plugins, which means it can be used in older Moodle version.&lt;br /&gt;
&lt;br /&gt;
== How to use in a course ==&lt;br /&gt;
&lt;br /&gt;
To use this feature first create your contents in multiple languages (in the same resource). Then enclose each language block (aka multilang block) in the following tags:&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;XX&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is essential to be in &#039;&#039;&#039;the code editing mode&#039;&#039;&#039; (press &amp;lt;nowiki&amp;gt;[&amp;lt;&amp;gt;]&amp;lt;/nowiki&amp;gt; in the HTML editor), when you enter these tags for them to work. Only spaces, tabs and enters can be used between the individual languages in the multilang block. Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to 1.8. There is a lang drop-down markup tool in the HTML editor in later versions of Moodle. The first versions, at least to 1.8.2, do not make &amp;quot;multilang&amp;quot; language tags. If you are working in a sufficiently new version of the HTML editor you can add these tags without going to the code editing mode.  If something doesn&#039;t work properly you should check how the markup looks in code mode. &lt;br /&gt;
&lt;br /&gt;
Following code&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
does NOT work.&lt;br /&gt;
&lt;br /&gt;
The obsoleted HTML tagging&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
will not work in 1.8 and later. In 1.8 the lang attribute without &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; can be used to mark the language of the text - see http://www.w3.org/TR/html4/struct/dirlang.html&lt;br /&gt;
&lt;br /&gt;
== How it works internally ==&lt;br /&gt;
&lt;br /&gt;
# Filter first looks for &#039;&#039;multilang blocks&#039;&#039; in the text&lt;br /&gt;
# For each multilang block:&lt;br /&gt;
#* If there are texts in the currently active language, print them&lt;br /&gt;
#* Else, if there exists texts in the current parent language, print them&lt;br /&gt;
#* Else, print the first language found in the text&lt;br /&gt;
# Text outside of multilang blocks will be shown always&lt;br /&gt;
&lt;br /&gt;
==Course summary and title tags==&lt;br /&gt;
&lt;br /&gt;
To be able to change text such as resource titles and summaries, an administrator must choose &#039;&#039;Filter all strings&#039;&#039; in the site administration.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematically&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematiskt (svenska)&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
functions as English or Swedish title.&lt;br /&gt;
&lt;br /&gt;
It doesn&#039;t work for course titles and site names (neither long nor short version) in some versions of Moodle. At least from 1.8.2 long course titles and site name, both full and breadcrumb were multilang filtered.  &lt;br /&gt;
&lt;br /&gt;
In the course summary:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Growth is often a major concern in planning society.&lt;br /&gt;
 How can one avoid superficial conclusions? &amp;lt;br&amp;gt;&lt;br /&gt;
(Exists in Swedish too. Finns på svenska också)&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Tillväxt är ofta använt i samhällsdebatten. &lt;br /&gt;
Hur kan man undvika ytliga slutsatser? &lt;br /&gt;
 (Finns på engelska också. Exists in English too.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can show in the chosen language (and point out that the other language is there). Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to Moodle 1.8.&lt;br /&gt;
&lt;br /&gt;
== Translations with tags == &lt;br /&gt;
If you wish to translate a word or phrase in an English text to another language:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text &lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation&lt;br /&gt;
 in a running text can I do it? &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation (sv:&lt;br /&gt;
 förklaring) in a running text can I do it?&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would both work, but not:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text&lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;&lt;br /&gt;
 (sv: förklaring)&amp;lt;/span&amp;gt; in a running text can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
which would show the Swedish even if English was the chosen language. NOTE that before 1.8 the &amp;quot;span lang=en&amp;quot; must contain something, at least a space.&lt;br /&gt;
&lt;br /&gt;
== New multilang syntax ==&lt;br /&gt;
{{Moodle 1.8}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot;&amp;gt; and &amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; should not be used anymore&lt;br /&gt;
* Existing content can be upgraded using the admin/multilangupgrade.php script, there is a link in the admin notification page if a multilang upgrade is required.&lt;br /&gt;
* The multilang filter can be configured to use old syntax only - see &#039;&#039;Multi-Language Content Settings&#039;&#039;; this setting may be removed in 1.9&lt;br /&gt;
* New syntax is forced during a new 1.8 installation, for upgraded sites the new syntax is enabled after the multilang upgrade&lt;br /&gt;
&lt;br /&gt;
== Common problems ==&lt;br /&gt;
&lt;br /&gt;
* The multilang filter is not enabled. The administrator for the Moodle site you are using must go to Site administration&amp;gt; modules&amp;gt; Multilanguage Content and enable it (by clicking on the &amp;quot;eye&amp;quot;)&lt;br /&gt;
* &#039;&#039;Filter all strings&#039;&#039; not enabled on sites that need multilang in titles, navigation, headings, etc.  The administrator for the Moodle site you are using must go to Site administration&amp;gt; appearance&amp;gt; Filter settings and set a check in &amp;quot;filter alll strings&amp;quot;. This will increase server load slightly, so don&#039;t do it unless you really need it.&lt;br /&gt;
* Extra characters between language span tags - editor might add &amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt; or other tags, please review the html in source view&lt;br /&gt;
* If the course setting is &amp;quot;force&amp;quot; some language, you won&#039;t be able to change the displayed language.&lt;br /&gt;
* Extra spaces in language span tag&lt;br /&gt;
* Can not easily access language choice dropdown! Unfortunately you must go to the site homepage or your own profile to change the displayed language. Want a change? see [http://tracker.moodle.org/browse/MDL-11531 MDL-11531]. It is possible to manually quickly change displayed lang by editing the URL in the browsers address bar. See Tips and tricks below!&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks== &lt;br /&gt;
===Lang dropdown in HTML editor===&lt;br /&gt;
In later versions of Moodle there is a lang dropdown in the HTML editor that can be used to do multilang markup. You may have to go to the &amp;quot;edit source&amp;quot; mode (with the [&#039;&#039;&#039;&amp;lt;&amp;gt;&#039;&#039;&#039;] button) to check, and maybe correct, how things turned out. &lt;br /&gt;
===Changing language displayed without going to front page===&lt;br /&gt;
It is possible to change the displayed language by manually changing the link.  &lt;br /&gt;
*Here is the default language page at id=2306. This link is in English, the default language:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&lt;br /&gt;
*The link to change the page display to Spanish is&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=es ,&lt;br /&gt;
*When the default language is an other language, to change the page to an English version, the link would be:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=en&lt;br /&gt;
&lt;br /&gt;
Thusly, with a bit of editing, you can manually change the displayed language by adding &amp;quot;&amp;amp;lang=xx&amp;quot; to the URL in the location bar of the browser. Where xx is the abbreviation for the language you want.&lt;br /&gt;
&lt;br /&gt;
===Bandwidth-adaptivity===&lt;br /&gt;
One inventive fellow has made a hack to use the multilang filter to be able to adapt the sent content to a users chosen bandwidth. Especiallly international courses can have users with extremely varied Internet connection speeds and this can allow them to chose what level of content (Low = text and small pictures, medium = some mp3, high = some video and other heavy stuff) suits them. &lt;br /&gt;
[http://paaralan.blogspot.com/2009/08/hack-bandwidth-adaptivity-for-moodle.html the blog with description and downloads]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Filters|Filters administration]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=51603 Multilanguage filter - does not work ...]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74340 Problems with multilang filter and SPAN tags]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=94006 Multilingual Content]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=95134 Multilingual VS HTML editor]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Filter]]&lt;br /&gt;
&lt;br /&gt;
[[es:Filtros (Administrador)]]&lt;br /&gt;
[[fr:Contenu multilingue]]&lt;br /&gt;
[[ja:多言語シンタックス]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=62024</id>
		<title>Multi-language content filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=62024"/>
		<updated>2009-08-24T07:40:49Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Tips and tricks */ hack for bandwidth link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi-language content filter enables resources to be created in multiple languages. When turned on, it looks for &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt; tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.&lt;br /&gt;
&lt;br /&gt;
The multilang syntax was changed in 1.8. &amp;lt;nowiki&amp;gt;&amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; is not supported any more. It is required to add &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; into each &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt; tag in multilang block. The new syntax is backwards compatible with old plugins, which means it can be used in older Moodle version.&lt;br /&gt;
&lt;br /&gt;
== How to use in a course ==&lt;br /&gt;
&lt;br /&gt;
To use this feature first create your contents in multiple languages (in the same resource). Then enclose each language block (aka multilang block) in the following tags:&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;XX&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is essential to be in &#039;&#039;&#039;the code editing mode&#039;&#039;&#039; (press &amp;lt;nowiki&amp;gt;[&amp;lt;&amp;gt;]&amp;lt;/nowiki&amp;gt; in the HTML editor), when you enter these tags for them to work. Only spaces, tabs and enters can be used between the individual languages in the multilang block. Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to 1.8. There is a lang drop-down markup tool in the HTML editor in later versions of Moodle. The first versions, at least to 1.8.2, do not make &amp;quot;multilang&amp;quot; language tags. If you are working in a sufficiently new version of the HTML editor you can add these tags without going to the code editing mode.  If something doesn&#039;t work properly you should check how the markup looks in code mode. &lt;br /&gt;
&lt;br /&gt;
Following code&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
does NOT work.&lt;br /&gt;
&lt;br /&gt;
The obsoleted HTML tagging&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
will not work in 1.8 and later. In 1.8 the lang attribute without &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; can be used to mark the language of the text - see http://www.w3.org/TR/html4/struct/dirlang.html&lt;br /&gt;
&lt;br /&gt;
== How it works internally ==&lt;br /&gt;
&lt;br /&gt;
# Filter first looks for &#039;&#039;multilang blocks&#039;&#039; in the text&lt;br /&gt;
# For each multilang block:&lt;br /&gt;
#* If there are texts in the currently active language, print them&lt;br /&gt;
#* Else, if there exists texts in the current parent language, print them&lt;br /&gt;
#* Else, print the first language found in the text&lt;br /&gt;
# Text outside of multilang blocks will be shown always&lt;br /&gt;
&lt;br /&gt;
==Course summary and title tags==&lt;br /&gt;
&lt;br /&gt;
To be able to change text such as resource titles and summaries, an administrator must choose &#039;&#039;Filter all strings&#039;&#039; in the site administration.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematically&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematiskt (svenska)&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
functions as English or Swedish title.&lt;br /&gt;
&lt;br /&gt;
It doesn&#039;t work for course titles and site names (neither long nor short version) in some versions of Moodle. At least from 1.8.2 long course titles and site name, both full and breadcrumb were multilang filtered.  &lt;br /&gt;
&lt;br /&gt;
In the course summary:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Growth is often a major concern in planning society.&lt;br /&gt;
 How can one avoid superficial conclusions? &amp;lt;br&amp;gt;&lt;br /&gt;
(Exists in Swedish too. Finns på svenska också)&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Tillväxt är ofta använt i samhällsdebatten. &lt;br /&gt;
Hur kan man undvika ytliga slutsatser? &lt;br /&gt;
 (Finns på engelska också. Exists in English too.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can show in the chosen language (and point out that the other language is there). Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to Moodle 1.8.&lt;br /&gt;
&lt;br /&gt;
== Translations with tags == &lt;br /&gt;
If you wish to translate a word or phrase in an English text to another language:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text &lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation&lt;br /&gt;
 in a running text can I do it? &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation (sv:&lt;br /&gt;
 förklaring) in a running text can I do it?&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would both work, but not:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text&lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;&lt;br /&gt;
 (sv: förklaring)&amp;lt;/span&amp;gt; in a running text can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
which would show the Swedish even if English was the chosen language. NOTE that before 1.8 the &amp;quot;span lang=en&amp;quot; must contain something, at least a space.&lt;br /&gt;
&lt;br /&gt;
== New multilang syntax ==&lt;br /&gt;
{{Moodle 1.8}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot;&amp;gt; and &amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; should not be used anymore&lt;br /&gt;
* Existing content can be upgraded using the admin/multilangupgrade.php script, there is a link in the admin notification page if a multilang upgrade is required.&lt;br /&gt;
* The multilang filter can be configured to use old syntax only - see &#039;&#039;Multi-Language Content Settings&#039;&#039;; this setting may be removed in 1.9&lt;br /&gt;
* New syntax is forced during a new 1.8 installation, for upgraded sites the new syntax is enabled after the multilang upgrade&lt;br /&gt;
&lt;br /&gt;
== Common problems ==&lt;br /&gt;
&lt;br /&gt;
* The multilang filter is not enabled. The administrator for the Moodle site you are using must go to Site administration&amp;gt; modules&amp;gt; Multilanguage Content and enable it (by clicking on the &amp;quot;eye&amp;quot;)&lt;br /&gt;
* &#039;&#039;Filter all strings&#039;&#039; not enabled on sites that need multilang in titles, navigation, headings, etc.  The administrator for the Moodle site you are using must go to Site administration&amp;gt; appearance&amp;gt; Filter settings and set a check in &amp;quot;filter alll strings&amp;quot;. This will increase server load slightly, so don&#039;t do it unless you really need it.&lt;br /&gt;
* Extra characters between language span tags - editor might add &amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt; or other tags, please review the html in source view&lt;br /&gt;
* If the course setting is &amp;quot;force&amp;quot; some language, you won&#039;t be able to change the displayed language.&lt;br /&gt;
* Extra spaces in language span tag&lt;br /&gt;
* Can not easily access language choice dropdown! Unfortunately you must go to the site homepage or your own profile to change the displayed language. Want a change? see [http://tracker.moodle.org/browse/MDL-11531 MDL-11531]. It is possible to manually quickly change displayed lang by editing the URL in the browsers address bar. See Tips and tricks below!&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks== &lt;br /&gt;
===Changing language displayed without going to front page===&lt;br /&gt;
It is possible to change the displayed language by manually changing the link.  &lt;br /&gt;
*Here is the default language page at id=2306. This link is in English, the default language:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&lt;br /&gt;
*The link to change the page display to Spanish is&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=es ,&lt;br /&gt;
*When the default language is an other language, to change the page to an English version, the link would be:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=en&lt;br /&gt;
&lt;br /&gt;
Thusly, with a bit of editing, you can manually change the displayed language by adding &amp;quot;&amp;amp;lang=xx&amp;quot; to the URL in the location bar of the browser. Where xx is the abbreviation for the language you want.&lt;br /&gt;
&lt;br /&gt;
===Bandwidth-adaptivity===&lt;br /&gt;
One inventive fellow has made a hack to use the multilang filter to be able to adapt the sent content to a users chosen bandwidth. Especiallly international courses can have users with extremely varied Internet connection speeds and this can allow them to chose what level of content (Low = text and small pictures, medium = some mp3, high = some video and other heavy stuff) suits them. &lt;br /&gt;
[http://paaralan.blogspot.com/2009/08/hack-bandwidth-adaptivity-for-moodle.html the blog with description and downloads]&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Filters|Filters administration]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=51603 Multilanguage filter - does not work ...]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74340 Problems with multilang filter and SPAN tags]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=94006 Multilingual Content]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=95134 Multilingual VS HTML editor]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Filter]]&lt;br /&gt;
&lt;br /&gt;
[[es:Filtros (Administrador)]]&lt;br /&gt;
[[fr:Contenu multilingue]]&lt;br /&gt;
[[ja:多言語シンタックス]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62021</id>
		<title>Broken/Numerical question units and intervals</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Numerical_question_units_and_intervals&amp;diff=62021"/>
		<updated>2009-08-24T06:21:58Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical): */  changed the link to an example feedback form (the old one no lon&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is my proposal for how the numerical question function and interface should be improved. [_] means checkboxes that teachers could use for specifying different question behaviours.&lt;br /&gt;
&lt;br /&gt;
==Allow evaluation of expressions==&lt;br /&gt;
&lt;br /&gt;
  Checking this would accept  &#039;&#039;&#039;5/2   0.5*5  5^2/10   5^(5-3)/10  25*10^-1  sqrt(25)/2&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
 The main value of calculated or numerical question is that the student really does the &lt;br /&gt;
 calculation and gives a real number (which means in decimal format). &lt;br /&gt;
 I suggested that you use the short answer (or the multichoice) question type with the different&lt;br /&gt;
 answer forms that you allow. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 04:25, 6 September 2007 (CDT)&lt;br /&gt;
 To me the real value of the numerical question type is it&#039;s ability to really see the &lt;br /&gt;
 answers as numbers and be able to see what things are equivalent. I have for many years&lt;br /&gt;
 used a PERL script which could treat 3/2 and 1+1/2 and 1.5 and (1,5 for us Swedes) as &lt;br /&gt;
 the same thing, and especially to accept well defined intervals.&lt;br /&gt;
 Often I am more interested in students knowing HOW to create the right expression moreso&lt;br /&gt;
 than doing the last step, evaluating it. It is also interesting when looking at the &lt;br /&gt;
 statistics for a question, to see how they &amp;quot;thought&amp;quot; which can aid the teacher when &lt;br /&gt;
 adding new feedback for other answers.&lt;br /&gt;
 Real numbers include rational numbers include 1/3 which cannot be correctly represented&lt;br /&gt;
 as a decimal. (Which doesn&#039;t bother me as a physicist, but a pure matematician ought to&lt;br /&gt;
 value being able to use expressions like 1/3. &lt;br /&gt;
 (Even if a programmer may say it&#039;ll only work from 0.33333333333333333333333333333 to&lt;br /&gt;
 0.333333333333333333333334 :-))&lt;br /&gt;
 [[User:Jeff Forssell|Jeff Forssell]] 06:21, 6 September 2007 (CDT)&lt;br /&gt;
&lt;br /&gt;
 If your answers are necessarily expressed as rational numbers then the short answer type&lt;br /&gt;
 is the way to do it. You could use as many answers as necessary to express the various&lt;br /&gt;
 formats that you accept as correct.&lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 07:21, 6 September 2007 (CDT)&lt;br /&gt;
 But that would mean that the teacher looses the possibility to give feedback for numerical&lt;br /&gt;
 intervals. Having questions that are as open as possible for different kinds of answers&lt;br /&gt;
 while still being able to give meaningful feedback is one of the strengths of Moodle that&lt;br /&gt;
 I like and would like to increase![[User:Jeff Forssell|Jeff Forssell]] 07:01, 4 October 2007 (CDT)&lt;br /&gt;
 &lt;br /&gt;
 This is not the case if you use as many answers as you want to express the desired feedback.&lt;br /&gt;
 Just defined the other answers in the range that you think reflect a given problem.&lt;br /&gt;
 i.e. if a factor of 2 reflect a given error use this value as an answer and write the feedback text. &lt;br /&gt;
 [[User:Pierre Pichet|Pierre Pichet]] 15:40, 9 October 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
5/2   0.5*5  5^2/2   5^(5-3)/2  25*10^-1  sqrt(25)/2&lt;br /&gt;
These value are not the same 5^2/2 and 5^(5-3)/2 are equal to 12.5!&lt;br /&gt;
I think it is very difficult to define which expressions are to be accepted. The numerical answer should somehow be the result. Otherweise the answer to a question like sqrt(50-2*17)=? could be the question itself.&lt;br /&gt;
[[User: Stefan Büchler|Stefan Büchler]] 25. Jan. 08&lt;br /&gt;
&lt;br /&gt;
I have for many years used a Perl script that worked very well with numerical questions. It had the ability to evaluate expressions also and compare the value with the intervals that gave various feedback. Usually I felt that it was a good possibility. A lot of times in physics the main problem is figuring out HOW to get the result and the the actual computation can be, easy though time consuming.  (Also good if they weren&#039;t getting the right answer, I could see HOW they were figuring.) But sometimes I wanted to be able to turn it off, just because of the possibility of &amp;quot;the answer being the question&amp;quot;. That&#039;s why I suggest that this possibility should not be the default, but something that a teacher can chose If s/he wants it. (thanks for the pointing out the unequal expressions, which I have {hopefully} corrected. [[User:Jeff Forssell|Jeff Forssell]] 08:26, 22 September 2008 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Allow fraction type  2 1/2 as 2.5==&lt;br /&gt;
&lt;br /&gt;
Translate &amp;quot;½&amp;quot; as &amp;quot;+.5&amp;quot; but give warning &amp;quot;Avoid ½ character in numerical expressions! We have translated ½ as +.5 to evaluate your answer.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  In the student question interface the answer box should:&lt;br /&gt;
  1) have an easy way to access with keyboard&lt;br /&gt;
     a) good &amp;quot;tab order&amp;quot;: when opening a quiz question page the student will usually want to &lt;br /&gt;
        answer the first question as his/her first option (tab order =10) &lt;br /&gt;
            Assuming there are no other taborders set this would be first.&lt;br /&gt;
            &amp;quot;BASIC&amp;quot; numbering allows later refinements without renumbering. &lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =15)&lt;br /&gt;
        answer next question (tab order= 20)&lt;br /&gt;
        if available &amp;quot;send in question&amp;quot; (tab order =25)&lt;br /&gt;
         (how this looks would depend on how many question blanks are on a page&lt;br /&gt;
          and would end up att NEXT page link)&lt;br /&gt;
     b) Acesskeys (This is mined territory since there are no real standards (or&lt;br /&gt;
            rather several DIFFERENT standards) It would probably be best to let &lt;br /&gt;
            people chose whether they want this activated and maybe which keys for which targets)&lt;br /&gt;
   2) Have a (?) after the answer box linked to a popup explanation, which depends&lt;br /&gt;
      on which options were checked by question author, saying for example:&lt;br /&gt;
       This is for a numerical answer. The answer can contain a unit at the right &lt;br /&gt;
       end after a space. As decimal character you may use . or , . Mixed fractions&lt;br /&gt;
       can be written as 2 1/2  which is interpretted as 2+1/2 (2½) In this question&lt;br /&gt;
       you may enter an expression which is evaluated to a number before comparing to&lt;br /&gt;
       the correction key. [link to examples of allowable expressions]    &lt;br /&gt;
&lt;br /&gt;
Answer 1:[ 2.5 ]   	   Accepted error ± [0.5]   Grade: [100%] &lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
Answer 2: [ &#039;&#039;&#039;100.4..100.5)&#039;&#039;&#039; ]	   Accepted error ± [_empty_]  Grade: [90%] &lt;br /&gt;
  Which would be interpreted  &#039;&#039;&#039;110.4 &amp;lt;= right &amp;lt; 100.5&#039;&#039;&#039;&lt;br /&gt;
   i.e. the round parentheses would mean that boundary not included in intervall&lt;br /&gt;
  or that one could enter evaluation strings like&lt;br /&gt;
  &#039;&#039;&#039;110.4&amp;lt;=ans&amp;lt;100.5||100.5&amp;lt;ans&amp;lt;=100.6&#039;&#039;&#039;&lt;br /&gt;
  &#039;&#039;(I know that this particular thing can be addressed by having&lt;br /&gt;
  100.5 +/-0  first than 100.5 +/-0.1)&#039;&#039;&lt;br /&gt;
Feedback: 	&lt;br /&gt;
&lt;br /&gt;
 Answer 3: ...&lt;br /&gt;
 Feedback: (for answer 3)	&lt;br /&gt;
&lt;br /&gt;
 Show 3 more alternative answer fields&lt;br /&gt;
&lt;br /&gt;
==Units mandatory or not==&lt;br /&gt;
===How the question has treated use of units=== &lt;br /&gt;
The actual philosophy of units in the question at present (-2008) is that the units are used to allow the student to answer the question in another unit than the one prescribed or implied by the question.&lt;br /&gt;
However this unit must have been specified when creating the question.&lt;br /&gt;
&lt;br /&gt;
This is why you set a multiplier to convert from your implied or expressed unit with a default 1 multiplier.&lt;br /&gt;
For example, if you enter a unit of &#039;cm&#039; here, and the accepted answer is 15, then the answers &#039;15cm&#039; and &#039;15&#039; are both accepted as correct. You can also specify a multiplier. So, if your main answer was 5500 with unit W, you can also add the unit kW with a multiplier of 0.001. This means that the answers &#039;5500&#039;, &#039;5500W&#039; or &#039;5.5kW&#039; would all be marked correct. Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW. &lt;br /&gt;
For the response where the multiplier is 1 the unit is not mandatory.i.e.&#039;5500&#039;, &#039;5500W&#039;&lt;br /&gt;
However when the multiplier is not 1 then the units is mandatory. i.e. &#039;5.5kW&#039;&lt;br /&gt;
&lt;br /&gt;
===How most science/math teachers expect students to answer regarding units===&lt;br /&gt;
Usually a numerical answer without a unit is not considered complete. (At least in Sweden and when I grew up in the states 1960s) If one has an automatic correction of numerical values only, one must sacrifice the openness of the question by stipulating units.&lt;br /&gt;
&lt;br /&gt;
What Moodle&#039;s questions have often provided is the possibility of allowing quite open responses from the students and still it can give meaningful feedback and points. If we must say &amp;quot;your answer must be expressed in kilonewtons&amp;quot; we won&#039;t be able to discover the weaknesses that might have lead to the student thinking Joules. Knowing what unit is involved it an important part of the ability we try to teach the students and we must be able to evaluate it. That is not possible with the  question&#039;s present way of functioning. &lt;br /&gt;
&lt;br /&gt;
A student can answer &amp;quot;5.2&amp;quot; and gets full points without writing any unit whereas a student answering &amp;quot;52 millimeters&amp;quot; would get zero if no multiplier was stipulated OR the unit only expressed as &amp;quot;mm&amp;quot; or &amp;quot;millimeter&amp;quot;. The student with the 5.2 answer might have even been thinking &amp;quot;m&amp;quot; rather than the the teacher&#039;s expected &amp;quot;cm&amp;quot;. This would not be the case if it were a &amp;quot;paper&amp;quot; test/assignment.&lt;br /&gt;
&lt;br /&gt;
==Unit feedback options===&lt;br /&gt;
  differentiated unit feedback, which is all of:&lt;br /&gt;
           If there is no SPACE between the number and unit &amp;quot;There should always be a&lt;br /&gt;
                space between the number and the unit, except for degree sign ° and&lt;br /&gt;
  other planal angle units.&amp;quot; &lt;br /&gt;
           translate dimensionless &amp;quot;units&amp;quot;: % = *0.01; ppm=*1E-6 ppb. promille   &lt;br /&gt;
           feedback for lacking unit [_]Feedback for accepted UNIT but wrong number &lt;br /&gt;
           feedback for &amp;quot;possibly right number&amp;quot; if unit is adjusted&lt;br /&gt;
           feedback for &amp;quot;Unit not recognized, either misspelled, wrong type,&lt;br /&gt;
               or just not expected&amp;quot;&lt;br /&gt;
          (o) missed unit gives standard retry reduction of points (_)no reduction &lt;br /&gt;
               for missed unit (_)this reduction [___]  &lt;br /&gt;
          [[http://physics.nist.gov/cuu/Units/checklist.html|SI Unit rules and style conventions]] (#17  I don&#039;t&lt;br /&gt;
           understand. Otherwise a good colection of rules, at least about SI units.&lt;br /&gt;
           #16 is a rule that could be good to be abe to choose to enforce.) &lt;br /&gt;
  &lt;br /&gt;
===Unit: 	[       ] (optional)===&lt;br /&gt;
  Should accept arrays like &#039;&#039;&#039;kg, kilogram, kilograms , kilogramme, {&amp;quot;kilo gram&amp;quot;, keelograhm} &#039;&#039;&#039;&lt;br /&gt;
  where the ones enclosed in {} would be given feedback like&lt;br /&gt;
   &#039;&#039;We have interpretted &#039;&#039;&#039;keelograhm&#039;&#039;&#039; as a misspelling av &#039;&#039;&#039;kg&#039;&#039;&#039; Be aware that small spelling&lt;br /&gt;
    mistakes  like &#039;&#039;&#039;M&#039;&#039;&#039; in stead of &#039;&#039;&#039;m&#039;&#039;&#039; can lead to huge errors M=Mega=million&lt;br /&gt;
    m=milli= one thousandth&#039;&#039;&amp;quot; &lt;br /&gt;
	Alternative Units: 	&lt;br /&gt;
	Multiplier:[       ]    Unit: [_______]&lt;br /&gt;
 There should be the same possibility of unit arrays here.&lt;br /&gt;
&lt;br /&gt;
 Allow prefix units ($,£ maybe there are others )&lt;br /&gt;
&lt;br /&gt;
==The Multiplier should have an explanation (?)==&lt;br /&gt;
   &#039;&#039;If the student answers with this unit, the student answer will be multiplied with this number &lt;br /&gt;
   before being compared with the expected answer. Example:&lt;br /&gt;
   Answer [_10__] Unit [cm]&lt;br /&gt;
     alternative unit&lt;br /&gt;
     multiplier [_2.54_] unit [&amp;quot;, in, in., inch] &lt;br /&gt;
        (That &amp;quot; could be a tricky unit to handle!)&lt;br /&gt;
&lt;br /&gt;
==Then there are some things that I would be interested in having as options for all [maybe?] questiontypes (including numerical):==&lt;br /&gt;
&lt;br /&gt;
1) &amp;quot;Challenge&amp;quot; That a student is given (perhaps with a linked &amp;quot;!&amp;quot; or &amp;quot;Hmm..&amp;quot; or button) a chance to give his/her preferred answer and his/her motivation (or why they didn&#039;t understand, like, agree with the grade or feedback they got for their answer or how the question was phrased.) This might be implemented witn similar code to number 4 below.&lt;br /&gt;
&lt;br /&gt;
2) Hints option: option to include a clickable link that could display a/some hint(s), if the student didn&#039;t know how to attack a question. (It is possible, though hardly for html-illiterate, to use the OverLib.js which is included in Moodle to do this even now.&lt;br /&gt;
&lt;br /&gt;
3) Certainty (in the past sometimes called &amp;quot;confidence&amp;quot;) declaration option &lt;br /&gt;
     [__answer___]  certainty: Hi(o)|Med( )|Low( )&lt;br /&gt;
     if possible with CBM/CBG grading scale including negative&lt;br /&gt;
&lt;br /&gt;
4) All Internet pages (that the maintainer cares about) should have a [[Feedback link for all elements|feedback link]] something like this:&lt;br /&gt;
&lt;br /&gt;
[[http://tupo.biz/kurser/gemensam/kommunikation/PageFeedbackFormExpand.htm Completely satisfied with this page?]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/id:9517&amp;diff=60879</id>
		<title>Broken/id:9517</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/id:9517&amp;diff=60879"/>
		<updated>2009-08-04T09:24:29Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: Checkbox label AFTER&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Checkbox label ==&lt;br /&gt;
&lt;br /&gt;
why AFTER (which is bolded in the text):&lt;br /&gt;
&amp;quot;Create a checkbox with an id attribute. Add a &amp;lt;label for=&amp;quot;id_of_checkbox&amp;quot;&amp;gt; element &#039;&#039;&#039;after&#039;&#039;&#039; the checkbox. As the text content of the label element, write the result of checking the box: &amp;quot;&lt;br /&gt;
&lt;br /&gt;
I seem to recall having placed a label so it includes both the checkbox and the text belonging to it. I have sometimes used that to put in a tooltip with a title=&amp;quot;when you put a check here, life will be wonderful ;-)&amp;quot; in the label tag and it would be good if that came up while hoovering over the checkbox itself. Isn&#039;t it also possible to make the checkbox &amp;quot;mouseclickable&amp;quot; even on the text which belongs to the checkbox?  [[User:Jeff Forssell|Jeff Forssell]] 09:24, 4 August 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Mathematics&amp;diff=60803</id>
		<title>Mathematics</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Mathematics&amp;diff=60803"/>
		<updated>2009-07-31T11:03:05Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Applet Tools */ # GraphApplet 1.05 and Physlets&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Equation Construction and Display==&lt;br /&gt;
===Tools===&lt;br /&gt;
There are a variety of tools that are available for the purpose of constructing equations, providing text expressions that can be converted to equations, and displaying equations. &lt;br /&gt;
&lt;br /&gt;
The most common text expression syntax is LaTeX or a derivative with probably the most common form of display being a conversion of the equation to an image file. However, is demonstrated with ASCIIMathML simple text expressions can now be be converted to MathML on the fly.&lt;br /&gt;
&lt;br /&gt;
Some tools for creating and displaying equations on-line that may be of interest to those teaching mathematics are:&lt;br /&gt;
* [[ASCIIMathML]],  which both converts equations into MathML on the fly and provides a text expression syntax more easily mastered than Tex, though the filter will convert TeX expressions as well. [http://sourceforge.net/project/showfiles.php?group_id=106148 The ASCIIMathML 2.0.2 zip] provides all the files necessary for setting ASCIIMathML up as  a Moodle filter as well creating run-time graphs with ASCIIsvg. An on-line calculator is also included. Just recently an  ASCIIMathML export format for DragMath was added to version 0.7.2, [https://docs.moodle.org/en/DragMath_equation_editor available here],  so that you have access to both a GUI and text expression syntax for creating and displaying equations. Quick and GIFless. [http://math.chapman.edu/~jipsen/asciencepad/asciencepad.html  ASciencePad is also available] and consists of htmlarea enhanced with the ASCIIMathML functionality. &lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=916 Tim Hunt&#039;s Moodle MathTran Module] converts Tex into images on the fly. You can also use  [http://www.mathtran.org/wiki/index.php/TeX_image mathtran_img.js] on a page by page basis.&lt;br /&gt;
* The [[TeX filter]], which allows [http://www.tug.org/begin.html TeX markup] to be inserted anywhere (e.g. quiz questions, discussion messages, text resources)&lt;br /&gt;
* The [[jsMath]] filter, which does a similar job but using [[Javascript]] on the user&#039;s computer&lt;br /&gt;
* [[Calculated question type]]&lt;br /&gt;
* [[DragMath equation editor]], a WYSIWYG equation editor that integrates easily with the Moodle HTML editor.&lt;br /&gt;
* [[WIRIS]], is a plugin that easily integrates with the HTML editor several math tools&lt;br /&gt;
** WYSIWYG equation editor. Based on MathML&lt;br /&gt;
** Advanced calculator. Integrals, derivatives, limits, ploting in 2D and 3D,...&lt;br /&gt;
* MathType, a commercial product created by DSI (the folk who also offer MathPlayer, a plugin many IE users employ). Bob Mathews recently posted [http://moodle.org/mod/forum/discuss.php?d=93728&amp;amp;parent=549428] that info on MathType can be found at http://www.dessci.com/en/support/mathtype/workswith/moodle.htm &lt;br /&gt;
Mathematics teachers may also be interested to follow the work of [http://maths.york.ac.uk York University Maths department], who are working on [http://maths.york.ac.uk/serving_maths/ some projects] to augment Moodle, particularly its [[Quiz module]] for online assessment, for example by integrating a system which is able to mark algebraic and trigonometric answers to open-ended questions.&lt;br /&gt;
&lt;br /&gt;
===Accessibility Display Matrix===&lt;br /&gt;
&lt;br /&gt;
{{Expand-section|date=August 2008}}&lt;br /&gt;
&lt;br /&gt;
■ Feature Key appears below the matrix.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!Notation&lt;br /&gt;
!Tex/LaTex&lt;br /&gt;
!ASCIIMath&lt;br /&gt;
!MathML&lt;br /&gt;
|-&lt;br /&gt;
|Ease of Use&lt;br /&gt;
|Plain text system. Knowledge of LaTeX notation required. Being a plain text system, LaTeX notation is straightforward to create and edit. &lt;br /&gt;
|Plain text system. Easy to learn. Notation simple. Being a plain text system, ASCIIMath is very easy to create and edit.&lt;br /&gt;
|XML-based. Not easy to create and edit: an editor is required.&lt;br /&gt;
|-&lt;br /&gt;
|Conversion to Braille&lt;br /&gt;
|Output directly to Braille display via screen reader (fn 2)&lt;br /&gt;
|ASCIIMath notation is converted to MathML or LaTeX. Please refer to those formats for details.&lt;br /&gt;
|Converted to suitable textual format and Brailled using screen reader (fn 3)&lt;br /&gt;
|-&lt;br /&gt;
|Transmission via TTS&lt;br /&gt;
|Notation spoken &amp;quot;as-is&amp;quot; via screen reader (fn 2)&lt;br /&gt;
|ASCIIMath notation is converted to MathML or LaTeX. Please refer to those formats for details.&lt;br /&gt;
|Converted to suitable textual format and spoken using screen reader. Note that MathPlayer add-on for IE has TTS functionality built-in (fn 3).&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn1&amp;quot;&amp;gt;&#039;&#039;&#039;fn1.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
MathPlayer claims to do math-to-speech by parsing the MathML, not by parsing TeX. See http://www.dessci.com/en/products/mathplayer/tech/accessibility.htm where it is stated:&lt;br /&gt;
&lt;br /&gt;
All of these examples were written in Microsoft Word and MathType and exported to MathML using MathType’s “MathPage” technology. MathPage technology was added to MathType in version 5.0. No special work is needed to author the expressions to make them accessible. Any product that exports MathML will produce pages that MathPlayer can speak.&lt;br /&gt;
&lt;br /&gt;
For a larger real life example, see this page. Also, MSN Encarta uses MathML on many of their web pages that contain math, so much of their Math should be accessible using MathPlayer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn2&amp;quot;&amp;gt;&#039;&#039;&#039;fn2. &#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
The alt attribute of the rendered graphic is spoken and/or Braillled. As LaTeX is a plain text notation, the notation can be spoken and Brailled by the screen reader directly. This does, of course, assume an understanding of LaTeX notation on the part of the screen reader user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn3&amp;quot;&amp;gt;&#039;&#039;&#039;fn3. &#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
In the case of Internet Explorer, screen readers require the MathPlayer plugin to be installed before MathML is rendered (IE does not include native MathML support). By using MSAA, the screen reader can obtain a textual version of the math notation from MathPlayer, which it can then TTS and Braille. Note that MathPlayer also contains built-in TTS functionality (employing MS SAPI) which can be used to speak the math notation without having to employ a screen reader. See [http://www.dessci.com/en/products/mathplayer/tech/accessibility.htm] for further details. At time of writing, screen reader support for Firefox is via MSAA and a special custom, Firefox-specific IAccessible2 interface (to reveal text attributes and character positions). Math notation is spoken via a screen reader which interrogates these interfaces.&lt;br /&gt;
&lt;br /&gt;
==Using Java for Curriculum==&lt;br /&gt;
===Java Tools for Building Applets for Interactive Demonstration===&lt;br /&gt;
These tools can be integrated in or used with Moodle Resources&lt;br /&gt;
* Java Sketchpad, http://www.dynamicgeometry.com/JavaSketchpad/About_JavaSketchpad.html, is an applet developed by Key Curriculum Press. The applet has been the focus of quite a bit of discussion and demonstrations and discussions are widely available.  An introductory article from the Journal of Online Mathematics can be found here: http://mathdl.maa.org/mathDL/4/?nodeId=508&amp;amp;pa=content&amp;amp;sa=viewDocument. Usage focuses largely on Geometry&lt;br /&gt;
* CabriJava, http://www-cabri.imag.fr/cabrijava/, an applet offered by the University of Cabri,  also focuses on interactive geometry. Quite a number of examples employing CabriJava can be found here: http://www.mathsnet.net/cabri/index.html.&lt;br /&gt;
* Descartes, http://descartes.cnice.mec.es/, is an applet developed under the auspices of the Spanish Ministerio de Educacion Politica Social y Diporte.  An English introduction can be found here at http://descartes.cnice.mec.es/ingles/index.html.  The Ministery has produced an extensive Mathematics curriculum using Descartes,  which is available in English and can be freely downloaded and used. Much of what is available is still only in Spanish so anyone interested in doing translation work please post to the Moodle Math Tools forum.&lt;br /&gt;
&lt;br /&gt;
===Additional Curricular Use of Applets===&lt;br /&gt;
*Euclid&#039;s Elements -  http://aleph0.clarku.edu/~djoyce/java/elements/elements.html&lt;br /&gt;
*Tutorials employing applets (applets can be downloaded and used in Moodle) http://www.analyzemath.com/&lt;br /&gt;
&lt;br /&gt;
===Applet Tools===&lt;br /&gt;
*Graphing - http://www.langara.bc.ca/mathstats/resource/GraphExplorer/&lt;br /&gt;
*Geometry Construction - http://www.cs.rice.edu/~jwarren/grace/&lt;br /&gt;
*GeoGebra - http://www.geogebra.org/&lt;br /&gt;
*Physics Applets for Drawing (PAD) - http://www.wku.edu/pads/ These can make interactive activities that can both check for correctness and give guiding feedback. Includes modules for graphs (2D functions), vectors (even in/out and other lines and arrows and bar-graphs), motion analysis, equation recognition and more. Uses don&#039;t have to be just for Physics. Math, of course. VectorPAD can be used for placing markers (as points, lines, small pictures, [http://www.wku.edu/pads/exercise.php?id=mgaazqzoakmqgfrkkmqgaaayo arrows) on a picture], that could be used in almost any subject. They can be incorporating in SCORM packages which can interact with Moodle. There is no Moodle module now (july 2009) for using them directly, but that would add a lot more power (compared to SCORM), like being able to save states, turn on/off feedback, etc.&lt;br /&gt;
*GraphApplet 1.05: both calculator and graphapplet - http://www.lundin.info/graphapplet.aspx&lt;br /&gt;
*Physlets: large suite of applets about physics but includes [http://webphysics.davidson.edu/physletprob/ch16_datagraph/default.html advanced graphing] too. [http://www.tupo.biz/kurser/javaapplets/Fysik/java/Physlets/CFL/3dimDiag.htm A time dependent 3D example (Swedish!)]&lt;br /&gt;
&lt;br /&gt;
===Java Applet Collections===&lt;br /&gt;
* http://cs.jsu.edu/mcis/faculty/leathrum/Mathlets/&lt;br /&gt;
* http://www.walter-fendt.de/m14e/&lt;br /&gt;
&lt;br /&gt;
* Probability and Statistics&lt;br /&gt;
**http://www.mste.uiuc.edu/pavel/java/dilemma/&lt;br /&gt;
**http://lstat.kuleuven.be/java/&lt;br /&gt;
**http://www.math.csusb.edu/faculty/stanton/m262/&lt;br /&gt;
&lt;br /&gt;
*http://www.mste.uiuc.edu/murphy/JavaOverview/default.html&lt;br /&gt;
*Math and Physics - http://www.falstad.com/mathphysics.html&lt;br /&gt;
*Curves - http://www-groups.dcs.st-and.ac.uk/~history/Java/index.html&lt;br /&gt;
*Chaos and Fractals - http://math.bu.edu/DYSYS/applets/index.html&lt;br /&gt;
*For sale, but extensive - http://www.cut-the-knot.org/Curriculum/index.shtml&lt;br /&gt;
&lt;br /&gt;
==Mathematics Assessment==&lt;br /&gt;
&lt;br /&gt;
Assessment is a key driver for mathematics.  There are a number of ways of getting students to answer mathematical questions through Moodle.&lt;br /&gt;
* WebWork, see http://webwork.maa.org/wiki/Main_Page  http://webwork.math.rochester.edu/docs/docs/, and http://webwork.maa.org/moodle/ is an independent web application for assessing student Math progress, and there is a Moodle Module for interfacing WebWork to Moodle that can be found here: http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=332, though the resources on the WeBWork wiki are probably more current as the code  in the Moodle CVS has not been updated for some time.&lt;br /&gt;
* STACK provides very mathematical questions for the Moodle quiz module.  These are supported by the CAS Maxima.  The home page for STACK can be found on http://stack.bham.ac.uk/&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Mathematics tools FAQ]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=46009 Best practices for teaching Math(s) in Moodle]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=61993 How do you deal with the challenge of writing equations?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=62002 How do you deal with the challenge of drawing graphs and diagrams?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=62014 How do you deal with the challenge of interactive exercises and simulations?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=95950 How can I have a student enter a fraction as an answer?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=127867 What are the components of an exemplary high school Moodle course?]&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Mathematics&amp;diff=60802</id>
		<title>Mathematics</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Mathematics&amp;diff=60802"/>
		<updated>2009-07-31T10:18:54Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Applet Tools */ *Physics Applets for Drawing (PAD)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Equation Construction and Display==&lt;br /&gt;
===Tools===&lt;br /&gt;
There are a variety of tools that are available for the purpose of constructing equations, providing text expressions that can be converted to equations, and displaying equations. &lt;br /&gt;
&lt;br /&gt;
The most common text expression syntax is LaTeX or a derivative with probably the most common form of display being a conversion of the equation to an image file. However, is demonstrated with ASCIIMathML simple text expressions can now be be converted to MathML on the fly.&lt;br /&gt;
&lt;br /&gt;
Some tools for creating and displaying equations on-line that may be of interest to those teaching mathematics are:&lt;br /&gt;
* [[ASCIIMathML]],  which both converts equations into MathML on the fly and provides a text expression syntax more easily mastered than Tex, though the filter will convert TeX expressions as well. [http://sourceforge.net/project/showfiles.php?group_id=106148 The ASCIIMathML 2.0.2 zip] provides all the files necessary for setting ASCIIMathML up as  a Moodle filter as well creating run-time graphs with ASCIIsvg. An on-line calculator is also included. Just recently an  ASCIIMathML export format for DragMath was added to version 0.7.2, [https://docs.moodle.org/en/DragMath_equation_editor available here],  so that you have access to both a GUI and text expression syntax for creating and displaying equations. Quick and GIFless. [http://math.chapman.edu/~jipsen/asciencepad/asciencepad.html  ASciencePad is also available] and consists of htmlarea enhanced with the ASCIIMathML functionality. &lt;br /&gt;
* [http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=916 Tim Hunt&#039;s Moodle MathTran Module] converts Tex into images on the fly. You can also use  [http://www.mathtran.org/wiki/index.php/TeX_image mathtran_img.js] on a page by page basis.&lt;br /&gt;
* The [[TeX filter]], which allows [http://www.tug.org/begin.html TeX markup] to be inserted anywhere (e.g. quiz questions, discussion messages, text resources)&lt;br /&gt;
* The [[jsMath]] filter, which does a similar job but using [[Javascript]] on the user&#039;s computer&lt;br /&gt;
* [[Calculated question type]]&lt;br /&gt;
* [[DragMath equation editor]], a WYSIWYG equation editor that integrates easily with the Moodle HTML editor.&lt;br /&gt;
* [[WIRIS]], is a plugin that easily integrates with the HTML editor several math tools&lt;br /&gt;
** WYSIWYG equation editor. Based on MathML&lt;br /&gt;
** Advanced calculator. Integrals, derivatives, limits, ploting in 2D and 3D,...&lt;br /&gt;
* MathType, a commercial product created by DSI (the folk who also offer MathPlayer, a plugin many IE users employ). Bob Mathews recently posted [http://moodle.org/mod/forum/discuss.php?d=93728&amp;amp;parent=549428] that info on MathType can be found at http://www.dessci.com/en/support/mathtype/workswith/moodle.htm &lt;br /&gt;
Mathematics teachers may also be interested to follow the work of [http://maths.york.ac.uk York University Maths department], who are working on [http://maths.york.ac.uk/serving_maths/ some projects] to augment Moodle, particularly its [[Quiz module]] for online assessment, for example by integrating a system which is able to mark algebraic and trigonometric answers to open-ended questions.&lt;br /&gt;
&lt;br /&gt;
===Accessibility Display Matrix===&lt;br /&gt;
&lt;br /&gt;
{{Expand-section|date=August 2008}}&lt;br /&gt;
&lt;br /&gt;
■ Feature Key appears below the matrix.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;0&amp;quot;&lt;br /&gt;
!Notation&lt;br /&gt;
!Tex/LaTex&lt;br /&gt;
!ASCIIMath&lt;br /&gt;
!MathML&lt;br /&gt;
|-&lt;br /&gt;
|Ease of Use&lt;br /&gt;
|Plain text system. Knowledge of LaTeX notation required. Being a plain text system, LaTeX notation is straightforward to create and edit. &lt;br /&gt;
|Plain text system. Easy to learn. Notation simple. Being a plain text system, ASCIIMath is very easy to create and edit.&lt;br /&gt;
|XML-based. Not easy to create and edit: an editor is required.&lt;br /&gt;
|-&lt;br /&gt;
|Conversion to Braille&lt;br /&gt;
|Output directly to Braille display via screen reader (fn 2)&lt;br /&gt;
|ASCIIMath notation is converted to MathML or LaTeX. Please refer to those formats for details.&lt;br /&gt;
|Converted to suitable textual format and Brailled using screen reader (fn 3)&lt;br /&gt;
|-&lt;br /&gt;
|Transmission via TTS&lt;br /&gt;
|Notation spoken &amp;quot;as-is&amp;quot; via screen reader (fn 2)&lt;br /&gt;
|ASCIIMath notation is converted to MathML or LaTeX. Please refer to those formats for details.&lt;br /&gt;
|Converted to suitable textual format and spoken using screen reader. Note that MathPlayer add-on for IE has TTS functionality built-in (fn 3).&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn1&amp;quot;&amp;gt;&#039;&#039;&#039;fn1.&#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
MathPlayer claims to do math-to-speech by parsing the MathML, not by parsing TeX. See http://www.dessci.com/en/products/mathplayer/tech/accessibility.htm where it is stated:&lt;br /&gt;
&lt;br /&gt;
All of these examples were written in Microsoft Word and MathType and exported to MathML using MathType’s “MathPage” technology. MathPage technology was added to MathType in version 5.0. No special work is needed to author the expressions to make them accessible. Any product that exports MathML will produce pages that MathPlayer can speak.&lt;br /&gt;
&lt;br /&gt;
For a larger real life example, see this page. Also, MSN Encarta uses MathML on many of their web pages that contain math, so much of their Math should be accessible using MathPlayer.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn2&amp;quot;&amp;gt;&#039;&#039;&#039;fn2. &#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
The alt attribute of the rendered graphic is spoken and/or Braillled. As LaTeX is a plain text notation, the notation can be spoken and Brailled by the screen reader directly. This does, of course, assume an understanding of LaTeX notation on the part of the screen reader user.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;fn3&amp;quot;&amp;gt;&#039;&#039;&#039;fn3. &#039;&#039;&#039;&amp;lt;/span&amp;gt;&lt;br /&gt;
In the case of Internet Explorer, screen readers require the MathPlayer plugin to be installed before MathML is rendered (IE does not include native MathML support). By using MSAA, the screen reader can obtain a textual version of the math notation from MathPlayer, which it can then TTS and Braille. Note that MathPlayer also contains built-in TTS functionality (employing MS SAPI) which can be used to speak the math notation without having to employ a screen reader. See [http://www.dessci.com/en/products/mathplayer/tech/accessibility.htm] for further details. At time of writing, screen reader support for Firefox is via MSAA and a special custom, Firefox-specific IAccessible2 interface (to reveal text attributes and character positions). Math notation is spoken via a screen reader which interrogates these interfaces.&lt;br /&gt;
&lt;br /&gt;
==Using Java for Curriculum==&lt;br /&gt;
===Java Tools for Building Applets for Interactive Demonstration===&lt;br /&gt;
These tools can be integrated in or used with Moodle Resources&lt;br /&gt;
* Java Sketchpad, http://www.dynamicgeometry.com/JavaSketchpad/About_JavaSketchpad.html, is an applet developed by Key Curriculum Press. The applet has been the focus of quite a bit of discussion and demonstrations and discussions are widely available.  An introductory article from the Journal of Online Mathematics can be found here: http://mathdl.maa.org/mathDL/4/?nodeId=508&amp;amp;pa=content&amp;amp;sa=viewDocument. Usage focuses largely on Geometry&lt;br /&gt;
* CabriJava, http://www-cabri.imag.fr/cabrijava/, an applet offered by the University of Cabri,  also focuses on interactive geometry. Quite a number of examples employing CabriJava can be found here: http://www.mathsnet.net/cabri/index.html.&lt;br /&gt;
* Descartes, http://descartes.cnice.mec.es/, is an applet developed under the auspices of the Spanish Ministerio de Educacion Politica Social y Diporte.  An English introduction can be found here at http://descartes.cnice.mec.es/ingles/index.html.  The Ministery has produced an extensive Mathematics curriculum using Descartes,  which is available in English and can be freely downloaded and used. Much of what is available is still only in Spanish so anyone interested in doing translation work please post to the Moodle Math Tools forum.&lt;br /&gt;
&lt;br /&gt;
===Additional Curricular Use of Applets===&lt;br /&gt;
*Euclid&#039;s Elements -  http://aleph0.clarku.edu/~djoyce/java/elements/elements.html&lt;br /&gt;
*Tutorials employing applets (applets can be downloaded and used in Moodle) http://www.analyzemath.com/&lt;br /&gt;
&lt;br /&gt;
===Applet Tools===&lt;br /&gt;
*Graphing - http://www.langara.bc.ca/mathstats/resource/GraphExplorer/&lt;br /&gt;
*Geometry Construction - http://www.cs.rice.edu/~jwarren/grace/&lt;br /&gt;
*GeoGebra - http://www.geogebra.org/&lt;br /&gt;
*Physics Applets for Drawing (PAD) - http://www.wku.edu/pads/ These can make interactive activities that can both check for correctness and give guiding feedback. Includes modules for graphs (2D functions), vectors (even in/out and other lines and arrows and bar-graphs), motion analysis, equation recognition and more. Uses don&#039;t have to be just for Physics. Math, of course. VectorPAD can be used for placing markers (as points, lines, arrows samll pictures) on a picture, that could be used in almost any subject. They can be incorporating in SCORM packages which can interact with Moodle. There is no Moodle module now (july 2009) for using them directly, but that would add a lot more power (compared to SCORM), like being able to save states, turn on/off feedback, etc.&lt;br /&gt;
&lt;br /&gt;
===Java Applet Collections===&lt;br /&gt;
* http://cs.jsu.edu/mcis/faculty/leathrum/Mathlets/&lt;br /&gt;
* http://www.walter-fendt.de/m14e/&lt;br /&gt;
&lt;br /&gt;
* Probability and Statistics&lt;br /&gt;
**http://www.mste.uiuc.edu/pavel/java/dilemma/&lt;br /&gt;
**http://lstat.kuleuven.be/java/&lt;br /&gt;
**http://www.math.csusb.edu/faculty/stanton/m262/&lt;br /&gt;
&lt;br /&gt;
*http://www.mste.uiuc.edu/murphy/JavaOverview/default.html&lt;br /&gt;
*Math and Physics - http://www.falstad.com/mathphysics.html&lt;br /&gt;
*Curves - http://www-groups.dcs.st-and.ac.uk/~history/Java/index.html&lt;br /&gt;
*Chaos and Fractals - http://math.bu.edu/DYSYS/applets/index.html&lt;br /&gt;
*For sale, but extensive - http://www.cut-the-knot.org/Curriculum/index.shtml&lt;br /&gt;
&lt;br /&gt;
==Mathematics Assessment==&lt;br /&gt;
&lt;br /&gt;
Assessment is a key driver for mathematics.  There are a number of ways of getting students to answer mathematical questions through Moodle.&lt;br /&gt;
* WebWork, see http://webwork.maa.org/wiki/Main_Page  http://webwork.math.rochester.edu/docs/docs/, and http://webwork.maa.org/moodle/ is an independent web application for assessing student Math progress, and there is a Moodle Module for interfacing WebWork to Moodle that can be found here: http://moodle.org/mod/data/view.php?d=13&amp;amp;rid=332, though the resources on the WeBWork wiki are probably more current as the code  in the Moodle CVS has not been updated for some time.&lt;br /&gt;
* STACK provides very mathematical questions for the Moodle quiz module.  These are supported by the CAS Maxima.  The home page for STACK can be found on http://stack.bham.ac.uk/&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Mathematics tools FAQ]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=46009 Best practices for teaching Math(s) in Moodle]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=61993 How do you deal with the challenge of writing equations?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=62002 How do you deal with the challenge of drawing graphs and diagrams?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=62014 How do you deal with the challenge of interactive exercises and simulations?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=95950 How can I have a student enter a fraction as an answer?]&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=127867 What are the components of an exemplary high school Moodle course?]&lt;br /&gt;
&lt;br /&gt;
[[Category:Mathematics]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=60634</id>
		<title>Multi-language content filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=60634"/>
		<updated>2009-07-28T04:31:54Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Common problems */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi-language content filter enables resources to be created in multiple languages. When turned on, it looks for &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt; tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.&lt;br /&gt;
&lt;br /&gt;
The multilang syntax was changed in 1.8. &amp;lt;nowiki&amp;gt;&amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; is not supported any more. It is required to add &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; into each &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt; tag in multilang block. The new syntax is backwards compatible with old plugins, which means it can be used in older Moodle version.&lt;br /&gt;
&lt;br /&gt;
== How to use in a course ==&lt;br /&gt;
&lt;br /&gt;
To use this feature first create your contents in multiple languages (in the same resource). Then enclose each language block (aka multilang block) in the following tags:&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;XX&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is essential to be in &#039;&#039;&#039;the code editing mode&#039;&#039;&#039; (press &amp;lt;nowiki&amp;gt;[&amp;lt;&amp;gt;]&amp;lt;/nowiki&amp;gt; in the HTML editor), when you enter these tags for them to work. Only spaces, tabs and enters can be used between the individual languages in the multilang block. Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to 1.8. There is a lang drop-down markup tool in the HTML editor in later versions of Moodle. The first versions, at least to 1.8.2, do not make &amp;quot;multilang&amp;quot; language tags. If you are working in a sufficiently new version of the HTML editor you can add these tags without going to the code editing mode.  If something doesn&#039;t work properly you should check how the markup looks in code mode. &lt;br /&gt;
&lt;br /&gt;
Following code&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
does NOT work.&lt;br /&gt;
&lt;br /&gt;
The obsoleted HTML tagging&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
will not work in 1.8 and later. In 1.8 the lang attribute without &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; can be used to mark the language of the text - see http://www.w3.org/TR/html4/struct/dirlang.html&lt;br /&gt;
&lt;br /&gt;
== How it works internally ==&lt;br /&gt;
&lt;br /&gt;
# Filter first looks for &#039;&#039;multilang blocks&#039;&#039; in the text&lt;br /&gt;
# For each multilang block:&lt;br /&gt;
#* If there are texts in the currently active language, print them&lt;br /&gt;
#* Else, if there exists texts in the current parent language, print them&lt;br /&gt;
#* Else, print the first language found in the text&lt;br /&gt;
# Text outside of multilang blocks will be shown always&lt;br /&gt;
&lt;br /&gt;
==Course summary and title tags==&lt;br /&gt;
&lt;br /&gt;
To be able to change text such as resource titles and summaries, an administrator must choose &#039;&#039;Filter all strings&#039;&#039; in the site administration.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematically&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematiskt (svenska)&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
functions as English or Swedish title.&lt;br /&gt;
&lt;br /&gt;
It doesn&#039;t work for course titles and site names (neither long nor short version) in some versions of Moodle. At least from 1.8.2 long course titles and site name, both full and breadcrumb were multilang filtered.  &lt;br /&gt;
&lt;br /&gt;
In the course summary:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Growth is often a major concern in planning society.&lt;br /&gt;
 How can one avoid superficial conclusions? &amp;lt;br&amp;gt;&lt;br /&gt;
(Exists in Swedish too. Finns på svenska också)&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Tillväxt är ofta använt i samhällsdebatten. &lt;br /&gt;
Hur kan man undvika ytliga slutsatser? &lt;br /&gt;
 (Finns på engelska också. Exists in English too.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can show in the chosen language (and point out that the other language is there). Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to Moodle 1.8.&lt;br /&gt;
&lt;br /&gt;
== Translations with tags == &lt;br /&gt;
If you wish to translate a word or phrase in an English text to another language:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text &lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation&lt;br /&gt;
 in a running text can I do it? &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation (sv:&lt;br /&gt;
 förklaring) in a running text can I do it?&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would both work, but not:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text&lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;&lt;br /&gt;
 (sv: förklaring)&amp;lt;/span&amp;gt; in a running text can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
which would show the Swedish even if English was the chosen language. NOTE that before 1.8 the &amp;quot;span lang=en&amp;quot; must contain something, at least a space.&lt;br /&gt;
&lt;br /&gt;
== New multilang syntax ==&lt;br /&gt;
{{Moodle 1.8}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot;&amp;gt; and &amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; should not be used anymore&lt;br /&gt;
* Existing content can be upgraded using the admin/multilangupgrade.php script, there is a link in the admin notification page if a multilang upgrade is required.&lt;br /&gt;
* The multilang filter can be configured to use old syntax only - see &#039;&#039;Multi-Language Content Settings&#039;&#039;; this setting may be removed in 1.9&lt;br /&gt;
* New syntax is forced during a new 1.8 installation, for upgraded sites the new syntax is enabled after the multilang upgrade&lt;br /&gt;
&lt;br /&gt;
== Common problems ==&lt;br /&gt;
&lt;br /&gt;
* The multilang filter is not enabled. The administrator for the Moodle site you are using must go to Site administration&amp;gt; modules&amp;gt; Multilanguage Content and enable it (by clicking on the &amp;quot;eye&amp;quot;)&lt;br /&gt;
* &#039;&#039;Filter all strings&#039;&#039; not enabled on sites that need multilang in titles, navigation, headings, etc.  The administrator for the Moodle site you are using must go to Site administration&amp;gt; appearance&amp;gt; Filter settings and set a check in &amp;quot;filter alll strings&amp;quot;. This will increase server load slightly, so don&#039;t do it unless you really need it.&lt;br /&gt;
* Extra characters between language span tags - editor might add &amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt; or other tags, please review the html in source view&lt;br /&gt;
* If the course setting is &amp;quot;force&amp;quot; some language, you won&#039;t be able to change the displayed language.&lt;br /&gt;
* Extra spaces in language span tag&lt;br /&gt;
* Can not easily access language choice dropdown! Unfortunately you must go to the site homepage or your own profile to change the displayed language. Want a change? see [http://tracker.moodle.org/browse/MDL-11531 MDL-11531]. It is possible to manually quickly change displayed lang by editing the URL in the browsers address bar. See Tips and tricks below!&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks== &lt;br /&gt;
It is possible to change the displayed language by manually changing the link.  &lt;br /&gt;
*Here is the default language page at id=2306. This link is in English, the default language:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&lt;br /&gt;
*The link to change the page display to Spanish is&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=es ,&lt;br /&gt;
*When the default language is an other language, to change the page to an English version, the link would be:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=en&lt;br /&gt;
&lt;br /&gt;
Thusly, with a bit of editing, you can manually change the displayed language by adding &amp;quot;&amp;amp;lang=xx&amp;quot; to the URL in the location bar of the browser. Where xx is the abbreviation for the language you want.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Filters|Filters administration]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=51603 Multilanguage filter - does not work ...]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74340 Problems with multilang filter and SPAN tags]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=94006 Multilingual Content]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=95134 Multilingual VS HTML editor]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Filter]]&lt;br /&gt;
&lt;br /&gt;
[[es:Filtros (Administrador)]]&lt;br /&gt;
[[fr:Contenu multilingue]]&lt;br /&gt;
[[ja:多言語シンタックス]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=60633</id>
		<title>Multi-language content filter</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Multi-language_content_filter&amp;diff=60633"/>
		<updated>2009-07-28T04:30:44Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* Common problems */ details about where to activate the filter&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Multi-language content filter enables resources to be created in multiple languages. When turned on, it looks for &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;&amp;lt;/nowiki&amp;gt; tags which indicate that a text contains multiple languages. Then it selects and outputs the best language for the current user. The language of the resource will change when the user changes their selected Moodle language.&lt;br /&gt;
&lt;br /&gt;
The multilang syntax was changed in 1.8. &amp;lt;nowiki&amp;gt;&amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; is not supported any more. It is required to add &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; into each &amp;lt;nowiki&amp;gt;&amp;lt;span&amp;gt;&amp;lt;/nowiki&amp;gt; tag in multilang block. The new syntax is backwards compatible with old plugins, which means it can be used in older Moodle version.&lt;br /&gt;
&lt;br /&gt;
== How to use in a course ==&lt;br /&gt;
&lt;br /&gt;
To use this feature first create your contents in multiple languages (in the same resource). Then enclose each language block (aka multilang block) in the following tags:&lt;br /&gt;
&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;XX&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is essential to be in &#039;&#039;&#039;the code editing mode&#039;&#039;&#039; (press &amp;lt;nowiki&amp;gt;[&amp;lt;&amp;gt;]&amp;lt;/nowiki&amp;gt; in the HTML editor), when you enter these tags for them to work. Only spaces, tabs and enters can be used between the individual languages in the multilang block. Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to 1.8. There is a lang drop-down markup tool in the HTML editor in later versions of Moodle. The first versions, at least to 1.8.2, do not make &amp;quot;multilang&amp;quot; language tags. If you are working in a sufficiently new version of the HTML editor you can add these tags without going to the code editing mode.  If something doesn&#039;t work properly you should check how the markup looks in code mode. &lt;br /&gt;
&lt;br /&gt;
Following code&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
does NOT work.&lt;br /&gt;
&lt;br /&gt;
The obsoleted HTML tagging&lt;br /&gt;
       &amp;lt;nowiki&amp;gt;&amp;lt;lang lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
      &amp;lt;lang lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/lang&amp;gt;&lt;br /&gt;
&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;XX&amp;quot;&amp;gt;your_content_here&amp;lt;/span&amp;gt;&lt;br /&gt;
      &amp;lt;span lang=&amp;quot;YY&amp;quot;&amp;gt;your_content_in_other_language_here&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
will not work in 1.8 and later. In 1.8 the lang attribute without &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; can be used to mark the language of the text - see http://www.w3.org/TR/html4/struct/dirlang.html&lt;br /&gt;
&lt;br /&gt;
== How it works internally ==&lt;br /&gt;
&lt;br /&gt;
# Filter first looks for &#039;&#039;multilang blocks&#039;&#039; in the text&lt;br /&gt;
# For each multilang block:&lt;br /&gt;
#* If there are texts in the currently active language, print them&lt;br /&gt;
#* Else, if there exists texts in the current parent language, print them&lt;br /&gt;
#* Else, print the first language found in the text&lt;br /&gt;
# Text outside of multilang blocks will be shown always&lt;br /&gt;
&lt;br /&gt;
==Course summary and title tags==&lt;br /&gt;
&lt;br /&gt;
To be able to change text such as resource titles and summaries, an administrator must choose &#039;&#039;Filter all strings&#039;&#039; in the site administration.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt; &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematically&amp;lt;/span&amp;gt; &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Matematiskt (svenska)&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
functions as English or Swedish title.&lt;br /&gt;
&lt;br /&gt;
It doesn&#039;t work for course titles and site names (neither long nor short version) in some versions of Moodle. At least from 1.8.2 long course titles and site name, both full and breadcrumb were multilang filtered.  &lt;br /&gt;
&lt;br /&gt;
In the course summary:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Growth is often a major concern in planning society.&lt;br /&gt;
 How can one avoid superficial conclusions? &amp;lt;br&amp;gt;&lt;br /&gt;
(Exists in Swedish too. Finns på svenska också)&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;Tillväxt är ofta använt i samhällsdebatten. &lt;br /&gt;
Hur kan man undvika ytliga slutsatser? &lt;br /&gt;
 (Finns på engelska också. Exists in English too.)&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;/span&amp;gt; &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Can show in the chosen language (and point out that the other language is there). Please note that &#039;&#039;class=&amp;quot;multilang&amp;quot;&#039;&#039; is not required prior to Moodle 1.8.&lt;br /&gt;
&lt;br /&gt;
== Translations with tags == &lt;br /&gt;
If you wish to translate a word or phrase in an English text to another language:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot;&amp;gt; &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;quot;&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text &lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation&lt;br /&gt;
 in a running text can I do it? &amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;If I want to include an explanation (sv:&lt;br /&gt;
 förklaring) in a running text can I do it?&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
would both work, but not:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;en&amp;quot; class=&amp;quot;multilang&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
 &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;(sv: förklaring)&amp;lt;/span&amp;gt; in a running text&lt;br /&gt;
 can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;If I want to include an explanation &amp;lt;span lang=&amp;quot;sv&amp;quot; class=&amp;quot;multilang&amp;gt;&lt;br /&gt;
 (sv: förklaring)&amp;lt;/span&amp;gt; in a running text can I do it?&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
which would show the Swedish even if English was the chosen language. NOTE that before 1.8 the &amp;quot;span lang=en&amp;quot; must contain something, at least a space.&lt;br /&gt;
&lt;br /&gt;
== New multilang syntax ==&lt;br /&gt;
{{Moodle 1.8}}&lt;br /&gt;
* &amp;lt;nowiki&amp;gt;&amp;lt;span lang=&amp;quot;xx&amp;quot;&amp;gt; and &amp;lt;lang&amp;gt;&amp;lt;/nowiki&amp;gt; should not be used anymore&lt;br /&gt;
* Existing content can be upgraded using the admin/multilangupgrade.php script, there is a link in the admin notification page if a multilang upgrade is required.&lt;br /&gt;
* The multilang filter can be configured to use old syntax only - see &#039;&#039;Multi-Language Content Settings&#039;&#039;; this setting may be removed in 1.9&lt;br /&gt;
* New syntax is forced during a new 1.8 installation, for upgraded sites the new syntax is enabled after the multilang upgrade&lt;br /&gt;
&lt;br /&gt;
== Common problems ==&lt;br /&gt;
&lt;br /&gt;
* The multilang filter is not enabled. The administrator for the Moodle site you are using must go to Site administration&amp;gt; modules&amp;gt; Multilanguage Content and enable it (by clicking on the &amp;quot;eye&amp;quot;)&lt;br /&gt;
* &#039;&#039;Filter all strings&#039;&#039; not enabled on sites that need multilang in titles, navigation, headings, etc.  The administrator for the Moodle site you are using must go to Site administration&amp;gt; appearance&amp;gt; Filter settings and set a check in &amp;quot;filter alll strings&amp;quot;. This will increase server load slightly, so don&#039;t do it unless you really need it.&lt;br /&gt;
* Extra characters between language span tags - editor might add &amp;lt;nowiki&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;/nowiki&amp;gt; or other tags, please review the html in source view&lt;br /&gt;
* If the course setting is &amp;quot;force&amp;quot; some language, you won&#039;t be able to change the displayed language.&lt;br /&gt;
* Extra spaces in language span tag&lt;br /&gt;
* Can not easily access language choice dropdown! Unfortunately you must go to the site homepage or your own profile to change the displayed language. Want a change? see [http://tracker.moodle.org/browse/MDL-11531 MDL-11531]. It is possible to manually quickly change displayed lang by editing the URL in the browsers address bar.&lt;br /&gt;
&lt;br /&gt;
==Tips and tricks== &lt;br /&gt;
It is possible to change the displayed language by manually changing the link.  &lt;br /&gt;
*Here is the default language page at id=2306. This link is in English, the default language:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&lt;br /&gt;
*The link to change the page display to Spanish is&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=es ,&lt;br /&gt;
*When the default language is an other language, to change the page to an English version, the link would be:&lt;br /&gt;
:http://moodle.org/mod/resource/view.php?id=2306&amp;amp;lang=en&lt;br /&gt;
&lt;br /&gt;
Thusly, with a bit of editing, you can manually change the displayed language by adding &amp;quot;&amp;amp;lang=xx&amp;quot; to the URL in the location bar of the browser. Where xx is the abbreviation for the language you want.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
*[[Filters|Filters administration]]&lt;br /&gt;
Using Moodle forum discussions:&lt;br /&gt;
&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=51603 Multilanguage filter - does not work ...]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=74340 Problems with multilang filter and SPAN tags]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=94006 Multilingual Content]&lt;br /&gt;
*[http://moodle.org/mod/forum/discuss.php?d=95134 Multilingual VS HTML editor]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Teacher]]&lt;br /&gt;
[[Category:Filter]]&lt;br /&gt;
&lt;br /&gt;
[[es:Filtros (Administrador)]]&lt;br /&gt;
[[fr:Contenu multilingue]]&lt;br /&gt;
[[ja:多言語シンタックス]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60291</id>
		<title>Authentication FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60291"/>
		<updated>2009-07-20T17:59:04Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
An authentication plugin is a method of handling user authentication i.e. enabling certain people to login to your Moodle site.&lt;br /&gt;
&lt;br /&gt;
==How do I enable the &amp;quot;Create new account&amp;quot; button on the login page?==&lt;br /&gt;
&lt;br /&gt;
To display the &amp;quot;Is this your first time here?&amp;quot; instructions and the &amp;quot;Create new account&amp;quot; button:&lt;br /&gt;
&lt;br /&gt;
# Make sure that the [[Email-based self-registration|email-based self-registration plugin]] (or any other plugin that can support self-registration, such as LDAP) is enabled in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
# Select the self-registration plugin in the common module settings.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. See [[Reducing spam in Moodle]] for ways of minimizing the risk.&lt;br /&gt;
&lt;br /&gt;
==How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions?==&lt;br /&gt;
#Access &#039;&#039;Site administration block&amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
#Write the instructions in the &#039;&#039;auth_instructions&#039;&#039; text field.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
If your site caters to more than one language it would be better to use the admin blocks: language&amp;gt; language editing&amp;gt; choose the languages (one at a time) and click &amp;quot;edit words or phrases&amp;quot;. Choose &amp;quot;file to edit&amp;quot; : moodle.php&lt;br /&gt;
Go to the string called &amp;quot;loginsteps&amp;quot; and put in the instruction text you want (for that language). Then repeat for the other languages you want offered.&lt;br /&gt;
&lt;br /&gt;
These changes are kept in the local language packs which are not overwritten during Moodle upgrade.&lt;br /&gt;
&lt;br /&gt;
==How do I set up LDAP authentication?==&lt;br /&gt;
&lt;br /&gt;
See [[LDAP authentication]] for full instructions.&lt;br /&gt;
&lt;br /&gt;
==How is the &amp;quot;No login&amp;quot; authentication plugin used?==&lt;br /&gt;
&lt;br /&gt;
The [[No login]] authentication plugin can be used to suspend particular user accounts. To do so:&lt;br /&gt;
&lt;br /&gt;
# Access the user&#039;s profile page.&lt;br /&gt;
# Click the edit profile tab.&lt;br /&gt;
# Select &amp;quot;No login&amp;quot; as the authentication method. (If the setting isn&#039;t shown, click the &amp;quot;Show advanced&amp;quot; button to reveal it.)&lt;br /&gt;
# Click the &amp;quot;Update profile&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==Since upgrading, users are reporting that they can no longer login. What should be done?==&lt;br /&gt;
&lt;br /&gt;
If users are unable to login following an upgrade to 1.8 or 1.9, then most likely their account authentication method, such as [[Email-based self-registration]], requires enabling in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: The [[No authentication|No authentication (none)]] type should not be enabled on any production server. You can use phpmyadmin to convert all existing accounts created with &#039;none&#039; to &#039;manual&#039; or an admin can change the authentication type in [[Edit profile]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between enabling the email-based self-registration auth plugin and selecting it as the self registration method?==&lt;br /&gt;
&lt;br /&gt;
The [[Email-based self-registration| email-based self-registration authentication plugin]] must be enabled to allow users who previously self-registered to login.&lt;br /&gt;
&lt;br /&gt;
Selecting email-based self-registration as the self registration method allows potential users to self register.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. This risk can be minimized by limiting self registration to particular email domains with the allowed email domains setting in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Authentication|Manage authentication]]&#039;&#039; (or in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; prior to Moodle 1.9). Alternatively, self registration may be enabled for a short period of time to allow users to create accounts, and then later disabled.&lt;br /&gt;
&lt;br /&gt;
==How can I create an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
See [[Development:Authentication plugins]].&lt;br /&gt;
&lt;br /&gt;
==How can students without email addresses have Moodle accounts?==&lt;br /&gt;
&lt;br /&gt;
See [[No Email]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=42 User authentication forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60290</id>
		<title>Authentication FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60290"/>
		<updated>2009-07-20T17:50:43Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
An authentication plugin is a method of handling user authentication i.e. enabling certain people to login to your Moodle site.&lt;br /&gt;
&lt;br /&gt;
==How do I enable the &amp;quot;Create new account&amp;quot; button on the login page?==&lt;br /&gt;
&lt;br /&gt;
To display the &amp;quot;Is this your first time here?&amp;quot; instructions and the &amp;quot;Create new account&amp;quot; button:&lt;br /&gt;
&lt;br /&gt;
# Make sure that the [[Email-based self-registration|email-based self-registration plugin]] (or any other plugin that can support self-registration, such as LDAP) is enabled in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
# Select the self-registration plugin in the common module settings.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. See [[Reducing spam in Moodle]] for ways of minimizing the risk.&lt;br /&gt;
&lt;br /&gt;
==How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions?==&lt;br /&gt;
#Access &#039;&#039;Site administration block&amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
#Write the instructions in the &#039;&#039;auth_instructions&#039;&#039; text field.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
If your site caters to more than one language it would be better to use the admin blocks: language&amp;gt; language editing&amp;gt; choose the languages (one at a time) and click &amp;quot;edit words or phrases&amp;quot;. Choose &amp;quot;file to edit&amp;quot; : moodle.php&lt;br /&gt;
Go to the sting called &amp;quot;loginsteps&amp;quot; and put in the instruction text you want (for that language). Then repeat for the other languages you want offered.&lt;br /&gt;
&lt;br /&gt;
These changes are kept in the local language packs which are not overwritten during Moodle upgrade.&lt;br /&gt;
&lt;br /&gt;
==How do I set up LDAP authentication?==&lt;br /&gt;
&lt;br /&gt;
See [[LDAP authentication]] for full instructions.&lt;br /&gt;
&lt;br /&gt;
==How is the &amp;quot;No login&amp;quot; authentication plugin used?==&lt;br /&gt;
&lt;br /&gt;
The [[No login]] authentication plugin can be used to suspend particular user accounts. To do so:&lt;br /&gt;
&lt;br /&gt;
# Access the user&#039;s profile page.&lt;br /&gt;
# Click the edit profile tab.&lt;br /&gt;
# Select &amp;quot;No login&amp;quot; as the authentication method. (If the setting isn&#039;t shown, click the &amp;quot;Show advanced&amp;quot; button to reveal it.)&lt;br /&gt;
# Click the &amp;quot;Update profile&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==Since upgrading, users are reporting that they can no longer login. What should be done?==&lt;br /&gt;
&lt;br /&gt;
If users are unable to login following an upgrade to 1.8 or 1.9, then most likely their account authentication method, such as [[Email-based self-registration]], requires enabling in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: The [[No authentication|No authentication (none)]] type should not be enabled on any production server. You can use phpmyadmin to convert all existing accounts created with &#039;none&#039; to &#039;manual&#039; or an admin can change the authentication type in [[Edit profile]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between enabling the email-based self-registration auth plugin and selecting it as the self registration method?==&lt;br /&gt;
&lt;br /&gt;
The [[Email-based self-registration| email-based self-registration authentication plugin]] must be enabled to allow users who previously self-registered to login.&lt;br /&gt;
&lt;br /&gt;
Selecting email-based self-registration as the self registration method allows potential users to self register.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. This risk can be minimized by limiting self registration to particular email domains with the allowed email domains setting in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Authentication|Manage authentication]]&#039;&#039; (or in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; prior to Moodle 1.9). Alternatively, self registration may be enabled for a short period of time to allow users to create accounts, and then later disabled.&lt;br /&gt;
&lt;br /&gt;
==How can I create an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
See [[Development:Authentication plugins]].&lt;br /&gt;
&lt;br /&gt;
==How can students without email addresses have Moodle accounts?==&lt;br /&gt;
&lt;br /&gt;
See [[No Email]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=42 User authentication forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60270</id>
		<title>Authentication FAQ</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Authentication_FAQ&amp;diff=60270"/>
		<updated>2009-07-20T16:38:24Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions? */ Use language editing instead-saving tho not finished cause my browser keeps crashing!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==What is an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
An authentication plugin is a method of handling user authentication i.e. enabling certain people to login to your Moodle site.&lt;br /&gt;
&lt;br /&gt;
==How do I enable the &amp;quot;Create new account&amp;quot; button on the login page?==&lt;br /&gt;
&lt;br /&gt;
To display the &amp;quot;Is this your first time here?&amp;quot; instructions and the &amp;quot;Create new account&amp;quot; button:&lt;br /&gt;
&lt;br /&gt;
# Make sure that the [[Email-based self-registration|email-based self-registration plugin]] (or any other plugin that can support self-registration, such as LDAP) is enabled in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
# Select the self-registration plugin in the common module settings.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. See [[Reducing spam in Moodle]] for ways of minimizing the risk.&lt;br /&gt;
&lt;br /&gt;
==How can I change the &amp;quot;Is this your first time here?&amp;quot; instructions?==&lt;br /&gt;
#Access &#039;&#039;Site administration block&amp;gt; Users &amp;gt; Authentication &amp;gt; [[Manage authentication]]&#039;&#039;.&lt;br /&gt;
#Write the instructions in the &#039;&#039;auth_instructions&#039;&#039; text field.&lt;br /&gt;
#Click the &amp;quot;Save changes&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
If your site caters to more than one language it would be better to use the admin blocks: language&amp;gt; language editing&amp;gt; choose the languages (one at a time) and click &amp;quot;edit words or phrases&amp;quot;. Choose &amp;quot;file to edit&amp;quot; : moodle.php&lt;br /&gt;
&lt;br /&gt;
==How do I set up LDAP authentication?==&lt;br /&gt;
&lt;br /&gt;
See [[LDAP authentication]] for full instructions.&lt;br /&gt;
&lt;br /&gt;
==How is the &amp;quot;No login&amp;quot; authentication plugin used?==&lt;br /&gt;
&lt;br /&gt;
The [[No login]] authentication plugin can be used to suspend particular user accounts. To do so:&lt;br /&gt;
&lt;br /&gt;
# Access the user&#039;s profile page.&lt;br /&gt;
# Click the edit profile tab.&lt;br /&gt;
# Select &amp;quot;No login&amp;quot; as the authentication method. (If the setting isn&#039;t shown, click the &amp;quot;Show advanced&amp;quot; button to reveal it.)&lt;br /&gt;
# Click the &amp;quot;Update profile&amp;quot; button at the bottom of the page.&lt;br /&gt;
&lt;br /&gt;
==Since upgrading, users are reporting that they can no longer login. What should be done?==&lt;br /&gt;
&lt;br /&gt;
If users are unable to login following an upgrade to 1.8 or 1.9, then most likely their account authentication method, such as [[Email-based self-registration]], requires enabling in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Note: The [[No authentication|No authentication (none)]] type should not be enabled on any production server. You can use phpmyadmin to convert all existing accounts created with &#039;none&#039; to &#039;manual&#039; or an admin can change the authentication type in [[Edit profile]].&lt;br /&gt;
&lt;br /&gt;
==What is the difference between enabling the email-based self-registration auth plugin and selecting it as the self registration method?==&lt;br /&gt;
&lt;br /&gt;
The [[Email-based self-registration| email-based self-registration authentication plugin]] must be enabled to allow users who previously self-registered to login.&lt;br /&gt;
&lt;br /&gt;
Selecting email-based self-registration as the self registration method allows potential users to self register.&lt;br /&gt;
&lt;br /&gt;
Warning: Enabling self registration results in the possibility of spammers creating accounts in order to use forum posts, blog entries etc. for spam. This risk can be minimized by limiting self registration to particular email domains with the allowed email domains setting in &#039;&#039;Administration &amp;gt; Users &amp;gt; Authentication &amp;gt; [[Authentication|Manage authentication]]&#039;&#039; (or in &#039;&#039;Administration &amp;gt; Server &amp;gt; [[Email settings|Email]]&#039;&#039; prior to Moodle 1.9). Alternatively, self registration may be enabled for a short period of time to allow users to create accounts, and then later disabled.&lt;br /&gt;
&lt;br /&gt;
==How can I create an authentication plugin?==&lt;br /&gt;
&lt;br /&gt;
See [[Development:Authentication plugins]].&lt;br /&gt;
&lt;br /&gt;
==How can students without email addresses have Moodle accounts?==&lt;br /&gt;
&lt;br /&gt;
See [[No Email]].&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
&lt;br /&gt;
* Using Moodle [http://moodle.org/mod/forum/view.php?id=42 User authentication forum]&lt;br /&gt;
&lt;br /&gt;
[[Category:Authentication]]&lt;br /&gt;
[[Category:FAQ]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=59640</id>
		<title>Broken/Setting up Netbeans</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=59640"/>
		<updated>2009-07-10T09:58:39Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== CVS instructions ==&lt;br /&gt;
&lt;br /&gt;
I copied the instructions from [[User:Gary_Anderson| Gary Anderson]]&#039;s &#039;&#039;NetBeans for Moodle Development course&#039;&#039; (http://moodle2.seattleacademy.org/wiki/index.php/Get_the_Moodle_Software, http://moodle2.seattleacademy.org/course/view.php?id=5). There might be some redundancies which still have to be amended. --[[User:Frank Ralf|Frank Ralf]] 09:43, 20 May 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
: I was in the Gary Andersson course and there was a prepared package there with both NetBeans and Moodle. But Right now I can&#039;t get to that course at all. I am setting up on another computer and would like to have the latest NetBeans 6.7, and set up Moodle preferably both 1.9.5+ and HEAD 2.0. &lt;br /&gt;
&lt;br /&gt;
: When I see the instructions here I don&#039;t see anything about getting the xamp server setup. &lt;br /&gt;
&lt;br /&gt;
: I also wonder about if one should maybe use a complete install package first than connect that to NetBeans and after that try doing CVS updating through NetBeans. (I maybe wrong, but I assume that doing a complete install via CVS would take much longer.)  I also assume that I must than create an extra Moodle database in MySQL and of course a separate folder if I want to install 2.0 also.  [[User:Jeff Forssell|Jeff Forssell]] 13:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:: Hi Jeff, If you want to use CVS you should do a manual installation.&lt;br /&gt;
::* Setting up XAMPP is nothing more than downloading and unpacking it, really painless. The web server&#039;s directory will be \htdocs\.&lt;br /&gt;
::* Then you install NetBeans 6.7 and do separate CVS checkouts for HEAD (2.0) and 1.9.5 into separate directories (e.g. \htdocs\moodle19\ and \htdocs\moodle20\.&lt;br /&gt;
::* Then you can run Moodle 1.9.5 under &amp;quot;localhost/moodle19/&amp;quot; in your browser and Moodle &amp;quot;localhost/moodle20/&amp;quot;. &lt;br /&gt;
:: Further details for manually setting up Moodle you&#039;ll find under [[Windows installation using XAMPP]]. hth --[[User:Frank Ralf|Frank Ralf]] 13:42, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::Thanx&lt;br /&gt;
&lt;br /&gt;
:::I&#039;ve done lots of xampp installs of the Moodle complete packages, but never just xampp alone. Should I interpret your answer as I have to install Moodle via CVS if I want to use CVS to keep it updated? And that it won&#039;t be ridiculously long time doing the original checkout? In the GA course we did a CVS update of the original install, but I don&#039;t know if he had done that package by doing a CVS checkout. (It just doesn&#039;t feel like that was what was going on!) &lt;br /&gt;
:::: The first checkout might take some time, but as far as I remember it&#039;s done in about 15 minutes. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::: Oh well I suppose it&#039;s time to learn to create MySQL databases for Moodle without complete packages or Fantastico! [[User:Jeff Forssell|Jeff Forssell]] 15:04, 9 July 2009 (UTC)&lt;br /&gt;
:::: XAMPP comes with PHPMyAdmin for MySQL administration. That&#039;s a very useful tool and worth exploring. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::: Just another thing: Moodle 2.0 requires quite recent versions of PHP and MySQL. So for using HEAD I had to install a new version of XAMPP (I have two versions installed on my development machine which is no problem, you only should not run them at the same time). --[[User:Frank Ralf|Frank Ralf]] 16:14, 9 July 2009 (UTC)&lt;br /&gt;
::::: I have now CVSed moodle 1.9 with NetBeans - it took less than 10 mins. Created a new project. Then it started &amp;quot;scanning projects&amp;quot; - I didn&#039;t know what it is doing and it wasn&#039;t finished after more than 10 minutes. I see now that it has stopped. Anyhow now I\ve also done the same with HEAD / moodle20.&lt;br /&gt;
&lt;br /&gt;
:::::I have some hesitation about trying to &amp;quot;run&amp;quot; them. Anything one should do before that other than creating the projects?  [[User:Jeff Forssell|Jeff Forssell]] 08:55, 10 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::::: I see when trying to RUN that my moodle 2.0 is in http://localhost/moodle20/moodle/install.php while i thought it would be in http://localhost/moodle20/install.php. Maybe that&#039;s good because the NB proj files are in a folder there too. &lt;br /&gt;
&lt;br /&gt;
:::::When I get to the &amp;quot;web address&amp;quot; page that is greyed out. I was hoping to try out setting the computer name so I could access from others on my intranet. How can I change that (from &amp;quot;localhost&amp;quot;)?&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=59632</id>
		<title>Broken/Setting up Netbeans</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Broken/Setting_up_Netbeans&amp;diff=59632"/>
		<updated>2009-07-10T08:55:52Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== CVS instructions ==&lt;br /&gt;
&lt;br /&gt;
I copied the instructions from [[User:Gary_Anderson| Gary Anderson]]&#039;s &#039;&#039;NetBeans for Moodle Development course&#039;&#039; (http://moodle2.seattleacademy.org/wiki/index.php/Get_the_Moodle_Software, http://moodle2.seattleacademy.org/course/view.php?id=5). There might be some redundancies which still have to be amended. --[[User:Frank Ralf|Frank Ralf]] 09:43, 20 May 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
: I was in the Gary Andersson course and there was a prepared package there with both NetBeans and Moodle. But Right now I can&#039;t get to that course at all. I am setting up on another computer and would like to have the latest NetBeans 6.7, and set up Moodle preferably both 1.9.5+ and HEAD 2.0. &lt;br /&gt;
&lt;br /&gt;
: When I see the instructions here I don&#039;t see anything about getting the xamp server setup. &lt;br /&gt;
&lt;br /&gt;
: I also wonder about if one should maybe use a complete install package first than connect that to NetBeans and after that try doing CVS updating through NetBeans. (I maybe wrong, but I assume that doing a complete install via CVS would take much longer.)  I also assume that I must than create an extra Moodle database in MySQL and of course a separate folder if I want to install 2.0 also.  [[User:Jeff Forssell|Jeff Forssell]] 13:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:: Hi Jeff, If you want to use CVS you should do a manual installation.&lt;br /&gt;
::* Setting up XAMPP is nothing more than downloading and unpacking it, really painless. The web server&#039;s directory will be \htdocs\.&lt;br /&gt;
::* Then you install NetBeans 6.7 and do separate CVS checkouts for HEAD (2.0) and 1.9.5 into separate directories (e.g. \htdocs\moodle19\ and \htdocs\moodle20\.&lt;br /&gt;
::* Then you can run Moodle 1.9.5 under &amp;quot;localhost/moodle19/&amp;quot; in your browser and Moodle &amp;quot;localhost/moodle20/&amp;quot;. &lt;br /&gt;
:: Further details for manually setting up Moodle you&#039;ll find under [[Windows installation using XAMPP]]. hth --[[User:Frank Ralf|Frank Ralf]] 13:42, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::Thanx&lt;br /&gt;
&lt;br /&gt;
:::I&#039;ve done lots of xampp installs of the Moodle complete packages, but never just xampp alone. Should I interpret your answer as I have to install Moodle via CVS if I want to use CVS to keep it updated? And that it won&#039;t be ridiculously long time doing the original checkout? In the GA course we did a CVS update of the original install, but I don&#039;t know if he had done that package by doing a CVS checkout. (It just doesn&#039;t feel like that was what was going on!) &lt;br /&gt;
:::: The first checkout might take some time, but as far as I remember it&#039;s done in about 15 minutes. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
::: Oh well I suppose it&#039;s time to learn to create MySQL databases for Moodle without complete packages or Fantastico! [[User:Jeff Forssell|Jeff Forssell]] 15:04, 9 July 2009 (UTC)&lt;br /&gt;
:::: XAMPP comes with PHPMyAdmin for MySQL administration. That&#039;s a very useful tool and worth exploring. --[[User:Frank Ralf|Frank Ralf]] 16:02, 9 July 2009 (UTC)&lt;br /&gt;
&lt;br /&gt;
:::: Just another thing: Moodle 2.0 requires quite recent versions of PHP and MySQL. So for using HEAD I had to install a new version of XAMPP (I have two versions installed on my development machine which is no problem, you only should not run them at the same time). --[[User:Frank Ralf|Frank Ralf]] 16:14, 9 July 2009 (UTC)&lt;br /&gt;
::::: I have now CVSed moodle 1.9 with NetBeans - it took less than 10 mins. Created a new project. Then it started &amp;quot;scanning projects&amp;quot; - I didn&#039;t know what it is doing and it wasn&#039;t finished after more than 10 minutes. I see now that it has stopped. Anyhow now I\ve also done the same with HEAD / moodle20.&lt;br /&gt;
&lt;br /&gt;
:::::I have some hesitation about trying to &amp;quot;run&amp;quot; them. Anything one should do before that other than creating the projects?  [[User:Jeff Forssell|Jeff Forssell]] 08:55, 10 July 2009 (UTC)&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/4x/sv/index.php?title=Setting_up_Netbeans&amp;diff=59628</id>
		<title>Setting up Netbeans</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/4x/sv/index.php?title=Setting_up_Netbeans&amp;diff=59628"/>
		<updated>2009-07-10T07:48:02Z</updated>

		<summary type="html">&lt;p&gt;Jeffjeff: /* CVS with NetBeans */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.netbeans.org/features/php/index.html NetBeans] has got a good PHP support. You find a host of information on the website (tutorials, developer blog, screen casts, etc.).&lt;br /&gt;
&lt;br /&gt;
== Features ==&lt;br /&gt;
* CVS integration: see all changes, lines deletion, diff in real time, show annotations, diff history...&lt;br /&gt;
* Ctrl+Click: Go to declaration&lt;br /&gt;
* Export/Import Diff Patch&lt;br /&gt;
* Easy navigation&lt;br /&gt;
* List of functions&lt;br /&gt;
* Code completion&lt;br /&gt;
* Instant rename&lt;br /&gt;
* HTML, CSS, JavaScript support&lt;br /&gt;
* MySQL manager&lt;br /&gt;
* Quick Search&lt;br /&gt;
* Very few bugs&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
* I recommend to download the latest [http://www.netbeans.org/downloads/index.html 6.5 version with PHP support ]. It&#039;s only a 26 MB download.&lt;br /&gt;
* Install and run it.&lt;br /&gt;
&lt;br /&gt;
== Set up for Moodle development ==&lt;br /&gt;
&lt;br /&gt;
* Checkout your Moodle project with a &#039;&#039;&#039;CVS client&#039;&#039;&#039; - see [[CVS for Administrators]] or [[Development:CVS for developers|CVS for Developers]]. I personally prefer to use an external client in order to realise the CVS Delete operation on my own. &lt;br /&gt;
&lt;br /&gt;
* Open File &amp;gt; New Project &amp;gt; PHP &amp;gt; PHP Application &amp;gt; Next &lt;br /&gt;
: You&#039;re going to set the project now. &#039;&#039;Name&#039;&#039;, &#039;&#039;Location&#039;&#039; and &#039;&#039;Folder&#039;&#039; are used by NetBeans and are not related to the source code. So you can choose whatever you like, except your source folder. &#039;&#039;Sources&#039;&#039; has to be your checked out Moodle branch/head folder. The rest is clear enough. Don&#039;t forget to choose UTF-8 for &#039;&#039;Default Encoding&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
: Example:&lt;br /&gt;
&lt;br /&gt;
 Project Name:        Moodle 1.9 Stable&lt;br /&gt;
 Project Location:    C:\Users\jerome\Documents\NetBeansProjects&lt;br /&gt;
 Project Folder:      C:\Users\jerome\Documents\NetBeansProjects\Moodle 1.9 Stable&lt;br /&gt;
 Project Sources:     C:\Users\jerome\Projects\branch19_STABLE\moodle&lt;br /&gt;
 Project URL:         http://localhost/moodle19/&lt;br /&gt;
 Index File:          index.php&lt;br /&gt;
 Create:              unchecked&lt;br /&gt;
 Default Encoding:    UTF-8&lt;br /&gt;
 Set as Main Project: unchecked&lt;br /&gt;
&lt;br /&gt;
* Click on Finish.&lt;br /&gt;
&lt;br /&gt;
* Start coding!&lt;br /&gt;
&lt;br /&gt;
== CVS with NetBeans ==&lt;br /&gt;
&lt;br /&gt;
NetBeans comes with &#039;&#039;&#039;integrated CVS support&#039;&#039;&#039; which might be the easiest way to check out Moodle.&lt;br /&gt;
&lt;br /&gt;
* In NetBeans, select Window-&amp;gt;Versioning-&amp;gt;CVS-&amp;gt;Checkout&lt;br /&gt;
* Select Team-&amp;gt;CVS-&amp;gt;Checkout&lt;br /&gt;
* Enter into CVS Root: &#039;&#039;:pserver:anonymous@us.cvs.moodle.org:/cvsroot/moodle&#039;&#039;&lt;br /&gt;
: (Non-US-residents might use one of the other [https://docs.moodle.org/en/CVS_for_Administrators#CVS_Servers Moodle CVS servers] nearer to them.)&lt;br /&gt;
* Click &#039;&#039;Next&#039;&#039;&lt;br /&gt;
* Browse or enter into &#039;&#039;Module:&#039;&#039; moodle&lt;br /&gt;
* Browse or enter into &#039;&#039;Branch:&#039;&#039; MOODLE_19_STABLE&lt;br /&gt;
* Browse or enter into &#039;&#039;Local Folder:&#039;&#039; C:\xampp\htdocs&lt;br /&gt;
* Click &#039;&#039;Finish&#039;&#039; (and wait a few minutes for Moodle to be checked out)&lt;br /&gt;
* When you get the dialog box &amp;quot;Do you want to create an IDE project from the checked-out sources?&amp;quot;, Click &amp;quot;Create Project...&amp;quot;&lt;br /&gt;
* Select PHP Application with Existing Sources, and click Next&lt;br /&gt;
* Browse or enter into &#039;&#039;Sources Folder&#039;&#039; C:\xampp\htdocs\moodle&lt;br /&gt;
* Enter into &#039;&#039;Project Name:&#039;&#039; moodle&lt;br /&gt;
* Keep the other defaults and click next&lt;br /&gt;
* &#039;&#039;Run As:&#039;&#039; should have selected &#039;&#039;Local Web Site (running on local web server)&#039;&#039;&lt;br /&gt;
* Enter into Project URL http://localhost/moodle/&lt;br /&gt;
* Browse or enter into &#039;&#039;Index File:&#039;&#039; index.php&lt;br /&gt;
* Click &#039;&#039;Finish&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Optimization ==&lt;br /&gt;
&lt;br /&gt;
1. You could want to run Netbeans with the Sun JDK. Netbeans seems to work a bit better with the Sun JDK. Download it from there: [http://java.sun.com/javase/downloads/index.jsp]. You&#039;ll have to edit Netbeans config file. Open netbeans/etc/netbeans.conf. Then uncomment and edit: &lt;br /&gt;
&lt;br /&gt;
 netbeans_jdkhome=&amp;quot;your_JDK_path&amp;quot;&lt;br /&gt;
&lt;br /&gt;
2. To change the Netbeans look and feel run netbeans in command line with this parameter:&lt;br /&gt;
 &amp;quot;netbeans&amp;quot;  --laf javax.swing.plaf.metal.MetalLookAndFeel &lt;br /&gt;
&lt;br /&gt;
3. If Netbeans starts to slow down, give it more memory&lt;br /&gt;
 &amp;quot;netbeans&amp;quot; -J-Xmx600m&lt;br /&gt;
&lt;br /&gt;
== See also: ==&lt;br /&gt;
* Moodle forum: [http://moodle.org/mod/forum/discuss.php?d=112972 NetBeans 6.5 for moodle/PHP/debugging is a better experience v.s Eclipse]&lt;br /&gt;
* [http://www.netbeans.org/kb/trails/php.html NetBeans PHP Learning Trail]&lt;br /&gt;
* [http://wiki.netbeans.org/PHP NetBeans PHP Wiki]&lt;br /&gt;
* [http://blogs.sun.com/netbeansphp/ NetBeans for PHP Blog]&lt;br /&gt;
&lt;br /&gt;
[[Category:Developer|NetBeans]]&lt;br /&gt;
[[Category:Developer tools|NetBeans]]&lt;/div&gt;</summary>
		<author><name>Jeffjeff</name></author>
	</entry>
</feed>