As for now the Quiz extension uses raw HTML tags in code to generate the HTML form code for a quiz.
This should be avoided and instead of using this, the better way would be to use a mustache template using the TemplateParser class.
See also: https://www.mediawiki.org/wiki/Manual:HTML_templates
The Quiz extension was created by a volunteer and is currently installed on several WMF projects, such as [[ https://www.wikiversity.org/ | Wikiversity ]].
== Getting started ==
Install mediawiki locally. It is easiest (often) to use [[ https://www.mediawiki.org/wiki/MediaWiki-Vagrant | vagrant ]] for this. Quiz is not available as a role in vagrant, so follow [[ https://www.mediawiki.org/wiki/MediaWiki-Vagrant#How_do_I....3F | these directions to manually add lines to LocalSettings.php ]] in vagrant, and include the line
```
require_once("$IP/extensions/Quiz/Quiz.php");
```
You can test that the extension is working by adding a sample quiz to your test wiki in wikitext. The quiz syntax is well documented [[ https://en.wikiversity.org/wiki/Help:Quiz | here ]].
You can find the quiz extension in the vagrant repository by navigating to mediawiki/extensions/Quiz. If you haven't already, you will need to [[ https://www.mediawiki.org/wiki/Gerrit/Tutorial | set up git, gerrit, and git-review ]], and [[ https://www.mediawiki.org/wiki/MediaWiki-Vagrant#Pushing_commits | install a gerrit hook ]] to begin submitting commits to the Quiz extension.