Jump to content

Template:Calculator-superimpose/doc

From Wikipedia, the free encyclopedia

This is like {{Superimpose}} except for use with {{Calculator}}. Unlike the superimpose template, the (0,0) point is the bottom-left corner instead of the top left corner. See {{Calculator}} for more details. Requires the Calculator gadget to be enabled. If calculator gadget is not enabled, should just show the x_default and y_default values.

Supports all the same parameters as {{Superimpose}} except x and y are now formulas, and there are two new parameters: x_default and y_default for the initial x and y values.

Example

[edit]
<div class="calculator-container">
{{calculator-superimpose
  | base = Body_roundness_index_graph.svg
  | base_width = 500px
  | float = Red pog.svg
  | float_width = 10px
  | x = ((waist-50)/130)*450+20
  | y = ((height-140)/60)*208+10
  | x_default = 383.46
  | y_default = 141.73
}}

{{calculator label|for=height|Height}} {{calculator|id=height|type=number|size=5|default=178|min=140|max=200}} 
{{calculator label|for=waist|Waist}} {{calculator|id=waist|type=number|size=5|default=155|min=50|max=180}}
</div>

Creates:

Height 178 Waist 155