Template:EquationRef

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>Inspired by the template of the same name from [[:wikipedia:Template:EquationRef|Wikipedia]].
 
<noinclude>Inspired by the template of the same name from [[:wikipedia:Template:EquationRef|Wikipedia]].
Usage: <nowiki>{{EquationRef|equation=<equation>|<number>}}</nowiki>. Enter the <code><equation></code>,
+
Usage:  
 +
 
 +
<nowiki>{{EquationRef|equation=<$equation$>|<number>}}</nowiki>  
 +
 
 +
Enter the <code><equation></code>,
 
in the usual LaTeX markup Format. As <code>number</code> simply insert the equation number.
 
in the usual LaTeX markup Format. As <code>number</code> simply insert the equation number.
 
Referencing can be done with [[Template:EquationNote|EquationNote]].
 
Referencing can be done with [[Template:EquationNote|EquationNote]].
Line 8: Line 12:
 
<table width="100%" style="text-align: center;"> <!-- A table with one row including the mathematical equation and reference -->
 
<table width="100%" style="text-align: center;"> <!-- A table with one row including the mathematical equation and reference -->
 
<tr>
 
<tr>
<td>${{{equation}}}$</td> <!-- Equation goes here -->
+
<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 -->
+
<td {{#ifeq:{{{noid}}}|noid||id="math_{{{1}}}"}} class="reference plainlinksneverexpand" style="font-weight: bold; font-style: italic; text-align: right">{{#if: {{{2| }}}|[[#equation_{{{1}}}|{{{2}}}]]|[[#equation_{{{1}}}|{{{1}}}]]}}</td> <!-- This is the "EquationRef" code chunk taken from wikipedia -->
 
</tr>
 
</tr>
 
</table>
 
</table>

Latest revision as of 18:02, 23 May 2014

Inspired by the template of the same name from Wikipedia. Usage:

{{EquationRef|equation=<$equation$>|<number>}}

Enter the <equation>, in the usual LaTeX markup Format. As number simply insert the equation number. Referencing can be done with EquationNote.


Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox