Form

Progress Graph: Difference between revisions

(added mapping for dropdown menu + docu (notes and usage))
m (→‎Notes: add link to progress graph tempalte)
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
<noinclude>
<noinclude>
== Notes ==
== Notes ==
The dropdown menu uses a template to map values to a label. See [https://graphit.ur.de/wiki/Template:Map_Dropdown here].  
The form uses a template to display a personalized progress graph to students. See [[Template:Progress_Graph]].


The dropdown menu uses a template to map values to a label. See [[Template:Map_Dropdown]].
The template uses an unnamed parameter to switch between values and their "aliases".
The template uses an unnamed parameter to switch between values and their "aliases".




If you want to add another course to the dropdown menu, you need to...
If you want to '''add''' another selectable course to the dropdown menu, you need to...
* add a value to the list of '''values''' in the ''formtable'' above
* add a value to the list of '''values''' in the ''formtable'' above
** values have the form <code>Q923</code>, i.e. the qid of an item
** values have the form <code>Q923</code>, i.e. the qid of a course-item
* Go to the linked template and add a new field, e.g. <code> | Q923=CGBV 24SS</code>
* Go to the linked template and add a new field, e.g. <code> | Q923=CGBV 24SS</code>
** where <code>Q923</code> value previously added to the ''formtabel''
** where <code>Q923</code> value previously added to the ''formtabel''

Latest revision as of 08:33, 17 April 2024

This is the "Progress Graph" form. To create a page with this form, enter the page name below; if a page with that name already exists, you will be sent to a form to edit that page.



Notes

The form uses a template to display a personalized progress graph to students. See Template:Progress_Graph.

The dropdown menu uses a template to map values to a label. See Template:Map_Dropdown. The template uses an unnamed parameter to switch between values and their "aliases".


If you want to add another selectable course to the dropdown menu, you need to...

  • add a value to the list of values in the formtable above
    • values have the form Q923, i.e. the qid of a course-item
  • Go to the linked template and add a new field, e.g. | Q923=CGBV 24SS
    • where Q923 value previously added to the formtabel
    • and CGBV 24SS is the label you later want to display in the dropdown menu


See the docs

  • tried to use external data for the values, but it didn't seem to set any variables inside the form. The same query worked otherwise.

Usage

can be included in pages like this:

{{#queryformlink:form=Progress Graph|link text=Click here|link type=button|tooltip=Personalized Progress Graph}}

or see the docs