Templat:Equation box 1
Dokumentasi templat
Ketik persamaan di kotak biru. Set parameter kotak: ketebalan dan warna batas, padding sel, dan warna latar belakang. Sintaks penuhnya adalah:
{{Equation box 1|indent|title|equation|ref|cellpadding|border|border colour|background colour}}
Parameter
- Indent: either leave blank or type colon (:) to indent the box from the left side of the page.
- Title: leave blank or type title/name of equation
- Equation: type an equation in whatever form, usually
<math>
equation in LaTeX ...</math>
. The default equation is the general form of a complex number. - Ref: (optional) calls {{EquationRef}} with provided value as the parameter.
- Cellpadding: either leave blank (default is 5px) or type number to change the padding of the box around the equation (how much the box wraps around the equation, margins).
- Border: either leave blank (default is 2px) or Hex triplet to change thickness of border line.
- Border colour: either leave blank (default is light grey-blue, #ccccff) or type Hex triplet for the border line of the box.
- Background colour: either leave blank (default is white) or type colour code for the background area of the box.
Lihat daftar warna untuk digunakan dengan warna latar dan latar belakang. Untuk menggunakan parameter, set parameter sama dengan nilai dengan menggunakan tanda sama dengan.
Contoh
- Tema hitam/putih
{{Equation box 1
|title='''[[Bilangan kompleks]]'''
|indent=:
|equation=<math>z=re^{i\phi}=x+iy \,\!</math>
|cellpadding = 6
|border = 1
|border colour = black
|background colour=white}}
- Tema hijau
{{Equation box 1
|indent=:
|equation=<math>z=re^{i\phi}=x+iy \,\!</math>
|cellpadding
|border
|border colour = #50C878
|background colour = #ECFCF4}}
}}
- Tema biru
{{Equation box 1
|indent =:
|title=
|equation = <math>z=re^{i\phi}=x+iy \,\!</math>
|cellpadding= 6
|border
|border colour = #0073CF
|background colour=#F5FFFA}}
- Dengan referensi
2 × 2 = 4 (1)
{{Equation box 1
|equation = {{math|1=2 × 2 = 4}}
|ref=1}}