Progress Graph: Difference between revisions
(added mapping for dropdown menu + docu (notes and usage)) |
m (→Notes: update template link) |
||
Line 23: | Line 23: | ||
<noinclude> | <noinclude> | ||
== Notes == | == Notes == | ||
The dropdown menu uses a template to map values to a label. See [ | 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". |
Revision as of 08:30, 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 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 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 an item
- values have the form
- 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
- where
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.
- used this query
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