Difference between revisions of "Template:Convert/doc/parameter list"

From blackwiki
Jump to navigation Jump to search
imported>Mojoworker
(abbr=unit)
Line 7: Line 7:
 
! Note
 
! Note
 
|-
 
|-
|<code>&#124;abbr=in</code> || {{hidden sort key|in}}
+
|<code>&#124;abbr=in</code> || data-sort-value="in" |
 
| Use symbol for first (left-hand side) unit
 
| Use symbol for first (left-hand side) unit
 
| Symbol ('abbreviation')
 
| Symbol ('abbreviation')
 
|-
 
|-
|<code>&#124;abbr=off</code> || {{hidden sort key|off}}
+
|<code>&#124;abbr=off</code> || data-sort-value="off" |
 
| rowspan=2 | Use name for all units
 
| rowspan=2 | Use name for all units
 
| rowspan=2 | Symbol ('abbreviation')
 
| rowspan=2 | Symbol ('abbreviation')
 
|-
 
|-
|<code>&#124;abbr=none</code> || {{hidden sort key|none}}
+
|<code>&#124;abbr=none</code> || data-sort-value="none" |
 
|-
 
|-
|<code>&#124;abbr=on</code> || {{hidden sort key|on}}
+
|<code>&#124;abbr=on</code> || data-sort-value="on" |
 
| Use symbol for all units
 
| Use symbol for all units
 
| Symbol ('abbreviation')
 
| Symbol ('abbreviation')
 
|-
 
|-
|<code>&#124;abbr=out</code> || {{hidden sort key|out}}
+
|<code>&#124;abbr=out</code> || data-sort-value="out" |
 
| Use symbol for right-hand side unit (default)
 
| Use symbol for right-hand side unit (default)
 
| Symbol ('abbreviation')
 
| Symbol ('abbreviation')
 
|-
 
|-
|<code>&#124;abbr=unit</code> || {{hidden sort key|unit}}
+
|<code>&#124;abbr=unit</code> || data-sort-value="unit" |
 
| Use symbol for all units when using scientific notation
 
| Use symbol for all units when using scientific notation
 
| Symbol ('abbreviation')
 
| Symbol ('abbreviation')
 
|-
 
|-
|<code>&#124;abbr=values</code> || {{hidden sort key|values}}
+
|<code>&#124;abbr=values</code> || data-sort-value="values" |
 
| Show only input and output numbers, not units
 
| Show only input and output numbers, not units
 
| Parts only
 
| Parts only
 
|-
 
|-
|<code>&#124;abbr=~</code> || {{hidden sort key|~}}
+
|<code>&#124;abbr=~</code> || data-sort-value="~" |
 
| Shows both unit name and symbol
 
| Shows both unit name and symbol
 
| Symbol & name
 
| Symbol & name
 
|-
 
|-
|<code>&#124;adj=mid&#124;…</code> || {{hidden sort key|mid}}
+
|<code>&#124;adj=mid&#124;…</code> || data-sort-value="mid" |
 
| User-specified text after the input unit; sets <code>adj=on</code> (adjective). Expects 1 unnamed parameter.
 
| User-specified text after the input unit; sets <code>adj=on</code> (adjective). Expects 1 unnamed parameter.
 
| Word adding, adjective
 
| Word adding, adjective
 
|-
 
|-
|<code>&#124;adj=on</code> || {{hidden sort key|on}}
+
|<code>&#124;adj=on</code> || data-sort-value="on" |
 
| Unit name is adjective (singular and hyphenated)
 
| Unit name is adjective (singular and hyphenated)
 
| Grammar, adjective
 
| Grammar, adjective
 
|-
 
|-
|<code>&#124;adj=pre&#124;…</code> || {{hidden sort key|pre}}
+
|<code>&#124;adj=pre&#124;…</code> || data-sort-value="pre" |
 
| User-specified text before input unit. Expects 1 unnamed parameter.
 
| User-specified text before input unit. Expects 1 unnamed parameter.
 
| Word adding
 
| Word adding
 
|-
 
|-
|<code>&#124;adj=ri0</code> || {{hidden sort key|ri0}}
+
|<code>&#124;adj=ri0</code> || data-sort-value="ri0" |
 
| Round input with precision 0
 
| Round input with precision 0
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;adj=ri1</code> || {{hidden sort key|ri1}}
+
|<code>&#124;adj=ri1</code> || data-sort-value="ri1" |
 
| Round input with precision 1
 
| Round input with precision 1
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;adj=ri2</code> || {{hidden sort key|ri2}}
+
|<code>&#124;adj=ri2</code> || data-sort-value="ri2" |
 
| Round input with precision 2
 
| Round input with precision 2
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;adj=ri3</code> || {{hidden sort key|ri3}}
+
|<code>&#124;adj=ri3</code> || data-sort-value="ri3" |
 
| Round input with precision 3
 
| Round input with precision 3
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;disp=b</code> || {{hidden sort key|b}}
+
|<code>&#124;disp=b</code> || data-sort-value="b" |
 
| Join input and output using "&nbsp;(...)" (default)
 
| Join input and output using "&nbsp;(...)" (default)
 
| Join values
 
| Join values
 
|-
 
|-
|<code>&#124;disp=sqbr</code> || {{hidden sort key|sqbr}}
+
|<code>&#124;disp=sqbr</code> || data-sort-value="sqbr" |
 
| Join input and output using "&nbsp;[...]"
 
| Join input and output using "&nbsp;[...]"
 
| Join values
 
| Join values
 
|-
 
|-
|<code>&#124;disp=br</code> || {{hidden sort key|br}}
+
|<code>&#124;disp=br</code> || data-sort-value="br" |
 
| Join input and output using "&lt;br/>"
 
| Join input and output using "&lt;br/>"
 
| Join values
 
| Join values
 
|-
 
|-
|<code>&#124;disp=comma</code> || {{hidden sort key|comma}}
+
|<code>&#124;disp=comma</code> || data-sort-value="comma" |
 
| Join input and output using ",&nbsp;"
 
| Join input and output using ",&nbsp;"
 
| Join values
 
| Join values
 
|-
 
|-
|<code>&#124;disp=or</code> || {{hidden sort key|or}}
+
|<code>&#124;disp=or</code> || data-sort-value="or" |
 
| Join input and output using "&nbsp;or&nbsp;"
 
| Join input and output using "&nbsp;or&nbsp;"
 
| Join values
 
| Join values
 
|-
 
|-
|<code>&#124;disp=number</code> || {{hidden sort key|number}}
+
|<code>&#124;disp=number</code> || data-sort-value="number" |
 
| rowspan=2 | Display output number only
 
| rowspan=2 | Display output number only
 
| rowspan=2 | Parts only
 
| rowspan=2 | Parts only
 
|-
 
|-
|<code>&#124;disp=output number only</code> || {{hidden sort key|output number only}}
+
|<code>&#124;disp=output number only</code> || data-sort-value="output number only" |
 
|-
 
|-
|<code>&#124;disp=out</code> || {{hidden sort key|out}}
+
|<code>&#124;disp=out</code> || data-sort-value="out" |
 
| rowspan=2 | Display only output number and name/symbol
 
| rowspan=2 | Display only output number and name/symbol
 
| rowspan=2 | Parts only
 
| rowspan=2 | Parts only
 
|-
 
|-
|<code>&#124;disp=output only</code> || {{hidden sort key|output only}}
+
|<code>&#124;disp=output only</code> || data-sort-value="output only" |
 
|-
 
|-
|<code>&#124;disp=preunit&#124;…[&#124;…]</code> || {{hidden sort key|preunit}}
+
|<code>&#124;disp=preunit&#124;…[&#124;…]</code> || data-sort-value="preunit" |
 
| Text to be inserted after value and before units, for both input and output, with optionally different text for output.  Expects 1 or 2 unnamed parameters.
 
| Text to be inserted after value and before units, for both input and output, with optionally different text for output.  Expects 1 or 2 unnamed parameters.
 
| Word adding
 
| Word adding
 
|-
 
|-
|<code>&#124;disp=table</code> || {{hidden sort key|table}}
+
|<code>&#124;disp=table</code> || data-sort-value="table" |
 
| Output is suitable for a table cell with align="right"
 
| Output is suitable for a table cell with align="right"
 
| Table columns
 
| Table columns
 
|-
 
|-
|<code>&#124;disp=tablecen</code> || {{hidden sort key|tablecen}}
+
|<code>&#124;disp=tablecen</code> || data-sort-value="tablecen" |
 
| Output is suitable for a table cell with align="center"  
 
| Output is suitable for a table cell with align="center"  
 
| Table columns
 
| Table columns
 
|-
 
|-
|<code>&#124;disp=unit</code> || {{hidden sort key|unit}}
+
|<code>&#124;disp=unit</code> || data-sort-value="unit" |
 
| Display input name/symbol only (not input number, not output)
 
| Display input name/symbol only (not input number, not output)
 
| Parts only
 
| Parts only
 
|-
 
|-
|<code>&#124;disp=unit2</code> || {{hidden sort key|unit2}}
+
|<code>&#124;disp=unit2</code> || data-sort-value="unit2" |
 
| Display output name/symbol only (not input; not output number)
 
| Display output name/symbol only (not input; not output number)
 
| Parts only
 
| Parts only
 
|-
 
|-
|<code>&#124;disp=x&#124;...</code> || {{hidden sort key|x}}
+
|<code>&#124;disp=x&#124;...</code> || data-sort-value="x" |
 
| Join input and output using user-specified text
 
| Join input and output using user-specified text
 
| Word adding
 
| Word adding
 
|-
 
|-
|<code>&#124;comma=5</code> || {{hidden sort key|05}}
+
|<code>&#124;comma=5</code> || data-sort-value="05" |
 
| Only use comma for thousands separator if 5 or more digits
 
| Only use comma for thousands separator if 5 or more digits
 
| Number format
 
| Number format
 
|-
 
|-
|<code>&#124;comma=gaps</code> || {{hidden sort key|gaps}}
+
|<code>&#124;comma=gaps</code> || data-sort-value="gaps" |
 
| Use gaps (space), not comma, for thousands separator
 
| Use gaps (space), not comma, for thousands separator
 
| Number format
 
| Number format
 
|-
 
|-
|<code>&#124;comma=gaps5</code> || {{hidden sort key|gaps5}}
+
|<code>&#124;comma=gaps5</code> || data-sort-value="gaps5" |
 
| Use gaps (space), but only if 5 or more digits
 
| Use gaps (space), but only if 5 or more digits
 
| Number format
 
| Number format
 
|-
 
|-
|<code>&#124;comma=off</code> || {{hidden sort key|off}}
+
|<code>&#124;comma=off</code> || data-sort-value="off" |
 
| No thousands separator
 
| No thousands separator
 
| Number format
 
| Number format
 
|-
 
|-
|<code>&#124;frac=''N''</code> || {{hidden sort key|N}}
+
|<code>&#124;frac=''N''</code> || data-sort-value="N" |
 
| Show imperial number in fractions, denominator=''N''
 
| Show imperial number in fractions, denominator=''N''
 
| Number format, fraction
 
| Number format, fraction
 
|-
 
|-
|<code>&#124;lk=in</code> || {{hidden sort key|in}}
+
|<code>&#124;lk=in</code> || data-sort-value="in" |
 
| Link left-hand side unit name or symbol
 
| Link left-hand side unit name or symbol
 
| Unit link
 
| Unit link
 
|-
 
|-
|<code>&#124;lk=on</code> || {{hidden sort key|on}}
+
|<code>&#124;lk=on</code> || data-sort-value="on" |
 
| Link all unit names or symbols (but not twice for the same unit)
 
| Link all unit names or symbols (but not twice for the same unit)
 
| Unit link
 
| Unit link
 
|-
 
|-
|<code>&#124;lk=out</code> || {{hidden sort key|out}}
+
|<code>&#124;lk=out</code> || data-sort-value="out" |
 
| Link right-hand side unit name or symbol
 
| Link right-hand side unit name or symbol
 
| Unit link
 
| Unit link
 
|-
 
|-
|<code>&#124;order=flip</code> || {{hidden sort key|flip}}
+
|<code>&#124;order=flip</code> || data-sort-value="flip" |
 
| Inverts order of input, output measurements (conversion first)
 
| Inverts order of input, output measurements (conversion first)
 
| Order
 
| Order
 
|-
 
|-
|<code>&#124;round=5</code> || {{hidden sort key|05}}
+
|<code>&#124;round=5</code> || data-sort-value="05" |
 
| Rounds calculation to the nearest multiple of 5
 
| Rounds calculation to the nearest multiple of 5
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;round=25</code> || {{hidden sort key|25}}
+
|<code>&#124;round=25</code> || data-sort-value="25" |
 
| Rounds calculation to the nearest multiple of 25
 
| Rounds calculation to the nearest multiple of 25
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;round=each</code> || {{hidden sort key|each}}
+
|<code>&#124;round=each</code> || data-sort-value="each" |
 
| In a range, each number is rounded by the default rounding
 
| In a range, each number is rounded by the default rounding
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;sigfig=''N''</code> || {{hidden sort key|N}}
+
|<code>&#124;sigfig=''N''</code> || data-sort-value="N" |
 
| Round output number to ''N'' significant figures (''N'' is a positive integer)
 
| Round output number to ''N'' significant figures (''N'' is a positive integer)
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>&#124;sortable=in</code> || {{hidden sort key|in}}
+
|<code>&#124;sortable=in</code> || data-sort-value="in" |
 
| rowspan=2 | Output numeric hidden sort field for use in a sortable table (based on input)
 
| rowspan=2 | Output numeric hidden sort field for use in a sortable table (based on input)
 
| rowspan=2 | Table sort
 
| rowspan=2 | Table sort
 
|-
 
|-
|<code>&#124;sortable=on</code> || {{hidden sort key|on}}
+
|<code>&#124;sortable=on</code> || data-sort-value="on" |
 
|-
 
|-
|<code>&#124;sortable=out</code> || {{hidden sort key|out}}
+
|<code>&#124;sortable=out</code> || data-sort-value="out" |
 
| Output numeric hidden sort field for use in a sortable table (based on output)
 
| Output numeric hidden sort field for use in a sortable table (based on output)
 
| Table sort
 
| Table sort
 
|-
 
|-
|<code>&#124;sp=us</code> || {{hidden sort key|us}}
+
|<code>&#124;sp=us</code> || data-sort-value="us" |
 
| Use U.S. spelling (like "meter" instead of default "metre")
 
| Use U.S. spelling (like "meter" instead of default "metre")
 
| Spelling U.S.&nbsp;names
 
| Spelling U.S.&nbsp;names
 
|-
 
|-
|<code>&#124;spell=in</code> || {{hidden sort key|in}}
+
|<code>&#124;spell=in</code> || data-sort-value="in" |
 
| Spell input number in words
 
| Spell input number in words
 
| Spelling numbers
 
| Spelling numbers
 
|-
 
|-
|<code>&#124;spell=In</code> || {{hidden sort key|In}}
+
|<code>&#124;spell=In</code> || data-sort-value="In" |
 
| Spell input number in words with first letter uppercase
 
| Spell input number in words with first letter uppercase
 
| Spelling numbers
 
| Spelling numbers
 
|-
 
|-
|<code>&#124;spell=on</code> || {{hidden sort key|on}}
+
|<code>&#124;spell=on</code> || data-sort-value="on" |
 
| Spell input and output numbers in words
 
| Spell input and output numbers in words
 
| Spelling numbers
 
| Spelling numbers
 
|-
 
|-
|<code>&#124;spell=On</code> || {{hidden sort key|On}}
+
|<code>&#124;spell=On</code> || data-sort-value="On" |
 
| Spell input and output numbers in words with first letter uppercase
 
| Spell input and output numbers in words with first letter uppercase
 
| Spelling numbers
 
| Spelling numbers
 
|-
 
|-
|<code>&#124;$=''&euro;''</code> || {{hidden sort key|$}}
+
|<code>&#124;$=''&euro;''</code> || data-sort-value="$" |
 
| Replace $-sign with a currency sign, for example in <code>$/acre</code> {{nowrap|(no currency conversion happens)}}
 
| Replace $-sign with a currency sign, for example in <code>$/acre</code> {{nowrap|(no currency conversion happens)}}
 
| Cost per unit
 
| Cost per unit
 
|-
 
|-
|<code>&#124;debug=yes</code> || {{hidden sort key|yes}}
+
|<code>&#124;debug=yes</code> || data-sort-value="yes" |
 
| '''Debugging only'''. In a sortable table: show the normally hidden sort key
 
| '''Debugging only'''. In a sortable table: show the normally hidden sort key
 
| Table sort
 
| Table sort
 
|- <!-- ----------------- Deprecated options ------------------------- -->
 
|- <!-- ----------------- Deprecated options ------------------------- -->
|<code>{{!mxt|1=&#124;abbr=comma}}</code> || {{hidden sort key|comma}}
+
|<code>{{!mxt|1=&#124;abbr=comma}}</code> || data-sort-value="comma" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| Number format
 
| Number format
 
|-
 
|-
|<code>{{!mxt|1=&#124;abbr=mos}}</code> || {{hidden sort key|mos}}
+
|<code>{{!mxt|1=&#124;abbr=mos}}</code> || data-sort-value="mos" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;x&#x7c;}} ''or'' {{mxt|1=&#x7c;by&#x7c;}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;x&#x7c;}} ''or'' {{mxt|1=&#x7c;by&#x7c;}}
 
| Range format
 
| Range format
 
|-
 
|-
|<code>{{!mxt|1=&#124;adj=1}}</code> || {{hidden sort key|01}}
+
|<code>{{!mxt|1=&#124;adj=1}}</code> || data-sort-value="01" |
 
| '''Deprecated'''. Do not use. No need to deviate from [[MOS:FRACTION|MOS]] regarding plurals
 
| '''Deprecated'''. Do not use. No need to deviate from [[MOS:FRACTION|MOS]] regarding plurals
 
| Plural or singular
 
| Plural or singular
 
|-
 
|-
|<code>{{!mxt|1=&#124;adj=flip}}</code> || {{hidden sort key|flip}}
+
|<code>{{!mxt|1=&#124;adj=flip}}</code> || data-sort-value="flip" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
 
| Order
 
| Order
  
 
|-
 
|-
|<code>{{!mxt|1=&#124;adj=j}}</code> || {{hidden sort key|j}}
+
|<code>{{!mxt|1=&#124;adj=j}}</code> || data-sort-value="j" |
 
| '''Deprecated'''. Do not use. No need to join number and unit with <code>&amp;nbsp;</code>. Not by MOS, and could be misunderstood HTML
 
| '''Deprecated'''. Do not use. No need to join number and unit with <code>&amp;nbsp;</code>. Not by MOS, and could be misunderstood HTML
 
| Join values
 
| Join values
 
|-
 
|-
| <code>{{!mxt|1=&#124;adj=nocomma}}</code> || {{hidden sort key|nocomma}}
+
| <code>{{!mxt|1=&#124;adj=nocomma}}</code> || data-sort-value="nocomma" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| Number format
 
| Number format
 
|-
 
|-
|<code>{{!mxt|1=&#124;disp=2}}</code> || {{hidden sort key|02}}
+
|<code>{{!mxt|1=&#124;disp=2}}</code> || data-sort-value="02" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=output only}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=output only}}
 
| Parts only
 
| Parts only
 
|-
 
|-
|<code>{{!mxt|1=&#124;disp=5}}</code> || {{hidden sort key|05}}
+
|<code>{{!mxt|1=&#124;disp=5}}</code> || data-sort-value="05" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
 
| Rounding and significant figures
 
| Rounding and significant figures
 
|-
 
|-
|<code>{{!mxt|1=&#124;disp=flip}}</code> || {{hidden sort key|flip}}
+
|<code>{{!mxt|1=&#124;disp=flip}}</code> || data-sort-value="flip" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
 
| Order
 
| Order
 
|-
 
|-
|<code>{{!mxt|1=&#124;disp=flip5}}</code> || {{hidden sort key|flip5}}
+
|<code>{{!mxt|1=&#124;disp=flip5}}</code> || data-sort-value="flip5" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
 
| Order, rounding
 
| Order, rounding
 
|-
 
|-
| <code>{{!mxt|1=&#124;disp=nocomma}}</code> || {{hidden sort key|nocomma}}
+
| <code>{{!mxt|1=&#124;disp=nocomma}}</code> || data-sort-value="nocomma" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
 
| Number format
 
| Number format
 
|-
 
|-
|<code>{{!mxt|1=&#124;disp=u2}}</code> || {{hidden sort key|u2}}
+
|<code>{{!mxt|1=&#124;disp=u2}}</code> || data-sort-value="u2" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=unit2}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=unit2}}
 
| Parts only
 
| Parts only
 
|-
 
|-
|<code>{{!mxt|1=&#124;near=5}}</code> || {{hidden sort key|05}}
+
|<code>{{!mxt|1=&#124;near=5}}</code> || data-sort-value="05" |
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
 
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
 
| Rounding and significant figures
 
| Rounding and significant figures

Revision as of 06:36, 31 May 2017

Parameter options for {{convert}}
Parameter Value Description Note
|abbr=in Use symbol for first (left-hand side) unit Symbol ('abbreviation')
|abbr=off Use name for all units Symbol ('abbreviation')
|abbr=none
|abbr=on Use symbol for all units Symbol ('abbreviation')
|abbr=out Use symbol for right-hand side unit (default) Symbol ('abbreviation')
|abbr=unit Use symbol for all units when using scientific notation Symbol ('abbreviation')
|abbr=values Show only input and output numbers, not units Parts only
|abbr=~ Shows both unit name and symbol Symbol & name
|adj=mid|… User-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter. Word adding, adjective
|adj=on Unit name is adjective (singular and hyphenated) Grammar, adjective
|adj=pre|… User-specified text before input unit. Expects 1 unnamed parameter. Word adding
|adj=ri0 Round input with precision 0 Rounding and significant figures
|adj=ri1 Round input with precision 1 Rounding and significant figures
|adj=ri2 Round input with precision 2 Rounding and significant figures
|adj=ri3 Round input with precision 3 Rounding and significant figures
|disp=b Join input and output using " (...)" (default) Join values
|disp=sqbr Join input and output using " [...]" Join values
|disp=br Join input and output using "<br/>" Join values
|disp=comma Join input and output using ", " Join values
|disp=or Join input and output using " or " Join values
|disp=number Display output number only Parts only
|disp=output number only
|disp=out Display only output number and name/symbol Parts only
|disp=output only
|disp=preunit|…[|…] Text to be inserted after value and before units, for both input and output, with optionally different text for output. Expects 1 or 2 unnamed parameters. Word adding
|disp=table Output is suitable for a table cell with align="right" Table columns
|disp=tablecen Output is suitable for a table cell with align="center" Table columns
|disp=unit Display input name/symbol only (not input number, not output) Parts only
|disp=unit2 Display output name/symbol only (not input; not output number) Parts only
|disp=x|... Join input and output using user-specified text Word adding
|comma=5 Only use comma for thousands separator if 5 or more digits Number format
|comma=gaps Use gaps (space), not comma, for thousands separator Number format
|comma=gaps5 Use gaps (space), but only if 5 or more digits Number format
|comma=off No thousands separator Number format
|frac=N Show imperial number in fractions, denominator=N Number format, fraction
|lk=in Link left-hand side unit name or symbol Unit link
|lk=on Link all unit names or symbols (but not twice for the same unit) Unit link
|lk=out Link right-hand side unit name or symbol Unit link
|order=flip Inverts order of input, output measurements (conversion first) Order
|round=5 Rounds calculation to the nearest multiple of 5 Rounding and significant figures
|round=25 Rounds calculation to the nearest multiple of 25 Rounding and significant figures
|round=each In a range, each number is rounded by the default rounding Rounding and significant figures
|sigfig=N Round output number to N significant figures (N is a positive integer) Rounding and significant figures
|sortable=in Output numeric hidden sort field for use in a sortable table (based on input) Table sort
|sortable=on
|sortable=out Output numeric hidden sort field for use in a sortable table (based on output) Table sort
|sp=us Use U.S. spelling (like "meter" instead of default "metre") Spelling U.S. names
|spell=in Spell input number in words Spelling numbers
|spell=In Spell input number in words with first letter uppercase Spelling numbers
|spell=on Spell input and output numbers in words Spelling numbers
|spell=On Spell input and output numbers in words with first letter uppercase Spelling numbers
|$= Replace $-sign with a currency sign, for example in $/acre (no currency conversion happens) Cost per unit
|debug=yes Debugging only. In a sortable table: show the normally hidden sort key Table sort
|abbr=comma Deprecated. Use |comma=off Number format
|abbr=mos Deprecated. Use |x| or |by| Range format
|adj=1 Deprecated. Do not use. No need to deviate from MOS regarding plurals Plural or singular
|adj=flip Deprecated. Use |order=flip Order
|adj=j Deprecated. Do not use. No need to join number and unit with &nbsp;. Not by MOS, and could be misunderstood HTML Join values
|adj=nocomma Deprecated. Use |comma=off Number format
|disp=2 Deprecated. Use |disp=output only Parts only
|disp=5 Deprecated. Use |round=5 Rounding and significant figures
|disp=flip Deprecated. Use |order=flip Order
|disp=flip5 Deprecated. Use |order=flip |round=5 Order, rounding
|disp=nocomma Deprecated. Use |comma=off Number format
|disp=u2 Deprecated. Use |disp=unit2 Parts only
|near=5 Deprecated. Use |round=5 Rounding and significant figures
Template documentation[create]