Template:Convert/doc/parameter list

class="wikitable sortable collapsible {{{state|uncollapsed}}}" style="width:100%;"

! colspan=4 style="background:#eee" | {{navbar-collapsible|Parameter options for {{convert}}|Convert/doc/parameter list}}

Parameter

! Value

! Description

! Note

|abbr=indata-sort-value="in" | in

| Use symbol for first (left-hand side) unit

| Unit display

|abbr=offdata-sort-value="off" | off

| rowspan=2 | Use name for all units

| rowspan=2 | Unit display

|abbr=nonedata-sort-value="none" | none
|abbr=ondata-sort-value="on" | on

| Use symbol for all units (default for {{tlx|cvt}})

| Unit display

|abbr=outdata-sort-value="out" | out

| Use symbol for right-hand side unit (default)

| Unit display

|abbr=unitdata-sort-value="unit" | unit

| Use symbol for all units when using scientific notation

| Unit display

|abbr=valuesdata-sort-value="values" | values

| Omit both the input and output units: show only the numbers

| Unit display

|abbr=~data-sort-value="~" | ~

| Shows both unit name and symbol

| Unit display

|adj=mid|…data-sort-value="mid" | mid

| User-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter.

| Word adding, adjective

|adj=ondata-sort-value="on" | on

| Unit name is adjective (singular and hyphenated)

| Grammar, adjective

|adj=pre|…data-sort-value="pre" | pre

| User-specified text before input unit. Expects 1 unnamed parameter.

| Word adding

|adj=ri0data-sort-value="ri0" | ri0

| Round input with precision 0

| Input precision

|adj=ri1data-sort-value="ri1" | ri1

| Round input with precision 1

| Input precision

|adj=ri2data-sort-value="ri2" | ri2

| Round input with precision 2

| Input precision

|adj=ri3data-sort-value="ri3" | ri3

| Round input with precision 3

| Input precision

|comma=5data-sort-value="05" | 5

| Only use comma for thousands separator if 5 or more digits

| Number format

|comma=gapsdata-sort-value="gaps" | gaps

| Use gaps (space), not comma, for thousands separator

| Number format

|comma=offdata-sort-value="off" | off

| No thousands separator

| Number format

|disp=bdata-sort-value="b" | b

| Join input and output using " (...)" (default)

| Join values

|disp=sqbrdata-sort-value="sqbr" | sqbr

| Join input and output using " [...]"

| Join values

|disp=brdata-sort-value="br" | br

| Join input and output using "<br/>"

| Join values

|disp=commadata-sort-value="comma" | comma

| Join input and output using ", "

| Join values

|disp=ordata-sort-value="or" | or

| Join input and output using " or "

| Join values

|disp=numberdata-sort-value="number" | number

| rowspan=2 | Display output number only

| rowspan=2 | Parts only

|disp=output number onlydata-sort-value="output number only" | output number only
|disp=outdata-sort-value="out" | out

| rowspan=2 | Display only output number and name/symbol

| rowspan=2 | Parts only

|disp=output onlydata-sort-value="output only" | output only
|disp=preunit|…[|…]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.

| Word adding

|disp=tabledata-sort-value="table" | table

| Output is suitable for a table cell with align="right"

| Table columns

|disp=tablecendata-sort-value="tablecen" | tablecen

| Output is suitable for a table cell with align="center"

| Table columns

|disp=unitdata-sort-value="unit" | unit

| Display input name/symbol only (not input number, not output)

| Parts only

|disp=unit2data-sort-value="unit2" | unit2

| Display output name/symbol only (not input; not output number)

| Parts only

|disp=x|…data-sort-value="x" | x

| Join input and output using user-specified text

| Word adding

|frac=Ndata-sort-value="N" | N

| Show imperial number in fractions, denominator=N

| Number format, fraction

|input=P2048data-sort-value="property P2048" | P2048 {{small|1=(e.g.)}}

| Reads and converts Wikidata property

| Inside template

|lk=indata-sort-value="in" | in

| Link left-hand side unit name or symbol

| Unit link

|lk=ondata-sort-value="on" | on

| Link all unit names or symbols (but not twice for the same unit)

| Unit link

|lk=outdata-sort-value="out" | out

| Link right-hand side unit name or symbol

| Unit link

|order=flipdata-sort-value="flip" | flip

| Inverts order of input, output measurements (conversion first)

| Order

|order=outdata-sort-value="out" | out

| Displays output units in the order entered, skipping input unit

| Order

|qid=Q1056131data-sort-value="qid Q1056131" | Q1056131 {{small|1=(e.g.)}}

| Reads Wikidata property from Wikidata item

| Inside template; testing

|qual=Q613628data-sort-value="qual Q613628" | Q613628 {{small|1=(e.g.)}}

| Qualify Wikidata property

|

|round=5data-sort-value="05" | 5

| Rounds calculation to the nearest multiple of 5

| Output precision

|round=25data-sort-value="25" | 25

| Rounds calculation to the nearest multiple of 25

| Output precision

|round=eachdata-sort-value="each" | each

| In a range, each number is rounded by the default rounding

| Output precision

|sigfig=Ndata-sort-value="N" | N

| Round output number to N significant figures (N is a positive integer)

| Output precision

|sortable=ondata-sort-value="on" | on

| Adds invisible sort key

| Table sort

|sp=usdata-sort-value="us" | us

| Use U.S. spelling ("meter" instead of default "metre")

| Spelling U.S. names

|spell=indata-sort-value="in" | in

| Spell input number in words

| Spelling numbers

|spell=Indata-sort-value="In" | In

| Spell input number in words with first letter uppercase

| Spelling numbers

|spell=ondata-sort-value="on" | on

| Spell input and output numbers in words

| Spelling numbers

|spell=Ondata-sort-value="On" | On

| Spell input and output numbers in words with first letter uppercase

| Spelling numbers

|$=€data-sort-value="€" |

| Replace $-sign with a currency sign, for example in €/hectare

| Cost per unit
{{nowrap|No currency conversion happens}}

|debug=yesdata-sort-value="yes" | yes

| Debugging only. In a sortable table: show the normally hidden sort key

| Table sort

|{{!mxt|1=|disp=flip}}

data-sort-value="flip" | flip

| Deprecated. Use {{mxt|1=|order=flip}}

| Order

{{!mxt|1=|sing=}}data-sort-value="" |

| Deprecated. Use {{mxt|1=|adj=}}

| Plurals