Template:Convert/doc/parameter list: Difference between revisions
From Zoophilia Wiki
< Template:Convert | doc
meta>DePiep mNo edit summary |
meta>DePiep No edit summary |
||
Line 3: | Line 3: | ||
|- | |- | ||
! Parameter | ! Parameter | ||
! | ! Value | ||
! Description | ! Description | ||
! Note | ! Note | ||
|- | |- | ||
|<code>|abbr=in</code> || data-sort-value="in" | | |<code>|abbr=in</code> || data-sort-value="in" | in | ||
| Use symbol for first (left-hand side) unit | | Use symbol for first (left-hand side) unit | ||
| Symbol ('abbreviation') | | Symbol ('abbreviation') | ||
|- | |- | ||
|<code>|abbr=off</code> || data-sort-value="off" | | |<code>|abbr=off</code> || data-sort-value="off" | off | ||
| rowspan=2 | Use name for all units | | rowspan=2 | Use name for all units | ||
| rowspan=2 | Symbol ('abbreviation') | | rowspan=2 | Symbol ('abbreviation') | ||
|- | |- | ||
|<code>|abbr=none</code> || data-sort-value="none" | | |<code>|abbr=none</code> || data-sort-value="none" | none | ||
|- | |- | ||
|<code>|abbr=on</code> || data-sort-value="on" | | |<code>|abbr=on</code> || data-sort-value="on" | on | ||
| Use symbol for all units | | Use symbol for all units | ||
| Symbol ('abbreviation') | | Symbol ('abbreviation') | ||
|- | |- | ||
|<code>|abbr=out</code> || data-sort-value="out" | | |<code>|abbr=out</code> || data-sort-value="out" | out | ||
| Use symbol for right-hand side unit (default) | | Use symbol for right-hand side unit (default) | ||
| Symbol ('abbreviation') | | Symbol ('abbreviation') | ||
|- | |- | ||
|<code>|abbr=unit</code> || data-sort-value="unit" | | |<code>|abbr=unit</code> || data-sort-value="unit" | unit | ||
| Use symbol for all units when using scientific notation | | Use symbol for all units when using scientific notation | ||
| Symbol ('abbreviation') | | Symbol ('abbreviation') | ||
|- | |- | ||
|<code>|abbr=values</code> || data-sort-value="values" | | |<code>|abbr=values</code> || data-sort-value="values" | values | ||
| Show only input and output numbers, not units | | Show only input and output numbers, not units | ||
| Parts only | | Parts only | ||
|- | |- | ||
|<code>|abbr=~</code> || data-sort-value="~" | | |<code>|abbr=~</code> || data-sort-value="~" | ~ | ||
| Shows both unit name and symbol | | Shows both unit name and symbol | ||
| Symbol & name | | Symbol & name | ||
|- | |- | ||
|<code>|adj=mid|…</code> || data-sort-value="mid" | | |<code>|adj=mid|…</code> || data-sort-value="mid" | 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>|adj=on</code> || data-sort-value="on" | | |<code>|adj=on</code> || data-sort-value="on" | on | ||
| Unit name is adjective (singular and hyphenated) | | Unit name is adjective (singular and hyphenated) | ||
| Grammar, adjective | | Grammar, adjective | ||
|- | |- | ||
|<code>|adj=pre|…</code> || data-sort-value="pre" | | |<code>|adj=pre|…</code> || data-sort-value="pre" | 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>|adj=ri0</code> || data-sort-value="ri0" | | |<code>|adj=ri0</code> || data-sort-value="ri0" | ri0 | ||
| Round input with precision 0 | | Round input with precision 0 | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>|adj=ri1</code> || data-sort-value="ri1" | | |<code>|adj=ri1</code> || data-sort-value="ri1" | ri1 | ||
| Round input with precision 1 | | Round input with precision 1 | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>|adj=ri2</code> || data-sort-value="ri2" | | |<code>|adj=ri2</code> || data-sort-value="ri2" | ri2 | ||
| Round input with precision 2 | | Round input with precision 2 | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>|adj=ri3</code> || data-sort-value="ri3" | | |<code>|adj=ri3</code> || data-sort-value="ri3" | ri3 | ||
| Round input with precision 3 | | Round input with precision 3 | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>|comma=5</code> || data-sort-value="05" | | |<code>|comma=5</code> || data-sort-value="05" | 5 | ||
| 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>|comma=gaps</code> || data-sort-value="gaps" | | |<code>|comma=gaps</code> || data-sort-value="gaps" | gaps | ||
| Use gaps (space), not comma, for thousands separator | | Use gaps (space), not comma, for thousands separator | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>|comma=off</code> || data-sort-value="off" | | |<code>|comma=off</code> || data-sort-value="off" | off | ||
| No thousands separator | | No thousands separator | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>|disp=b</code> || data-sort-value="b" | | |<code>|disp=b</code> || data-sort-value="b" | b | ||
| Join input and output using " (...)" (default) | | Join input and output using " (...)" (default) | ||
| Join values | | Join values | ||
|- | |- | ||
|<code>|disp=sqbr</code> || data-sort-value="sqbr" | | |<code>|disp=sqbr</code> || data-sort-value="sqbr" | sqbr | ||
| Join input and output using " [...]" | | Join input and output using " [...]" | ||
| Join values | | Join values | ||
|- | |- | ||
|<code>|disp=br</code> || data-sort-value="br" | | |<code>|disp=br</code> || data-sort-value="br" | br | ||
| Join input and output using "<br/>" | | Join input and output using "<br/>" | ||
| Join values | | Join values | ||
|- | |- | ||
|<code>|disp=comma</code> || data-sort-value="comma" | | |<code>|disp=comma</code> || data-sort-value="comma" | comma | ||
| Join input and output using ", " | | Join input and output using ", " | ||
| Join values | | Join values | ||
|- | |- | ||
|<code>|disp=or</code> || data-sort-value="or" | | |<code>|disp=or</code> || data-sort-value="or" | or | ||
| Join input and output using " or " | | Join input and output using " or " | ||
| Join values | | Join values | ||
|- | |- | ||
|<code>|disp=number</code> || data-sort-value="number" | | |<code>|disp=number</code> || data-sort-value="number" | number | ||
| rowspan=2 | Display output number only | | rowspan=2 | Display output number only | ||
| rowspan=2 | Parts only | | rowspan=2 | Parts only | ||
|- | |- | ||
|<code>|disp=output number only</code> || data-sort-value="output number only" | | |<code>|disp=output number only</code> || data-sort-value="output number only" | output number only | ||
|- | |- | ||
|<code>|disp=out</code> || data-sort-value="out" | | |<code>|disp=out</code> || data-sort-value="out" | 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>|disp=output only</code> || data-sort-value="output only" | | |<code>|disp=output only</code> || data-sort-value="output only" | output only | ||
|- | |- | ||
|<code>|disp=preunit|…[|…]</code> || data-sort-value="preunit" | | |<code>|disp=preunit|…[|…]</code> || data-sort-value="preunit" | 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>|disp=table</code> || data-sort-value="table" | | |<code>|disp=table</code> || data-sort-value="table" | 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>|disp=tablecen</code> || data-sort-value="tablecen" | | |<code>|disp=tablecen</code> || data-sort-value="tablecen" | 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>|disp=unit</code> || data-sort-value="unit" | | |<code>|disp=unit</code> || data-sort-value="unit" | 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>|disp=unit2</code> || data-sort-value="unit2" | | |<code>|disp=unit2</code> || data-sort-value="unit2" | 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>|disp=x|...</code> || data-sort-value="x" | | |<code>|disp=x|...</code> || data-sort-value="x" | x | ||
| Join input and output using user-specified text | | Join input and output using user-specified text | ||
| Word adding | | Word adding | ||
|- | |- | ||
|<code>|frac=''N''</code> || data-sort-value="N" | | |<code>|frac=''N''</code> || data-sort-value="N" | N | ||
| Show imperial number in fractions, denominator=''N'' | | Show imperial number in fractions, denominator=''N'' | ||
| Number format, fraction | | Number format, fraction | ||
|- | |- | ||
|<code>|lk=in</code> || data-sort-value="in" | | |<code>|lk=in</code> || data-sort-value="in" | in | ||
| Link left-hand side unit name or symbol | | Link left-hand side unit name or symbol | ||
| Unit link | | Unit link | ||
|- | |- | ||
|<code>|lk=on</code> || data-sort-value="on" | | |<code>|lk=on</code> || data-sort-value="on" | 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>|lk=out</code> || data-sort-value="out" | | |<code>|lk=out</code> || data-sort-value="out" | out | ||
| Link right-hand side unit name or symbol | | Link right-hand side unit name or symbol | ||
| Unit link | | Unit link | ||
|- | |- | ||
|<code>|order=flip</code> || data-sort-value="flip" | | |<code>|order=flip</code> || data-sort-value="flip" | flip | ||
| Inverts order of input, output measurements (conversion first) | | Inverts order of input, output measurements (conversion first) | ||
| Order | | Order | ||
|- | |- | ||
|<code>|round=5</code> || data-sort-value="05" | | |<code>|round=5</code> || data-sort-value="05" | 5 | ||
| 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>|round=25</code> || data-sort-value="25" | | |<code>|round=25</code> || data-sort-value="25" | 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>|round=each</code> || data-sort-value="each" | | |<code>|round=each</code> || data-sort-value="each" | 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>|sigfig=''N''</code> || data-sort-value="N" | | |<code>|sigfig=''N''</code> || data-sort-value="N" | 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>|sortable=on</code> || data-sort-value="on" | | |<code>|sortable=on</code> || data-sort-value="on" | on | ||
| Adds invisible sort key | | Adds invisible sort key | ||
| Table sort | | Table sort | ||
|- | |- | ||
|<code>{{!mxt|1=|sortable=in}}</code> || data-sort-value="in" | | |<code>{{!mxt|1=|sortable=in}}</code> || data-sort-value="in" | in | ||
| '''Deprecated'''. Use {{xt|1=sortable=on}} | | '''Deprecated'''. Use {{xt|1=sortable=on}} | ||
| Table sort | | Table sort | ||
|- | |- | ||
|<code>{{!mxt|1=|sortable=out}}</code> || data-sort-value="out" | | |<code>{{!mxt|1=|sortable=out}}</code> || data-sort-value="out" | out | ||
| '''Deprecated'''. Use {{xt|1=sortable=on}} | | '''Deprecated'''. Use {{xt|1=sortable=on}} | ||
| Table sort | | Table sort | ||
|- | |- | ||
|<code>|sp=us</code> || data-sort-value="us" | | |<code>|sp=us</code> || data-sort-value="us" | us | ||
| Use U.S. spelling ( | | Use U.S. spelling ("meter" instead of default "metre") | ||
| Spelling U.S. names | | Spelling U.S. names | ||
|- | |- | ||
|<code>|spell=in</code> || data-sort-value="in" | | |<code>|spell=in</code> || data-sort-value="in" | in | ||
| Spell input number in words | | Spell input number in words | ||
| Spelling numbers | | Spelling numbers | ||
|- | |- | ||
|<code>|spell=In</code> || data-sort-value="In" | | |<code>|spell=In</code> || data-sort-value="In" | In | ||
| Spell input number in words with first letter uppercase | | Spell input number in words with first letter uppercase | ||
| Spelling numbers | | Spelling numbers | ||
|- | |- | ||
|<code>|spell=on</code> || data-sort-value="on" | | |<code>|spell=on</code> || data-sort-value="on" | on | ||
| Spell input and output numbers in words | | Spell input and output numbers in words | ||
| Spelling numbers | | Spelling numbers | ||
|- | |- | ||
|<code>|spell=On</code> || data-sort-value="On" | | |<code>|spell=On</code> || data-sort-value="On" | 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>|$=''€''</code> || data-sort-value="&euro" | | |<code>|$=''€''</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>|debug=yes</code> || data-sort-value="yes" | | |<code>|debug=yes</code> || data-sort-value="yes" | 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=|abbr=comma}}</code> || data-sort-value="comma" | | |<code>{{!mxt|1=|abbr=comma}}</code> || data-sort-value="comma" | comma | ||
| '''Deprecated'''. Use {{mxt|1=|comma=off}} | | '''Deprecated'''. Use {{mxt|1=|comma=off}} | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>{{!mxt|1=|abbr=mos}}</code> || data-sort-value="mos" | | |<code>{{!mxt|1=|abbr=mos}}</code> || data-sort-value="mos" | mos | ||
| '''Deprecated'''. Use {{mxt|1=|x|}} ''or'' {{mxt|1=|by|}} | | '''Deprecated'''. Use {{mxt|1=|x|}} ''or'' {{mxt|1=|by|}} | ||
| Range format | | Range format | ||
|- | |- | ||
|<code>{{!mxt|1=|adj=1}}</code> || data-sort-value="01" | | |<code>{{!mxt|1=|adj=1}}</code> || data-sort-value="01" | 1 | ||
| '''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=|adj=flip}}</code> || data-sort-value="flip" | | |<code>{{!mxt|1=|adj=flip}}</code> || data-sort-value="flip" | flip | ||
| '''Deprecated'''. Use {{mxt|1=|order=flip}} | | '''Deprecated'''. Use {{mxt|1=|order=flip}} | ||
| Order | | Order | ||
|- | |- | ||
|<code>{{!mxt|1=|adj=j}}</code> || data-sort-value="j" | | |<code>{{!mxt|1=|adj=j}}</code> || data-sort-value="j" | j | ||
| '''Deprecated'''. Do not use. No need to join number and unit with <code>&nbsp;</code>. Not by MOS, and could be misunderstood HTML | | '''Deprecated'''. Do not use. No need to join number and unit with <code>&nbsp;</code>. Not by MOS, and could be misunderstood HTML | ||
| Join values | | Join values | ||
|- | |- | ||
| <code>{{!mxt|1=|adj=nocomma}}</code> || data-sort-value="nocomma" | | | <code>{{!mxt|1=|adj=nocomma}}</code> || data-sort-value="nocomma" | ocomma | ||
| '''Deprecated'''. Use {{mxt|1=|comma=off}} | | '''Deprecated'''. Use {{mxt|1=|comma=off}} | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>{{!mxt|1=|comma=gaps5}}</code> || data-sort-value="gaps5" | | |<code>{{!mxt|1=|comma=gaps5}}</code> || data-sort-value="gaps5" | gaps5 | ||
| '''Deprecated'''. Use {{mxt|1=|comma=gaps}} | | '''Deprecated'''. Use {{mxt|1=|comma=gaps}} | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>{{!mxt|1=|disp=2}}</code> || data-sort-value="02" | | |<code>{{!mxt|1=|disp=2}}</code> || data-sort-value="02" | 2 | ||
| '''Deprecated'''. Use {{mxt|1=|disp=output only}} | | '''Deprecated'''. Use {{mxt|1=|disp=output only}} | ||
| Parts only | | Parts only | ||
|- | |- | ||
|<code>{{!mxt|1=|disp=5}}</code> || data-sort-value="05" | | |<code>{{!mxt|1=|disp=5}}</code> || data-sort-value="05" | 5 | ||
| '''Deprecated'''. Use {{mxt|1=|round=5}} | | '''Deprecated'''. Use {{mxt|1=|round=5}} | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>{{!mxt|1=|disp=flip}}</code> || data-sort-value="flip" | | |<code>{{!mxt|1=|disp=flip}}</code> || data-sort-value="flip" | flip | ||
| '''Deprecated'''. Use {{mxt|1=|order=flip}} | | '''Deprecated'''. Use {{mxt|1=|order=flip}} | ||
| Order | | Order | ||
|- | |- | ||
|<code>{{!mxt|1=|disp=flip5}}</code> || data-sort-value="flip5" | | |<code>{{!mxt|1=|disp=flip5}}</code> || data-sort-value="flip5" | flip5 | ||
| '''Deprecated'''. Use {{mxt|1=|order=flip |round=5}} | | '''Deprecated'''. Use {{mxt|1=|order=flip |round=5}} | ||
| Order, rounding | | Order, rounding | ||
|- | |- | ||
| <code>{{!mxt|1=|disp=nocomma}}</code> || data-sort-value="nocomma" | | | <code>{{!mxt|1=|disp=nocomma}}</code> || data-sort-value="nocomma" | nocomma | ||
| '''Deprecated'''. Use {{mxt|1=|comma=off}} | | '''Deprecated'''. Use {{mxt|1=|comma=off}} | ||
| Number format | | Number format | ||
|- | |- | ||
|<code>{{!mxt|1=|disp=u2}}</code> || data-sort-value="u2" | | |<code>{{!mxt|1=|disp=u2}}</code> || data-sort-value="u2" | u2 | ||
| '''Deprecated'''. Use {{mxt|1=|disp=unit2}} | | '''Deprecated'''. Use {{mxt|1=|disp=unit2}} | ||
| Parts only | | Parts only | ||
|- | |- | ||
|<code>{{!mxt|1=|near=5}}</code> || data-sort-value="05" | | |<code>{{!mxt|1=|near=5}}</code> || data-sort-value="05" | 5 | ||
| '''Deprecated'''. Use {{mxt|1=|round=5}} | | '''Deprecated'''. Use {{mxt|1=|round=5}} | ||
| Rounding and significant figures | | Rounding and significant figures | ||
|- | |- | ||
|<code>{{!mxt|1=|sing=}}</code> || data-sort-value="" | | |<code>{{!mxt|1=|sing=}}</code> || data-sort-value="" | | ||
| '''Deprecated'''. Use {{mxt|1=|adj=}} | | '''Deprecated'''. Use {{mxt|1=|adj=}} | ||
| Plurals | | Plurals | ||
|}<noinclude> | |}<!-- | ||
{{documentation}} | |||
</noinclude> | --><noinclude>{{documentation}}</noinclude> |
Revision as of 09:22, 13 January 2018
Parameter | Value | Description | Note |
---|---|---|---|
|abbr=in |
in | Use symbol for first (left-hand side) unit | Symbol ('abbreviation') |
|abbr=off |
off | Use name for all units | Symbol ('abbreviation') |
|abbr=none |
none | ||
|abbr=on |
on | Use symbol for all units | Symbol ('abbreviation') |
|abbr=out |
out | Use symbol for right-hand side unit (default) | Symbol ('abbreviation') |
|abbr=unit |
unit | Use symbol for all units when using scientific notation | Symbol ('abbreviation') |
|abbr=values |
values | Show only input and output numbers, not units | Parts only |
|abbr=~ |
~ | Shows both unit name and symbol | Symbol & name |
|adj=mid|… |
mid | User-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter.
|
Word adding, adjective |
|adj=on |
on | Unit name is adjective (singular and hyphenated) | Grammar, adjective |
|adj=pre|… |
pre | User-specified text before input unit. Expects 1 unnamed parameter. | Word adding |
|adj=ri0 |
ri0 | Round input with precision 0 | Rounding and significant figures |
|adj=ri1 |
ri1 | Round input with precision 1 | Rounding and significant figures |
|adj=ri2 |
ri2 | Round input with precision 2 | Rounding and significant figures |
|adj=ri3 |
ri3 | Round input with precision 3 | Rounding and significant figures |
|comma=5 |
5 | Only use comma for thousands separator if 5 or more digits | Number format |
|comma=gaps |
gaps | Use gaps (space), not comma, for thousands separator | Number format |
|comma=off |
off | No thousands separator | Number format |
|disp=b |
b | Join input and output using " (...)" (default) | Join values |
|disp=sqbr |
sqbr | Join input and output using " [...]" | Join values |
|disp=br |
br | Join input and output using "<br/>" | Join values |
|disp=comma |
comma | Join input and output using ", " | Join values |
|disp=or |
or | Join input and output using " or " | Join values |
|disp=number |
number | Display output number only | Parts only |
|disp=output number only |
output number only | ||
|disp=out |
out | Display only output number and name/symbol | Parts only |
|disp=output only |
output only | ||
|disp=preunit|…[|…] |
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 |
table | Output is suitable for a table cell with align="right" | Table columns |
|disp=tablecen |
tablecen | Output is suitable for a table cell with align="center" | Table columns |
|disp=unit |
unit | Display input name/symbol only (not input number, not output) | Parts only |
|disp=unit2 |
unit2 | Display output name/symbol only (not input; not output number) | Parts only |
|disp=x|... |
x | Join input and output using user-specified text | Word adding |
|frac=N |
N | Show imperial number in fractions, denominator=N | Number format, fraction |
|lk=in |
in | Link left-hand side unit name or symbol | Unit link |
|lk=on |
on | Link all unit names or symbols (but not twice for the same unit) | Unit link |
|lk=out |
out | Link right-hand side unit name or symbol | Unit link |
|order=flip |
flip | Inverts order of input, output measurements (conversion first) | Order |
|round=5 |
5 | Rounds calculation to the nearest multiple of 5 | Rounding and significant figures |
|round=25 |
25 | Rounds calculation to the nearest multiple of 25 | Rounding and significant figures |
|round=each |
each | In a range, each number is rounded by the default rounding | Rounding and significant figures |
|sigfig=N |
N | Round output number to N significant figures (N is a positive integer) | Rounding and significant figures |
|sortable=on |
on | Adds invisible sort key | Table sort |
|sortable=in |
in | Deprecated. Use sortable=on | Table sort |
|sortable=out |
out | Deprecated. Use sortable=on | Table sort |
|sp=us |
us | Use U.S. spelling ("meter" instead of default "metre") | Spelling U.S. names |
|spell=in |
in | Spell input number in words | Spelling numbers |
|spell=In |
In | Spell input number in words with first letter uppercase | Spelling numbers |
|spell=on |
on | Spell input and output numbers in words | Spelling numbers |
|spell=On |
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 |
yes | Debugging only. In a sortable table: show the normally hidden sort key | Table sort |
|abbr=comma |
comma | Deprecated. Use |comma=off | Number format |
|abbr=mos |
mos | Deprecated. Use |x| or |by| | Range format |
|adj=1 |
1 | Deprecated. Do not use. No need to deviate from MOS regarding plurals | Plural or singular |
|adj=flip |
flip | Deprecated. Use |order=flip | Order |
|adj=j |
j | Deprecated. Do not use. No need to join number and unit with . Not by MOS, and could be misunderstood HTML
|
Join values |
|adj=nocomma |
ocomma | Deprecated. Use |comma=off | Number format |
|comma=gaps5 |
gaps5 | Deprecated. Use |comma=gaps | Number format |
|disp=2 |
2 | Deprecated. Use |disp=output only | Parts only |
|disp=5 |
5 | Deprecated. Use |round=5 | Rounding and significant figures |
|disp=flip |
flip | Deprecated. Use |order=flip | Order |
|disp=flip5 |
flip5 | Deprecated. Use |order=flip |round=5 | Order, rounding |
|disp=nocomma |
nocomma | Deprecated. Use |comma=off | Number format |
|disp=u2 |
u2 | Deprecated. Use |disp=unit2 | Parts only |
|near=5 |
5 | Deprecated. Use |round=5 | Rounding and significant figures |
|sing= |
Deprecated. Use |adj= | Plurals |