File: embedans.phtml

package info (click to toggle)
wims 2%3A4.29a%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 185,704 kB
  • sloc: xml: 366,687; javascript: 120,570; ansic: 62,341; java: 62,170; sh: 7,744; perl: 3,937; yacc: 3,217; cpp: 1,915; lex: 1,805; makefile: 1,084; lisp: 914; pascal: 601; python: 520; php: 318; asm: 7
file content (28 lines) | stat: -rw-r--r-- 1,723 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<h4>Embed answers into the statements</h4>

:signification
It is possible to embed (include) answers into the statement of your
exercises under html format. The embedded replies and choices should be
defined usually.

:example
 <span class="wims_help_example">Examples</span>
 <ul>
  <li><span class="tt wims_code_words">\embed{reply 1}</span> insert the first freestyle reply into the text.</li>
  <li><span class="tt wims_code_words">\embed{reply 2,10}</span> insert the second freestyle reply into the text,
with an input field of size 10.</li>
  <li><span class="tt wims_code_words">\embed{choice 1}</span> insert the first multiple choice into the text.</li>
  <li><span class="tt wims_code_words">\embed{reply 1,\i, \pick[\i;]}</span> When type is a multiple choice, insert choice #<span class="tt">\i</span> into the text, but its appearance will be "<span class="tt">\pick[\i;]</span>". With this, you can have very simple choices (A,B,C), but with complex appearances (like mathematics formula).</li>
</ul>

Special case. If the type of <span class="tt wims_code_words">reply 1</span> is among <span class="tt wims_code_words">checkbox</span>,
<span class="tt wims_code_words">click</span>, <span class="tt wims_code_words">radio</span>, <span class="tt wims_code_words">\embed{reply 1,2}</span>
inserts only one of the choices (here the number 2 in this case), either
clickable (<span class="tt wims_code_words">click</span>) or with a button for marking it. This allows
insertions of the choices in versatile text structures.

<p>
In the case of the <span class="tt wims_code_words>"menu</spn> type,
it is obligatory to put <span class="tt wims_code_words">\embed{reply 1}</span>
without a second argument.
</p>