Skabelon:Equation
Formål
This template gives an equation (Ligning) passed in as numbered parameter {{{1}}} a number {{{2}}}, which is displayed in the far right column. This also creates an anchor (#equation-{{{2}}}), which can be adjusted with the id parameter.
Brug
{{Equation|1=e = m c^2|2=1}}
{{Equation|1=a^2 + b^2 = c^2|2=2}}
{{Equation|1=X(t) = V_0 t + A t^2|2=3}}
results in:
(1)
(2)
(3)
- Note: Wikisyntax (e.g. formatting templates like
{{sub}}) doesn't work in this template, use LaTeX syntax instead. - Note: When converting from a plain
<math>tag to this template, you will need to replace the pipe symbol|with{{!}}and}}with} }.
TemplateData
Equation
This template generates an equation (passed in LaTeX) with a number to the right. It also generates an anchor so that the equation can be linked to from other parts of the page.
| Parameter | Beskrivelse | Type | Status | |
|---|---|---|---|---|
| Equation (LaTeX) | 1 | See Wikipedia:LaTeX for instructions if unfamiliar.
| Streng | påkrævet |
| Equation number | 2 | The number of the equation, also used to generate the anchor | Streng | foreslået |
| Anchor id | id | The anchor id. If you set this to "my-eqn" (no quotes), the link [[#my-eqn|see my equation]] will take you to the equation.
| Streng | valgfri |
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









