साँचा:Equation box 1

विकिपुस्तक से

साँचा विवरण

Type the equation in the blue box. Set box parameters: border thickness and colour, cell padding, and background colour. The full syntax is:

TemplateData Compatibility

Renders a small box with a title and preferably an equation inside. Indentation and the box border, colour, and background can be specified.

साँचे के पैरामीटर्स[साँचा डेटा सम्पादित करें]

इस साँचे के लिए पैरामीटरों के इनलाइन प्रारूपण को प्राथमिकता दी जाती है।

पैरामीटरविवरणप्रकारस्थिति
Indentationindent

either leave blank or type colon (:) to indent the box from the left side of the page.

उदाहरण
:
अज्ञातवैकल्पिक
Titletitle

leave blank or type title/name of equation

उदाहरण
Pythagoras' Theorem
स्ट्रिंगवैकल्पिक
Equationequation

type equation including <math> ''equation in LaTeX ...'' </math>. The default equation is the general form of a complex number.

उदाहरण
<math>a^2+b^2=c^2
सामग्रीसुझावित
Paddingcellpadding

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).

संख्यावैकल्पिक
Borderborder

either leave blank (default is 2px) or [[Hex triplet]] to change thickness of border line.

अज्ञातवैकल्पिक
Border Colourborder colour

either leave blank (default is light grey-blue, #ccccff) or type [[Hex triplet]] for the border line of the box.

उदाहरण
red
अज्ञातवैकल्पिक
Background Colourbackground colour

either leave blank (defualt is white) or type colour code for the background area of the box.

उदाहरण
#ccccff
अज्ञातवैकल्पिक

{{Equation box 1|indent|title|equation|cellpadding|border|border colour|background colour}}

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

Complex number

{{Equation box 1 |title='''[[Complex number]]''' |indent=: |equation=<math>z=re^{i\phi}=x+iy</math> |cellpadding = 6 |border = 1 |border colour = black |background colour=white}}

{{Equation box 1|indent=:|equation=<math>z=re^{i\phi}=x+iy</math>|cellpadding|border|border colour|background colour}}

{{Equation box 1|indent=:|equation=<math>z=re^{i\phi}=x+iy</math>|cellpadding=10|border=4|border colour=#AE2029|background colour=orange}}

Unfortunatley there are cases where the LaTeX syntax has to include the colour in the equation, as well as the template coding, as shown in the second example. Without the colour in the LaTeX expression:

{{Equation box 1|indent=:|equation=<math>z=re^{i\phi}=x+iy</math>|cellpadding=10|border=4|border colour=#AE2029|background colour=orange}}