A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://en.wikipedia.org/wiki/Template:Convinfobox below:

Template:Convinfobox - Wikipedia

Toggle the table of contents Template:Convinfobox

From Wikipedia, the free encyclopedia

This template is used on approximately 222,000 pages.
To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.

This template is a frontend for {{convert}}. It is intended as a meta-template for use within the code for a template, where the input is not known a priori. For unit conversions within articles, one should use {{convert}} directly.

This template accepts from four to seven unnamed parameters. Odd parameters must be numerical (or empty) and specify the numerical value of a measurement and the intended precision of the conversion. Even parameters must be unit codes as used in {{convert}}. Named parameters are the same as used by {{convert}}.

This template differs from {{convert}} in the following respects.

This template may be used when it is unknown in which direction the conversion is to be made. The direction is determined as shown in the following examples.

Dual conversions

Dual conversions may be performed by adding a fifth (possibly blank) and sixth unnamed parameter.

Paired units

Length may be expressed in feet and inches.

Similarly, mass may be expressed in pounds and ounces.

Mass may also be expressed in stone and pounds.

Specifying more than one value

The template currently bases conversions on the first non-blank numerical value ignoring any secondary or tertiary values.

Rounding

As with {{convert}} rounding can be done automatically or manually by specifying the precision and/or number of significant figures in the converted value. The number of significant figures can be determined by the parameter |sigfig=. The precision can be determined by the fifth (if there is no sixth) or seventh (if there is a sixth) unnamed parameter as shown in the examples below.

Specify precision "0" to prevent rounding of values ending in zero:

Leaving all numerical fields blank

If all numerical value fields are left blank the template returns nothing.

See also

Supporting templates
Templates transcluding {{convinfobox}}

Math templates

Functions Numeral systems

Conversions

convert many units (see: list) cvt abbreviated {{convert}} convinfobox {{convert}} for infoboxes bbl to t barrels of oil to tonnes long ton long hundredweights, quarters and pounds to kilograms;
long tons and hundredweights to pounds and metric tons miles-chains miles and chains to kilometres linking "chains" decdeg degrees, minutes, and seconds to decimal degrees deg2dms decimal degrees to degrees, minutes, and seconds deg2hms decimal degrees to hour angle (in hours, minutes, and seconds) hms2deg hour angle (in hours, minutes, and seconds) to decimal degrees inflation calculate inflation of Consumer Price Index-related prices pop density population density in an area track gauge railway track gauges

Notation and

formatting bigmath bigger font to match TeX \displaystyle (standalone formulas only) bra–ket notation ceil, floor calculations :mw:Help:#expr; formatting indicators 3.14, 3.14 (no calculation performed) fraction slant fractions 35 (not for maths/science articles; use standing or upright fractions {{sfrac}} instead) intmath integral symbols
  • langle
  • rangle
  • angbr
  • angular brackets
  • ldelim
  • rdelim
  • multiline delimiters (2–5 lines inclusive) abs absolute values (paired vertical lines) math short text-based formulas mathcal [mathematical] calligraphic font; alternative to LaTeX \mathcal{...} mvar individual italicized maths variables in normal text
  • overline
  • underline
  • a line set above/below a sequence of characters overarc an arc set above a sequence of characters
  • overset
  • underset
  • arbitrary characters/diacritics set above/below one another pars parentheses that can be resized () sfrac "standing" or upright fractions 3/5 (use in maths/science articles instead of{{fraction}})
  • sub
  • sup
  • su
  • subscripts and superscripts tmath Wrap TeX in <math> tags tombstone symbol indicating the end of a proof val measurement values, uncertainties and units vec various overarrows, underarrows, etc.

  • Boxes
  • Tags
  • Notices
  • Boxes Tags

    RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.3