Template:Equation/doc
Template:Documentation subpage
This template, whose format is
{{Equation|formula|number (optional)|alignment (left by default)}}
allows equations to be offset from the main text, numbered, and anchored for later referencing using the template {{Eqnref|x}} (see final note), where x is the number of the equation. The equation is offset 10px from the text above and below. For example,
- {{Equation|<math> x^2 + y^2 = z^2 </math>|1}}
results in: Template:Equation The number is optional and can be omitted as in
- {{Equation|<math> x^2 + y^2 = z^2 </math>}}
which gives: Template:Equation The third variable acts to align the equation to the left, center, or right (this last alignment is not recommended, but is available) and with an indentation of 5% of the width of the page. For example:
- {{Equation|<math> x^2 + y^2 = z^2 </math>|2|left}}
results in: Template:Equation and
- {{Equation|<math> x^2 + y^2 = z^2 </math>|3=right}}
results in: Template:Equation Note: The equations are anchored by number for use with Template:Eqnref
- {{Eqnref|1}} {{Eqnref|2}}
results in:
Clicking on Template:Eqnref or Template:Eqnref jumps to the correspondingly numbered equation.