Difference between revisions of "Template:Calculator"

m
m
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
|denotes=the ID of the calculator to display
 
|denotes=the ID of the calculator to display
 
|generates=the id property of the div tag that the JavaScript hooks onto
 
|generates=the id property of the div tag that the JavaScript hooks onto
|othernotes=This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using [[Template:Calculator]].
+
|anonymous=true
 
|validvalues=Any string that corresponds to an implemented JavaScript calculator.
 
|validvalues=Any string that corresponds to an implemented JavaScript calculator.
}}</noinclude><includeonly><div id="{{{1}}}"></div><noscript>'''You must have JavaScript enabled to use this feature.'''</noscript></includeonly>
+
}}</noinclude><includeonly><div id="{{{1}}}"></div></includeonly>

Latest revision as of 12:17, 22 March 2010

Template:Calculator is designed for use on equation-related pages to display an interactive JavaScript calculator.

Template

{{Calculator| }}

Parameters

1

  • Usage: Mandatory
  • Description: The 1 parameter takes a string denoting the ID of the calculator to display. This is used to generate the id property of the div tag that the JavaScript hooks onto. This parameter, the template's only one, is an anonymous parameter, which means that no parameter name needs to be explicitly specified when using Template:Calculator.
  • Valid Value(s): Any string that corresponds to an implemented JavaScript calculator.