<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://augsburgwrestling.info/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fdoc</id>
	<title>Template:Convert/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://augsburgwrestling.info/index.php?action=history&amp;feed=atom&amp;title=Template%3AConvert%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://augsburgwrestling.info/index.php?title=Template:Convert/doc&amp;action=history"/>
	<updated>2026-10-30T22:05:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://augsburgwrestling.info/index.php?title=Template:Convert/doc&amp;diff=1936&amp;oldid=prev</id>
		<title>Calebrw: 1 revision:&amp;#32;Template:Convert</title>
		<link rel="alternate" type="text/html" href="https://augsburgwrestling.info/index.php?title=Template:Convert/doc&amp;diff=1936&amp;oldid=prev"/>
		<updated>2009-04-09T22:37:04Z</updated>

		<summary type="html">&lt;p&gt;1 revision: Template:Convert&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{documentation subpage}}&lt;br /&gt;
&amp;lt;!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --&amp;gt;&lt;br /&gt;
{{esoteric}}&lt;br /&gt;
{{notice|&lt;br /&gt;
{{convert/kt}}&lt;br /&gt;
{{color|red|The codes &amp;lt;code&amp;gt;sqm&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;sqkm&amp;lt;/code&amp;gt; have also been removed.  Use &amp;lt;code&amp;gt;m2&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;km2&amp;lt;/code&amp;gt;.}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This template can be used to show measurement quantities as primary and converted secondary units, with optional abbreviation or slash, such as distance &amp;quot;{{convert|32|m|ft}}&amp;quot; or temperature &amp;quot;{{convert|18|°C|°F}}&amp;quot; or &amp;quot;{{convert|18|°C|°F|disp=s}}&amp;quot; with optional U.S. spellings or hyphenation.&lt;br /&gt;
&lt;br /&gt;
Single value:&lt;br /&gt;
 &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;convert|&amp;#039;&amp;#039;original_value&amp;#039;&amp;#039;|&amp;#039;&amp;#039;original_unit&amp;#039;&amp;#039;|&amp;#039;&amp;#039;conversion_unit&amp;#039;&amp;#039;|&amp;#039;&amp;#039;round_to&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Range of values (see below for list of &amp;#039;&amp;#039;range&amp;#039;&amp;#039; options):&lt;br /&gt;
 &amp;lt;tt&amp;gt;&amp;lt;nowiki&amp;gt;{{&amp;lt;/nowiki&amp;gt;convert|&amp;#039;&amp;#039;orig_val1&amp;#039;&amp;#039;|&amp;#039;&amp;#039;range&amp;#039;&amp;#039;|orig_val2|&amp;#039;&amp;#039;original_unit&amp;#039;&amp;#039;|&amp;#039;&amp;#039;conversion_unit&amp;#039;&amp;#039;|&amp;#039;&amp;#039;round_to&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;|...}}&amp;lt;/nowiki&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Numbers must be entered in unformatted form (without commas).  For negative numbers (i.e. temperatures or precision) use a hyphen as the minus sign for the input number.  Values output by the template will be displayed formatted and with a true minus sign where appropriate.  &lt;br /&gt;
*Optional parameters, in examples below, allow abbreviated units (abbr=on), or US spellings (sp=us for &amp;#039;&amp;#039;meter&amp;#039;&amp;#039;), or slash separation (disp=s), or hyphenation (adj=on), etc.&lt;br /&gt;
*For this template many levels of [[Wikipedia:Template substitution|substitution]] are possible, hence doing this fully, step by step, is cumbersome, use [[Special:ExpandTemplates]] instead.&lt;br /&gt;
*The template has no in-built capacity for [[dimensional analysis]].  It is therefore up to the user to ensure that the input and output units are compatible.  Do not, for example, attempt to convert barrels to tonnes (but see {{tl|bbl to t}}).  Also beware of units with similar names; the code &amp;lt;code&amp;gt;oz&amp;lt;/code&amp;gt;, for example, is for the avoirdupois ounce (a unit of mass), do not use this if you want fluid ounces.&lt;br /&gt;
*The range functionality is not fully implemented for all units, so experimentation may be required.&lt;br /&gt;
*This documentation page tends to lag behind in terms of what the template can do.  For details see the talk page and its archives.&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
====Single value====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;Displays as&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|3.21|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|3.21|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|3.21|kg|lb|0}}&amp;lt;/nowiki&amp;gt;||{{convert|3.21|kg|lb|0}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|0|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|0|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|6|ft|5|in|m}}&amp;lt;/nowiki&amp;gt;||{{convert|6|ft|5|in|m}}&lt;br /&gt;
&amp;lt;!--This is currently broken, see talk page&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|2|m|ftin}}&amp;lt;/nowiki&amp;gt;||{{convert|2|m|ftin}}&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|18|°C|°F}}&amp;lt;/nowiki&amp;gt;||{{convert|18|°C|°F}}&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;nowiki&amp;gt;{{convert|1250|sqft|m2|lk=in|sigfig=2}}&amp;lt;/nowiki&amp;gt; ||{{convert|1250|sqft|m2|lk=in|sigfig=2}}&amp;lt;br/&amp;gt;See that &amp;#039;lk=in&amp;#039; applies link to input unit only. This example is for illustration only, common units of measurement should not be linked. See: [[Wikipedia:Only make links that are relevant to the context|wp:overlink]].&lt;br /&gt;
|- &lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|20.5|km2|sqmi|lk=out|abbr=on}}&amp;lt;/nowiki&amp;gt;||{{convert|20.5|km2|sqmi|1|lk=out|abbr=on}}&amp;lt;br/&amp;gt;See that &amp;#039;lk=out&amp;#039; applies link to output unit only. This example is for illustration only, common units of measurement should not be linked. See: [[Wikipedia:Only make links that are relevant to the context|wp:overlink]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|641|acre|km2 sqmi|lk=on}}&amp;lt;/nowiki&amp;gt;||{{convert|641|acre|km2 sqmi|lk=on}}&amp;lt;br/&amp;gt;See that &amp;#039;lk=on&amp;#039; applies links to input and output units. This example is for illustration only, common units of measurement should not be linked. See: [[Wikipedia:Only make links that are relevant to the context|wp:overlink]].&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|641|acre|km2 sqmi|2|lk=on}}&amp;lt;/nowiki&amp;gt;||{{convert|641|acre|km2 sqmi|2|lk=on}}&amp;lt;br/&amp;gt; Note that because 640 acres equals one square mile; 641 acres rounded to two decimal places equals 1.00&amp;amp;nbsp;sq&amp;amp;nbsp;mi.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Range of values====&lt;br /&gt;
:&amp;#039;&amp;#039;Note: not yet operational for all units&amp;#039;&amp;#039;&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|&amp;#039;&amp;#039;&amp;#039;Input&amp;#039;&amp;#039;&amp;#039;||&amp;#039;&amp;#039;&amp;#039;Displays as&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|and|170|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|60|and|170|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|to|170|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|60|to|170|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|to(-)|170|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|60|to(-)|170|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|-|170|kg|lb}}&amp;lt;/nowiki&amp;gt;||{{convert|60|-|170|kg|lb}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|by|120|m|ft}}&amp;lt;/nowiki&amp;gt;||{{convert|60|by|120|m|ft}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|x|120|m|ft}}&amp;lt;/nowiki&amp;gt;||{{convert|60|x|120|m|ft}}&lt;br /&gt;
|-&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{convert|60|+/-|10|m|ft}}&amp;lt;/nowiki&amp;gt;||{{convert|60|+/-|10|m|ft}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The following range conversions are currently not available:&lt;br /&gt;
*Temperature-based units (°C to °F, etc.) due to complexity of the conversion&lt;br /&gt;
*Imperial and US gallon-based units&lt;br /&gt;
*Fuel consumption units (mpg, L/100km)&lt;br /&gt;
*Large scale units (e3, e6, e9)&lt;br /&gt;
*Combination-based units (ft&amp;amp;in, st&amp;amp;lb, lb&amp;amp;oz) due to complexity of the conversion&lt;br /&gt;
&lt;br /&gt;
===Parameters===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | &lt;br /&gt;
|-&lt;br /&gt;
| Use [[United States|US]] spelling || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|sp=us&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Make units [[Wikipedia:Manual of Style (links)|wikilinked]] || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=on&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to link all units&amp;lt;br&amp;gt; attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=in&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to link only the input units&amp;lt;br&amp;gt; attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=out&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; to link only the output units&amp;lt;br&amp;gt;(The [[Wikipedia:Only make links that are relevant to the context|manual of style]] suggests that you should not link common units of measurement).&lt;br /&gt;
|-&lt;br /&gt;
| Use the adjective form || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|adj=on&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (e.g. &amp;quot;The 190-foot (58 m) bridge&amp;quot; as opposed to &amp;quot;The 190 feet...&amp;quot;). This produces the adjective form—the unit name in the singular with a hyphen (according to the [[WP:HYPHEN|Manual of Style]]).&lt;br /&gt;
|-&lt;br /&gt;
| Abbreviate all units || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|abbr=on&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| Use a / instead of ( ) || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|disp=s&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (or  &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|disp=/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;) (e.g. 190&amp;amp;nbsp;foot/58&amp;amp;nbsp;metre).  Note that when using slashes all unit names either spelt out in full or abbreviated (where there exists an abbreviation).&lt;br /&gt;
|-&lt;br /&gt;
| Use in a table || attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|disp=table&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; Note: For use in tables the template must start on a new line after a pipe.  Only the number will be displayed unless you set &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|abbr=on&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=on&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=in&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|lk=out&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. Example: [[Phnom_Penh#Highways_in_Phnom_Penh|here]]&lt;br /&gt;
|-&lt;br /&gt;
| Round to a specified number of significant figures|| attach &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|sigfig={some non-negative integer}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. In the case of temperatures Celsius or Fahrenheit this refers to the difference with the absolute-zero temperature. For example, at room temperature two significant digits means rounded to tens of degrees.&lt;br /&gt;
|-&lt;br /&gt;
| Let &amp;#039;&amp;#039;Convert&amp;#039;&amp;#039; decide the unit to convert to|| skip the &amp;#039;&amp;#039;convert to&amp;#039;&amp;#039; parameter (which would otherwise be third unnamed parameter) e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{convert|100|mi|0}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; gives &amp;#039;&amp;#039;{{convert|100|mi|0}}&amp;#039;&amp;#039;.&lt;br /&gt;
|-&lt;br /&gt;
|Display input value as a fraction|| &amp;lt;nowiki&amp;gt;{{convert|3/8|in|mm|3|abbr=on}}&amp;lt;/nowiki&amp;gt;&amp;lt;font color=blue&amp;gt;&amp;#039;&amp;#039;&amp;#039;→&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt; {{convert|3/8|in|mm|3|abbr=on}} or &amp;lt;nowiki&amp;gt;{{convert|11+1/4|in|cm|2|abbr=on}}&amp;lt;/nowiki&amp;gt;&amp;lt;font color=blue&amp;gt;&amp;#039;&amp;#039;&amp;#039;→&amp;#039;&amp;#039;&amp;#039;&amp;lt;/font&amp;gt;{{convert|11+1/4|in|cm|2|abbr=on}}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
====Parameters still under construction====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; | Parameters still under construction.  May not work in all situations&lt;br /&gt;
|-&lt;br /&gt;
|disp=or||Similar to disp=s except the word &amp;quot;or&amp;quot; will be placed between the values.  Does not currently work with multiple conversions (e.g. Liters to U.S. and imperial gallons) (&amp;lt;nowiki&amp;gt;{{convert|20|mi|km|disp=or}}&amp;lt;/nowiki&amp;gt;)---&amp;gt;({{convert|20|mi|km|disp=or}})&lt;br /&gt;
|-&lt;br /&gt;
|disp=tablecen||Similar to disp=table except that the values with be centered within the column.  See the tables at [[La Nouvelle branch]] for in use examples.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Rounding===&lt;br /&gt;
&amp;#039;&amp;#039;Convert&amp;#039;&amp;#039; supports four types of rounding:&lt;br /&gt;
;Rounding to a given precision &lt;br /&gt;
:Specify the desired precision with the fourth unnamed parameter or third unnamed parameter in the case where the &amp;#039;&amp;#039;convert to&amp;#039;&amp;#039; parameter is skipped (see above).  The conversion is rounded off to the nearest power of 1/10 this number.  For instance, if the result is 8621 and the round number is &amp;#039;-2&amp;#039;, the result will be 8600.  If the result is &amp;#039;234.0283043&amp;#039; and the round number is &amp;#039;0&amp;#039;, the result will be 234.&lt;br /&gt;
&lt;br /&gt;
;Rounding to a given number of significant figures&lt;br /&gt;
:Specify the desired number of significant figures using &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;|sigfig={some non-negative integer}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; as noted above.&lt;br /&gt;
&lt;br /&gt;
;Combine both of the above&lt;br /&gt;
:If both the desired precision and the desired number of significant figures are specified, the conversion will be rounded to the least precise of these.&lt;br /&gt;
&lt;br /&gt;
;Default rounding&lt;br /&gt;
:If neither the desired precision nor the desired number of significant figures are specified, the conversion will be rounded either to a comparable precision as the input value (the number of decimals remains the same if the conversion is a multiplication by a number between 0.2 and 2, is decreased by 1 if the factor is between 2 and 20, etc.) or to two significant figures whichever is the most precise.  An exception to this is temperature wherein the conversion will be rounded either to precision comparable to that of the input value or to that which would give three significant figures when expressed in kelvin, whichever is the most precise.&lt;br /&gt;
&lt;br /&gt;
===Units supported ===&lt;br /&gt;
{{selfref|See also: [[Template:Convert/list of units|Convert/list of units]]}}&lt;br /&gt;
The table below lists units supported by this template.  It is divided up according to the quantity being measured.  Not all supported units are listed here; there are links to complete lists for each quantity.&lt;br /&gt;
&lt;br /&gt;
The codes listed in the &amp;#039;&amp;#039;code&amp;#039;&amp;#039; column (column 3) are accepted as input by the template.&lt;br /&gt;
These can be used as the second or third unnamed parameter.  For some units there exist alternative codes. These are listed in brackets and have been incorporated to make the code more flexible for editors, e.g. °F &amp;#039;&amp;#039;or&amp;#039;&amp;#039; F may be entered.&lt;br /&gt;
&lt;br /&gt;
The codes listed in the &amp;#039;&amp;#039;combinations&amp;#039;&amp;#039; column (column 7) can be used to produce multiple conversions.  They can only be used as the third unnamed parameter, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{convert|55|nmi|km mi}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; produces &amp;quot;{{convert|55|nmi|km mi}}&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;height: 400px; overflow: auto; padding: 3px; border:1px solid #AAAAAA; reflist4&amp;quot; &amp;gt;&lt;br /&gt;
{{Convert/list of units}}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Examples===&lt;br /&gt;
* Monitor quality or look at examples at {{tl|Convert/check}}.&lt;br /&gt;
&lt;br /&gt;
===See also===&lt;br /&gt;
* {{tl|Height}} template for calculating (body) height with precision.&lt;br /&gt;
* {{tl|Inflation}} template for calculating inflated prices in USA, UK and other countries.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
{{pp-template}}&lt;br /&gt;
&amp;lt;!-- ADD CATEGORIES BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[Category:Conversion templates| ]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ADD INTERWIKIS BELOW THIS LINE --&amp;gt;&lt;br /&gt;
[[es:Plantilla:Convert]]&lt;br /&gt;
[[fr:Modèle:Conversion]]&lt;br /&gt;
[[id:Templat:Convert]]&lt;br /&gt;
[[it:Template:Converti]]&lt;br /&gt;
[[ja:Template:Convert]]&lt;br /&gt;
[[no:Mal:Convert]]&lt;br /&gt;
[[pt:Predefinição:Convert]]&lt;br /&gt;
[[th:แม่แบบ:Convert]]&lt;br /&gt;
[[zh:Template:Convert]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Calebrw</name></author>
	</entry>
</feed>