Rev 5798 | Rev 5921 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 5798 | Rev 5920 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | Array addressing: if the variable $(emph)l$emphend contains a |
43 | Array addressing: if the variable $(emph)l$emphend contains a |
44 | comma-separated list $(emph)a,b,c,d,e$emphend, then the string |
44 | comma-separated list $(emph)a,b,c,d,e$emphend, then the string |
45 | <tt>$$(i[3])</tt> gives <tt>c</tt> after substitution, and |
45 | <tt>$$(i[3])</tt> gives <tt>c</tt> after substitution, and |
46 | <tt>$$(i[2 to 4])</tt> tives <tt>b,c,d</tt>, etc. |
46 | <tt>$$(i[2 to 4])</tt> tives <tt>b,c,d</tt>, etc. |
47 | </p><p> |
47 | </p><p> |
48 | Two-dimensional array addressing is also available: if |
48 | Two-dimensional array addressing is also available: if</p> |
49 | <pre>$$M=x,y,z;a,b,c</pre> |
49 | <pre>$$M=x,y,z;a,b,c</pre> |
50 | (a 2x3 matrix), then |
50 | (a 2x3 matrix), then |
51 | <pre>$$(M[1;3,2])=z,y</pre> |
51 | <pre>$$(M[1;3,2])=z,y</pre> |
52 | </li><li>If the character $emph$$$emphend is followed by the left bracket |
52 | </li><li>If the character $emph$$$emphend is followed by the left bracket |
53 | $emph[$emphend, the matching $emph]$emphend will be located, the content |
53 | $emph[$emphend, the matching $emph]$emphend will be located, the content |
Line 69... | Line 69... | ||
69 | substitutions; infinite nested substitions will violate this limit and |
69 | substitutions; infinite nested substitions will violate this limit and |
70 | generate an error message. |
70 | generate an error message. |
71 | </li> |
71 | </li> |
72 | </ul> |
72 | </ul> |
73 | 73 | ||
74 |
|
74 | <hr/> |
75 | <h4>Reserved variable names</h4> |
75 | <h4>Reserved variable names</h4> |
76 | 76 | ||
77 | The following names are reserved for their special meanings. They should not be |
77 | The following names are reserved for their special meanings. They should not be |
78 | used for internal needs of any module. |
78 | used for internal needs of any module. |
79 | 79 | ||
Line 107... | Line 107... | ||
107 | meanings: they are used to hold variables defined in the module's INDEX |
107 | meanings: they are used to hold variables defined in the module's INDEX |
108 | file. Currently implemented variables: |
108 | file. Currently implemented variables: |
109 | 109 | ||
110 | $table_header |
110 | $table_header |
111 | $table_tr<th> Variables</th><th>Meaning</th></tr> |
111 | $table_tr<th> Variables</th><th>Meaning</th></tr> |
112 | $table_tr<td>$emph module_title$emphend<td>title |
112 | $table_tr<td>$emph module_title$emphend</td><td>title of the module</td></tr> |
113 | $table_tr<td>$emph module_description$emphend<td>short |
113 | $table_tr<td>$emph module_description$emphend</td><td>short description of the module</td></tr> |
114 | $table_tr<td>$emph module_author$emphend<td>name |
114 | $table_tr<td>$emph module_author$emphend</td><td>name(s) of author(s) of the module</td></tr> |
115 | $table_tr<td>$emph module_address$emphend<td>e-mail |
115 | $table_tr<td>$emph module_address$emphend</td><td>e-mail address of the (principal) author</td></tr> |
116 | $table_tr<td>$emph module_maintainer$emphend<td>name |
116 | $table_tr<td>$emph module_maintainer$emphend</td><td>name of the actual maintainer</td></tr> |
117 | $table_tr<td>$emph module_maintainer_address$emphend<td>e-mail address |
117 | $table_tr<td>$emph module_maintainer_address$emphend</td><td>e-mail address of the maintainer</td></tr> |
118 | $table_tr<td>$emph module_copyright$emphend<td>copyright |
118 | $table_tr<td>$emph module_copyright$emphend</td><td>copyright notice of the module</td></tr> |
119 | $table_tr<td>$emph module_version$emphend<td>current |
119 | $table_tr<td>$emph module_version$emphend</td><td>current version of the module</td></tr> |
120 | $table_tr<td>$emph module_wims_version$emphend<td>minimal wims version required<br/> |
120 | $table_tr<td>$emph module_wims_version$emphend</td><td>minimal wims version required<br/> |
121 | to run this module |
121 | to run this module</td></tr> |
122 | $table_tr<td>$emph module_language$emphend<td>language |
122 | $table_tr<td>$emph module_language$emphend</td><td>language of the module<br/>(en, fr, de, or ...)</td></tr> |
123 | $table_tr<td>$emph module_category$emphend<td>category of the module<br/> |
123 | $table_tr<td>$emph module_category$emphend</td><td>category of the module<br/> |
124 | (exercise, tool, course, pedia, recreation, adm, other) |
124 | (exercise, tool, course, pedia, recreation, adm, other)</td></tr> |
125 | $table_tr<td>$emph module_level$emphend<td>level |
125 | $table_tr<td>$emph module_level$emphend</td><td>level of the module</td></tr> |
126 | $table_tr<td>$emph module_domain$emphend<td>algebra, |
126 | $table_tr<td>$emph module_domain$emphend</td><td>algebra, analysis, geometry, ...</td></tr> |
127 | $table_tr<td>$emph module_keywords$emphend<td>keywords, |
127 | $table_tr<td>$emph module_keywords$emphend</td><td>keywords, to be placed in the html header</td></tr> |
128 | $table_tr<td>$emph module_scoring$emphend<td>= yes if |
128 | $table_tr<td>$emph module_scoring$emphend</td><td>= yes if the module gives scores according to wims standard</td></tr> |
129 | $table_tr<td>$emph module_data$emphend<td>address |
129 | $table_tr<td>$emph module_data$emphend</td><td>address of datamodule</td></tr> |
130 | 130 | ||
131 | </table> |
131 | </table> |
132 | Also, variables $emph module_has_intro$emphend, |
132 | Also, variables $emph module_has_intro$emphend, |
133 | $emph module_has_help$emphend and |
133 | $emph module_has_help$emphend and |
134 | $emph module_has_about$emphend |
134 | $emph module_has_about$emphend |