Jump to content

Template:Convert/doc/parameter list

From Wikipedia, the free encyclopedia
Parameter Value Description Note
|abbr=ininUse symbol for first (left-hand side) unit Unit display
|abbr=offoffUse name for all units Unit display
|abbr=nonenone
|abbr=ononUse symbol for all units (default for {{cvt}}) Unit display
|abbr=outoutUse symbol for right-hand side unit (default) Unit display
|abbr=unitunitUse symbol for all units when using scientific notation Unit display
|abbr=valuesvaluesOmit both the input and output units: show only the numbers Unit display
|abbr=~~Shows both unit name and symbol Unit display
|adj=mid|…midUser-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter. Word adding, adjective
|adj=ononUnit name is adjective (singular and hyphenated) Grammar, adjective
|adj=pre|…preUser-specified text before input unit. Expects 1 unnamed parameter. Word adding
|adj=ri0ri0Round input with precision 0 Input precision
|adj=ri1ri1Round input with precision 1 Input precision
|adj=ri2ri2Round input with precision 2 Input precision
|adj=ri3ri3Round input with precision 3 Input precision
|comma=55Only use comma for thousands separator if 5 or more digits Number format
|comma=gapsgapsUse gaps (space), not comma, for thousands separator Number format
|comma=offoffNo thousands separator Number format
|disp=bbJoin input and output using " (...)" (default) Join values
|disp=sqbrsqbrJoin input and output using " [...]" Join values
|disp=brbrJoin input and output using "<br/>" Join values
|disp=commacommaJoin input and output using ", " Join values
|disp=ororJoin input and output using " or " Join values
|disp=numbernumberDisplay output number only Parts only
|disp=output number onlyoutput number only
|disp=outoutDisplay only output number and name/symbol Parts only
|disp=output onlyoutput only
|disp=preunit|…[|…]preunitText 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=tabletableOutput is suitable for a table cell with align="right" Table columns
|disp=tablecentablecenOutput is suitable for a table cell with align="center" Table columns
|disp=unitunitDisplay input name/symbol only (not input number, not output) Parts only
|disp=unit2unit2Display output name/symbol only (not input; not output number) Parts only
|disp=x|…xJoin input and output using user-specified text Word adding
|frac=NNShow imperial number in fractions, denominator=NNumber format, fraction
|input=P2048P2048(e.g.)Reads and converts Wikidata property Inside template
|lk=ininLink left-hand side unit name or symbol Unit link
|lk=ononLink all unit names or symbols (but not twice for the same unit) Unit link
|lk=outoutLink right-hand side unit name or symbol Unit link
|order=flipflipInverts order of input, output measurements (conversion first) Order
|order=outoutDisplays output units in the order entered, skipping input unit Order
|qid=Q1056131Q1056131(e.g.)Reads Wikidata property from Wikidata item Inside template; testing
|qual=Q613628Q613628(e.g.)Qualify Wikidata property
|round=55Rounds calculation to the nearest multiple of 5 Output precision
|round=2525Rounds calculation to the nearest multiple of 25 Output precision
|round=eacheachIn a range, each number is rounded by the default rounding Output precision
|sigfig=NNRound output number to N significant figures (N is a positive integer) Output precision
|sortable=ononAdds invisible sort key Table sort
|sp=ususUse U.S. spelling ("meter" instead of default "metre") Spelling U.S. names
|spell=ininSpell input number in words Spelling numbers
|spell=InInSpell input number in words with first letter uppercase Spelling numbers
|spell=ononSpell input and output numbers in words Spelling numbers
|spell=OnOnSpell input and output numbers in words with first letter uppercase Spelling numbers
|$=€Replace $-sign with a currency sign, for example in €/hectareCost per unit
No currency conversion happens
|debug=yesyesDebugging only. In a sortable table: show the normally hidden sort key Table sort
|disp=flipflipDeprecated. Use |order=flipOrder
|sing=Deprecated. Use |adj=Plurals
close