Template:EquationRef

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
Line 3: Line 3:
 
Referencing can be done with [[Template:EquationNote|EquationNote]]
 
Referencing can be done with [[Template:EquationNote|EquationNote]]
 
</noinclude>
 
</noinclude>
<includeonly><span {{#ifeq:{{{noid}}}|noid||id="math_{{{1}}}"}} class="reference plainlinksneverexpand" style="font-weight: bold; font-style: italic">{{#if: {{{2| }}}|[[#equation_{{{1}}}|{{{2}}}]]|[[#equation_{{{1}}}|{{{1}}}]]}}</span></includeonly>
+
<includeonly>
 +
<div>
 +
<table width="100%" style="text-align: center;"> <!-- A table with one row including the mathematical equation and reference -->
 +
<tr>
 +
<td>${{{equation}}}$</td> <!-- Equation goes here -->
 +
<td {{#ifeq:{{{noid}}}|noid||id="math_{{{1}}}"}} class="reference plainlinksneverexpand" style="font-weight: bold; font-style: italic">{{#if: {{{2| }}}|[[#equation_{{{1}}}|{{{2}}}]]|[[#equation_{{{1}}}|{{{1}}}]]}}</td> <!-- This is the "EquationRef" code chunk taken from wikipedia -->
 +
<tr>
 +
</table>
 +
</div>
 +
 
 +
</includeonly>

Revision as of 17:23, 23 May 2014

Taken from the template of the same name from Wikipedia. Usage: {{EquationRef|<number>}}. For number simply insert the equation number. Referencing can be done with EquationNote

</span></span>

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox