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, 8 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

    1: \label{Authoring_Responseparam_Parameter}
    2: 
    3: 
    4: If \textbf{responseparam} appears, it should be inside of a response
    5: tag. It defines an externally adjustable parameter for the question,
    6: which the question can then use to allow other users to customize the problem
    7: for their courses without changing the source code of the problem.
    8: Possible attributes are:
    9: 
   10: \begin{itemize}
   11: \item \textbf{default}\index{default}: required. Specifies a default value
   12: for the parameter.
   13: \item \textbf{name}\index{name}: required. Specifies an internal name for
   14: the parameter. 
   15: \item \textbf{type}\index{type}: required. Specifies the type of parameter:
   16: \textbf{tolerance}, \textbf{int}, \textbf{float}, \textbf{string},
   17: or \textbf{date}. Additional constraints for the type can be specified by
   18: adding an underscore and the constraint name to the type, for instance
   19: \texttt{int\_pos} means \textit{strictly positive integer}.
   20: \item \textbf{description}\index{description}: string describing the
   21: parameter. This is what is used to talk about a parameter outside
   22: of a problem.
   23: \end{itemize}
   24: \textbf{parameter} is exactly the same as \textbf{responseparam},
   25: but should appear outside of a response tag.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>