
The new "Display panel" option was defaulted to off, assuming most players use the infobox display instead. The boosts plugin gained a new "compact view", which necessitated a new toggle for turning off the existing boosts panel display, which previously was predicated on the infobox on/off toggle. Since the last blog post I've made a couple behavior changes without a proper blog post explaning them, leading to some confusion.
Runescape classic calculator update#
The form will automatically try to prefill the form with the last name entered in a hs or tag with the class jcConfig, e.g.:įor example configurations, see /Examples.Behavior changes since the previous update
hs - A special field which attempts to lookup a player's hiscores for values to be passed into other parameters. The checkbox will be checked by default if the Default value is set to true or the same as the value if true given in the Param range. The Param range has format value if true,value if false, which defines what the form will pass to the template when ticked or not ticked. check - A checkbox, with values sent to the template defined by the Param range. select - The input is selected from a comma-separated list of values given in Param range. A valid range can be specified (see above). int - The input box must contain an integer. If either min or max is omitted or a range is not given, then infinity is assumed. A valid range can be specified in Param range in the format min-max.
number - The input box must contain a number. To set the namespaces searched by autocomplete, use the suggestns field (see above). Currently, this means that autocomplete will be enabled for the text box. article - The input box should contain an article name. string (default) - The input box can contain any value. Param type - The type of the parameter, used for form validation and to control the appearance of the form field. Default value - The default value used to prefill the form initially. However, normal wikiscript can only be used if the config is contained within a div tag instead of a pre tag. Label name supports using HTML to format the labels - including simple formats like, and even. Label name - The label used for the parameter in the form. Parameter names are case sensitive, and there can be no spaces. Param name - The name of the parameter as used by the template. Param = Param name| Label name| Default value| Param type| Param range param - Defines a parameter to be sent to the template, in the format shown in the next section.Ī param line should be in the following format:. See the table to the bottom for the valid namespace IDs. By default, namespace 0 (main) is searched. This field applies for all article parameter types used in the form. suggestns - A comma-separated list of namespace IDs to use for autocomplete. result - The unique HTML ID of the element that will contain the parsed template. Each configuration block should specify a different form ID. form - The unique HTML ID of the element that will contain the form. This follows the same convention that's used when transcluding templates into a page. If the template is in the main namespace, you must prepend a colon to the article name. If no namespace is provided, then the template namespace will be searched by default. template - The name of the template to use on form submittal. The JS calculator's configuration section uses name = value pairs, each separated by a newline.