Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Convert/doc/parameter list

From Wikipedia, the free encyclopedia
<Template:Convert |doc
Parameter options for {{convert}}
ParameterValueDescriptionNote
|abbr=ininUse symbol for first (left-hand side) unitUnit display
|abbr=offoffUse name for all unitsUnit display
|abbr=ononUse symbol for all units (default for{{cvt}})Unit display
|abbr=outoutUse symbol for right-hand side unit (default)Unit display
|abbr=unitunitSame asabbr=on but only for units (e6km → "million km")Unit display
|abbr=valuesvaluesShow only the input and output numbers; omit unitsUnit display
|abbr=~~Shows both unit name and symbol for the inputUnit display
|adj=mid|...midUser-specified text after the input unit; setsadj=on (adjectival); requires one unnamed parameterWord adding, adjectival
|adj=ononadjectival; unit name is singular and hyphenatedGrammar, adjectival
|adj=pre|...preUser-specified text before input unit (prefix); requires one unnamed parameterWord adding
|adj=ri0ri0Round input with precision 0Input precision
|adj=ri1ri1Round input with precision 1Input precision
|adj=ri2ri2Round input with precision 2Input precision
|adj=ri3ri3Round input with precision 3Input precision
|altitude_ft=NNSpecifies altitude in feet for a conversion withmach as the input unitQualifier
|altitude_m=NNSpecifies altitude in metres for a conversion withmach as the input unitQualifier
|comma=55Only use comma for thousands separator if 5 or more digitsNumber format
|comma=gapsgapsUse gaps (space), not comma, for thousands separatorNumber format
|comma=offoffNo thousands separator (raw number)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=br()brJoin input and output using "<br />(...)"Join values
|disp=commacommaJoin input and output using ", "Join values
|disp=semicolonsemicolonJoin input and output using "; "Join values
|disp=ororJoin input and output using " or "Join values
|disp=(or)orJoin input and output using " (...)" but with "or" between outputs in a combinationJoin values
|disp=numbernumberDisplay output number onlyParts only
|disp=output number onlyoutput number only
|disp=outoutDisplay only output number and name/symbolParts 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; requires 1 or 2 unnamed parametersWord 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 one (or two) unnamed parameter(s) before (and after) the outputWord adding
|error=xany textThis has no effect if the conversion works; if a conversion error occurs, the result isx (and the original error message is suppressed)Inside template
|frac=N34(e.g.)Show number as a fraction with denominatorNNumber format, fraction
|frac=-N3/4(e.g.)Show number as a fraction with a horizontal barNumber format, fraction
|input=P2048P2048(e.g.)Reads and converts a Wikidata propertyInside template
|lk=ininLink left-hand side unit name or symbolUnit 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 symbolUnit link
|order=flipflipSwaps the order of the input and output measurementsOrder
|order=outoutDisplays output units in the order entered, skipping input unitOrder
|qid=Q1056131Q1056131(e.g.)Specifies the Wikidata entity to be used with a property such asinput=P2048Inside template; testing
|qual=Q613628Q613628(e.g.)Specifies a statement qualifier for a Wikidata propertyQualify Wikidata property
|round=NNRounds output value to nearestN which can be0.5 or5 or10 or25 or50Output precision
|round=eacheachIn a range, round each number separately rather than selecting the same rounding precisionOutput precision
|sigfig=NNRound output number toN significant figures (N is a positive integer)Output precision
|sortable=ononAdds an invisible sort keyTable sort
|sp=ususUse U.S. spelling ("meter" instead of default "metre")Spelling U.S. names
|spell=ininSpell input number in wordsSpelling numbers
|spell=InInSpell input number in words with first letter uppercaseSpelling numbers
|spell=ononSpell input and output numbers in wordsSpelling numbers
|spell=OnOnSpell input and output numbers in words with first letter uppercaseSpelling 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 keyTable sort
|disp=flipflipDeprecated. Use|order=flipOrder
|sing=Deprecated. Use|adj=Plurals
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Convert/doc/parameter_list&oldid=1318576726"

[8]ページ先頭

©2009-2025 Movatter.jp