Template:Numbered block/doc

This template creates a numbered block which is usually used to number mathematical and chemical formulae. This template can be used together with EquationRef and EquationNote to produce formatted numbered equations if a back reference to an equation is wanted.

Please refer to &sect; Indentation other than using parameter 2,, and for more information.

Parameters
Parameters 1, 2, and 3 of this template are required. In addition, there are three optional parameters RawN, LnSty and Border.
 * 1: Specify indentation. The more colons  you put, the further indented the block will be, up to a limit of 20. This parameter can be empty if no indentation is needed.
 * 2: The body or content of the block.
 * 3: Specify the block number.
 * RawN: If a non-empty non-whitespace value, no extra formatting will be applied to the block number.
 * LnSty: Specify the line style.
 * Border: If set, put a box around the equation. (Experimental.)

Examples
{| class="wikitable" style="margin:1em auto; width:96%;" !colspan="2"|

Formulae may render HTML
$$ $$ $$ $$ $$ !colspan="2"|
 * style="width:55%;"|
 * style="width:55%;"|
 * style="width:45%;"|

Indentation
$$ $$ $$ $$ !colspan="2"|

Formatting of equation number
$$ $$ $$ $$ $$ $$ $$ !colspan="2"|

Line style
$$ $$ $$ $$ $$ $$ $$ !colspan="2"|

Indentation other than using parameter 2
The following equations
 * $$3x+2y-z=1$$
 * $$2x-2y+4z=-2$$
 * $$-2x+y-2z=0$$

form a system of three equations.

The following equations  $$  $$  $$    form a system of three equations. The following equations $$ $$ $$ form a system of three equations. The following equations  $$  $$  $$ form a system of three equations. !colspan="2"|

Unordered list

 * $$3x+2y-z=1$$
 * $$2x-2y+4z=-2$$
 * $$-2x+y-2z=0$$
 * $$-2x+y-2z=0$$





!colspan="2"|

Ordered list

 * 1) $$3x+2y-z=1$$
 * 2) $$2x-2y+4z=-2$$
 * 3) $$-2x+y-2z=0$$
 * 1) $$-2x+y-2z=0$$





!colspan="2"|

Border


$$

$$
 * }

Positioning relative to surrounding images
Numbered blocks should be able to be placed around images that take up space on the left or right side of the screen. To ensure numbered block has access to the entire line, consider using a clear-like template.

To illustrate, consider the example:

If it is desirable for the numbered block to span the entire line, a clear should be placed before it.

Table caveat
Because  is implemented as a table, putting   within a table yields a nested table. Due to a bug in MediaWiki's handling of nested tables, Numbered block must be used carefully in this case. In particular, when indentation for the outer table is desired, use explicit <dd ></dd></dl> tags for indentation instead of a leading colon.

For example,

which shows how the outer <dl ><dd ></dd></dl> tags give the same indentation as a single colon preceding the table should.

For another example, which uses two sets of explicit tags to give the same indentation as two colons.