Parameters on commands
Parameters are set after the command and are set in a specific order. For example:
WINDOW "intro",,(200,0)
The WINDOW commands parameters are as follows,
ID, TITLE, (X1,Y1)-(X2,Y2), TYPE, SCREEN IDNotice how we didn't want to set the TITLE, just the ID and the X1 and Y1 of the command. But we still leave the TITLE parameter in even though it is blank.
Setting HTML parameters on commands
You can pass any parameter you like along with the command but note that only those valid ones to the corresponding HTML tag will be picked up by browser and used. The rest will be outputted. HTML parameters always come after the command parameters.
Lets use the WINDOW example above and set its class.
WINDOW "intro",,(200,0),,,class="some-class",data-id="some-id"
HTML specific parameters start with the parameter name, then =, and then you set its value.
It is important that the parameter count matches that of what the command is expecting!For more information on HTML tags and what they do please visit W3 Schools or using your favourtie search engine look up html tags.
Problems with commas
Due to parameters being seperated by commas you may run into issue with trying to PRINT a single comma or a space and a comma for example.
If this happens swap out the comma for the HTML entity equivalent shown belown.
HTML CODE | , |
HTML ENTITY | , |