Template:math

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This template is used to format mathematical expressions. It is implemented using HTML and CSS.

Parameters

[edit]
|1= (required)
The mathematical expression to format.
|big= (optional)
Makes the text bigger (by setting the CSS font-size property to 165%) if given any value. Overridden by |size=.
|size= (optional)
The font size to use (as the CSS font-size property). May be given in pixels (15px), as a percentage (120%), or in ems (1.2em). Overrides |big=.

Examples

[edit]
  • {{math|1.602 &times; 10<sup>-19</sup>}}
1.602 × 10-19
  • {{math|1.602 &times; 10<sup>-19</sup>|big=1}}
1.602 × 10-19
  • {{math|1.602 &times; 10<sup>-19</sup>|size=100%}}
1.602 × 10-19