phet-io-test-sim PhET-iO Guide for Instructional Designers

This is just for testing, and was originally copied directly from ph-scale

Customization using Query Parameters

Query parameters can be used to customize the simulation. Query parameters are added by appending a ? to the sim URL, and separating each query parameter with a &.

Example: set sim language to Spanish (locale=es) and only include the first screen (screens=1)

Query parameters used within PhET-iO Studio will be maintained when the HTML code for the simulation and its customization wrapper is launched or downloaded.

Simulation-specific Query Parameters

Query Parameter Values Description Examples
autofill true
false
If true, the dropper will autofill the beaker to 0.50 L when switching solutes.

Default is true.
autofill=false
Standalone sim

Studio

General Query Parameters

Query Parameter Values Description Examples
locale en
es
fr
zh_CN
etc.
The value is the locale code. See the sim page for available locales.

Default is English.
locale=es
Standalone sim
Studio
screens 1
2
3
Specifies which screens are included in the sim and their order.

Note: It is also possible to customize the screens within PhET-iO studio, but we do not recommend it. Please use the query parameter.

Default is all screens.
screens=1
Standalone sim
Studio

screens=2,1
Standalone sim
Studio
initialScreen 1
2
3
Used to specify the screen open on startup.

Default is home screen.
initialScreen=2
Standalone sim
Studio
homeScreen true
false
If false, hides the home screen.

Default is true.
homeScreen=false
Standalone sim
Studio
allowLinks true
false
If false, disables external links.

Default is true.
allowLinks=false
Standalone sim
Studio

Best Practices for Customizing with PhET-iO Studio

Understanding the Customization Wrapper generated by PhET-iO Studio

Basic webpage structure of an embedded, customized PhET-iO simulation alt text "PhET-iO sim webpage structure"