Template:Formula: Difference between revisions

From RadiWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>'''Formula{{#ifeq:{{{1|+}}}|{{{1|-}}}|<nowiki>&nbsp;</nowiki>{{{1}}}|}} {{#ifeq:{{{1|+}}}{{{2|+}}}|{{{1|-}}}{{{2|-}}}|-|}} {{#ifeq:{{{2|+}}}|{{{2|-}}}|{{{2}}}|}}{{#ifeq:{{{3|+}}}|{{{3|-}}}|<nowiki>:</nowiki> {{{3}}}|}}'''</includeonly><noinclude>
<includeonly>'''Formula{{#ifeq:{{{1|+}}}{{{2|+}}}|{{{1|-}}}{{{2|-}}}|<nowiki>&nbsp;</nowiki>|}}{{{1}}}{{#ifeq:{{{1|+}}}{{{2|+}}}|{{{1|-}}}{{{2|-}}}|-|}}{{{2}}}{{#ifeq:{{{3|+}}}|{{{3|-}}}|<nowiki>:</nowiki> {{{3}}}|}}'''</includeonly><noinclude>


This template shows a nice 'footer' that can be include below a formula.
This template shows a nice 'footer' that can be include below a formula.

Revision as of 20:37, 20 January 2009


This template shows a nice 'footer' that can be include below a formula. It will show the text:

' Formula <CHAPTER>-<NR>: <DESCRIPTION> '

This template expects the following parameters:

  1. The number of the chapter
  2. A sequence number of the formula's within the chapter
  3. A description of the formula.

Any parameters can be omitted, and the relevant section of the formula-footer will then not be shown.