# Predloga:Equation box 1

 ${\displaystyle z=re^{i\phi }=x+iy\,\!}$
Dokumentacija predloge

Displays an equation in a box.

The full syntax is:

# Parameters

1. Indent: Type colon (:) to indent the box from the left side of the page. Leave blank for no indentation.
2. Title: Title/name of equation. Leave blank for no title.
3. Equation: The equation in whatever form, usually $equation in LaTeX ...$. Leave blank to get an equation showing the general form of a complex number, ${\displaystyle z=re^{i\phi }=x+iy\,\!}$ (only useful for examples).
4. Ref: Reference label. Calls {{EquationRef}} with provided value as the parameter. Leave blank for no reference label.
5. Cellpadding: Number of pixels to be used as padding of the box around the equation (how much the box wraps around the equation, margins). Default is 5.
6. Border: Thickness of the border line in pixels (do not include "px"; it will be added). Default is 2.
7. Border colour: Colour code (colour name or hex triplet) for the colour of the border line of the box. Default is #50C878, a nuance of green called emerald green.
8. Background colour: Colour code for the background area of the box. Default is #ECFCF4, a light grayish cyan.

See list of colours for use with the border and background colours. To use the parameters set the parameter equal to the value by using the equals sign.

# Examples

Black/white theme
 Complex number ${\displaystyle z=re^{i\phi }=x+iy\,\!}$
{{Equation box 1
|title='''[[Complex number]]'''
|indent=:
|equation=$z=re^{i\phi}=x+iy \,\!$
|border = 1
|border colour = black
|background colour=white}}

Green theme
 ${\displaystyle z=re^{i\phi }=x+iy\,\!}$
{{Equation box 1
|indent=:
|equation=$z=re^{i\phi}=x+iy \,\!$
|border
|border colour = #50C878
|background colour = #ECFCF4}}
}}

Blue theme
 ${\displaystyle z=re^{i\phi }=x+iy\,\!}$
{{Equation box 1
|indent =:
|title=
|equation = $z=re^{i\phi}=x+iy \,\!$
|border
|border colour = #0073CF
|background colour=#F5FFFA}}

With reference
 2 × 2 = 4   (1)

{{Equation box 1 |equation = {{math|1=2 × 2 = 4}} |ref=1}}

Displays an equation in a box.

Template parameters

ParameterDescriptionTypeStatus
Indentindent

Type colon (:) to indent the box from the left side of the page. Leave blank for no indent.

Example
:
Stringoptional
Cellpadding (margin)cellpadding

Number of pixels to be used as padding of the box around the equation (how much the box wraps around the equation; margins). Default is 5.

Default
5
Unknownoptional
Borderborder

Thickness of border line in pixels. Default is 2.

Default
2
Example
3
Stringoptional
Border colourborder colour

Colour code (colour name or hex triplet in the format #RRGGBB) for the border line of the box. Default is #50C878, a nuance of green called emerald green.

Default
#50C878
Stringoptional
Background colourbackground colour

Colour code (colour name or hex triplet in the format #RRGGBB) for the background colour of the box. Default is #ECFCF4, a light grayish cyan.

Default
#ECFCF4
Stringoptional
Title/nametitle

Title/name of equation. Can be left blank for no title.

Stringoptional
Equationequation

The equation in whatever form, usually $equation in LaTeX...$. The default equation is the general form of a complex number.

Contentsuggested
Reference labelref

Label for the equation for later reference. Calls {{EquationRef}} with provided value as the parameter.

Example
1
Stringoptional