Template:Equation/doc: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 18: Line 18:
<includeonly>
<includeonly>
<!-- ADD CATEGORIES BELOW THIS LINE -->
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Mathematical formatting templates]]
 
<!-- ADD INTERWIKIS BELOW THIS LINE -->
<!-- ADD INTERWIKIS BELOW THIS LINE -->
</includeonly>
</includeonly>

Revision as of 00:07, 5 November 2013

This is a documentation subpage for Template:Equation (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Purpose

This template gives an equation 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.

Usage

{{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}}

) won't work in this template, use LaTeX syntax instead.