Template:Equation/doc: Difference between revisions
From XMS Wiki
Jump to navigationJump to search
(Created page with "{{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> ==Purpose== This template gives an equation passed in as M:Help:Template|numbered paramete...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
==Purpose== | ==Purpose== | ||
This template gives an | This template gives an equation passed in as numbered parameter <nowiki>{{{1}}} a number {{{2}}}</nowiki>, which is displayed in the far right column. This also creates an anchor (<nowiki>#equation-{{{2}}}</nowiki>), which can be adjusted with the <code>id</code> parameter. | ||
==Usage== | ==Usage== | ||
Line 15: | Line 15: | ||
{{Equation|1=X(t)= V_0 * t + A*t^2\,|2=3}} | {{Equation|1=X(t)= V_0 * t + A*t^2\,|2=3}} | ||
:Note: Wikisyntax (e.g. formatting templates like {{tlxw|sub}}) won't work in this template, use | :Note: Wikisyntax (e.g. formatting templates like {{tlxw|sub}}) won't work in this template, use LaTeX syntax instead. | ||
<includeonly> | <includeonly> | ||
<!-- ADD CATEGORIES BELOW THIS LINE --> | <!-- ADD CATEGORIES BELOW THIS LINE --> | ||
<!-- ADD INTERWIKIS BELOW THIS LINE --> | <!-- ADD INTERWIKIS BELOW THIS LINE --> | ||
</includeonly> | </includeonly> | ||
<noinclude> | |||
[[Category:Equations]] | |||
</noinclude> |
Latest revision as of 15:21, 2 June 2014
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.