File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Authoring_Responseparam_Parameter.tex
Revision
1.3:
download - view:
text,
annotated -
select for diffs
Fri Dec 2 15:29:19 2016 UTC (7 years, 11 months ago) by
damieng
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
version_2_11_5,
version_2_11_4_uiuc,
version_2_11_4_msu,
version_2_11_4,
version_2_11_3_uiuc,
version_2_11_3_msu,
version_2_11_3,
version_2_11_2_uiuc,
version_2_11_2_msu,
version_2_11_2_educog,
version_2_11_2,
HEAD
fixed bug 6730
\label{Authoring_Responseparam_Parameter}
If \textbf{responseparam} appears, it should be inside of a response
tag. It defines an externally adjustable parameter for the question,
which the question can then use to allow other users to customize the problem
for their courses without changing the source code of the problem.
Possible attributes are:
\begin{itemize}
\item \textbf{default}\index{default}: required. Specifies a default value
for the parameter.
\item \textbf{name}\index{name}: required. Specifies an internal name for
the parameter.
\item \textbf{type}\index{type}: required. Specifies the type of parameter:
\textbf{tolerance}, \textbf{int}, \textbf{float}, \textbf{string},
or \textbf{date}. Additional constraints for the type can be specified by
adding an underscore and the constraint name to the type, for instance
\texttt{int\_pos} means \textit{strictly positive integer}.
\item \textbf{description}\index{description}: string describing the
parameter. This is what is used to talk about a parameter outside
of a problem.
\end{itemize}
\textbf{parameter} is exactly the same as \textbf{responseparam},
but should appear outside of a response tag.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>