साँचा:Equation/विव

testwiki से
imported>SM7 द्वारा परिवर्तित १७:००, ४ नवम्बर २०२० का अवतरण (SM7 ने साँचा:Equation/doc पर पुनर्निर्देश छोड़े बिना उसे साँचा:Equation/विव पर स्थानांतरित किया: स्थानीयकरण)
(अंतर) ← पुराना अवतरण | वर्तमान अवतरण (अंतर) | नया अवतरण → (अंतर)
नेविगेशन पर जाएँ खोज पर जाएँ

साँचा: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: साँचा:Equation The number is optional and can be omitted as in

{{Equation|<math> x^2 + y^2 = z^2 </math>}}

which gives: साँचा: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: साँचा:Equation and

{{Equation|<math> x^2 + y^2 = z^2 </math>|3=right}}

results in: साँचा:Equation Note: The equations are anchored by number for use with Template:Eqnref

{{Eqnref|1}} {{Eqnref|2}}

results in:

साँचा:Eqnref साँचा:Eqnref

Clicking on साँचा:Eqnref or साँचा:Eqnref jumps to the correspondingly numbered equation.