• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Equation box 1/sandbox

  • Template
  • Talk
  • Language
  • Watch
  • Edit
< Template:Equation box 1

z = r e i ϕ = x + i y {\displaystyle z=re^{i\phi }=x+iy\,\!} {\displaystyle z=re^{i\phi }=x+iy\,\!}

This is the template sandbox page for Template:Equation box 1 (diff).
See also the companion subpage for test cases.
Template documentation[view] [edit] [history] [purge]

Displays an equation in a box.

The full syntax is:

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

Contents

  • 1 Parameters
  • 2 Examples
    • 2.1 Black/white theme
    • 2.2 Green theme
    • 2.3 Blue theme
    • 2.4 With reference
  • 3 TemplateData

Parameters

edit
  1. Indent: Type colon (:) to indent the box from the left side of the page, or two colons (::) for twice as much indentation. Leave blank, or use any other value, for no indentation. (Note that this uses CSS to adjust margins, rather than following the semantics of the leading colon in wiki markup, which would create an invalid description list.)
  2. Title: Title/name of equation. Leave blank for no title.
  3. Equation: The equation in whatever form, usually <math> equation in LaTeX ... </math>. Leave blank to get an equation showing the general form of a complex number, z = r e i ϕ = x + i y {\displaystyle z=re^{i\phi }=x+iy\,\!} {\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.

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

Examples

edit

Black/white theme

edit
Complex number

z = r e i ϕ = x + i y {\displaystyle z=re^{i\phi }=x+iy} {\displaystyle z=re^{i\phi }=x+iy}

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

Green theme

edit

z = r e i ϕ = x + i y {\displaystyle z=re^{i\phi }=x+iy} {\displaystyle z=re^{i\phi }=x+iy}

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

Blue theme

edit

z = r e i ϕ = x + i y {\displaystyle z=re^{i\phi }=x+iy\,\!} {\displaystyle z=re^{i\phi }=x+iy\,\!}

{{Equation box 1
|indent =:
|title=
|equation = <math>z=re^{i\phi}=x+iy \,\!</math>
|cellpadding= 6
|border
|border colour = #0073CF}}

With reference

edit

2 × 2 = 4   (1)

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

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Equation box 1 in articles based on its TemplateData.

TemplateData for Equation box 1

Displays an equation in a box.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Indentindent

One or two colons for an indent from the left, OR a valid CSS margin value. 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
Example
4
Numberoptional
Border thicknessborder

Thickness of border line in pixels. Default is 2.

Default
2
Example
3
Numberoptional
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
Title/nametitle

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

Example
'''Time-dependent Schrödinger equation in position basis'''<br/>''(single [[relativistic quantum mechanics|nonrelativistic]] particle)''
Linesuggested
Equationequation

The equation in whatever form, usually <math>equation in LaTeX...</math>. The default equation is the general form of a complex number.

Example
<math> z = e^{i \phi} = x + iy </math>
Contentrequired
Reference labelref

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

Example
1
Stringoptional
The above documentation is transcluded from Template:Equation box 1/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Equation_box_1/sandbox&oldid=1240370663"
Last edited on 15 August 2024, at 01:46

Languages

      This page is not available in other languages.

      Wikipedia
      • Wikimedia Foundation
      • Powered by MediaWiki
      • This page was last edited on 15 August 2024, at 01:46 (UTC).
      • Content is available under CC BY-SA 4.0 unless otherwise noted.
      • Privacy policy
      • About Wikipedia
      • Disclaimers
      • Contact Wikipedia
      • Code of Conduct
      • Developers
      • Statistics
      • Cookie statement
      • Terms of Use
      • Desktop