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

From Zoophilia Wiki
Jump to navigationJump to search
meta>DePiep
tested: deprecated marked text like "abbr=comma: sorts correct
meta>DePiep
add abbr=mos
Line 17: Line 17:
|-
|-
|<code>&#124;abbr=values</code> || Show only input and output numbers, not units
|<code>&#124;abbr=values</code> || Show only input and output numbers, not units
|-
|<code>&#124;abbr=~</code> || Show input unit symbol as well as name
|-
|-
|<code>&#124;adj=1</code> || Unit name is singular when value is 1 or less, but not zero
|<code>&#124;adj=1</code> || Unit name is singular when value is 1 or less, but not zero
Line 118: Line 116:
|-
|-
|<code>&#124;debug=yes</code> || '''Debugging only'''. In a sortable table: show the normally hidden sort key
|<code>&#124;debug=yes</code> || '''Debugging only'''. In a sortable table: show the normally hidden sort key
|-
|<code>{{!xt|1=&#124;abbr=mos}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;x&#x7c;}} ''or'' {{xt|1=&#x7c;by&#x7c;}}
|-
|<code>{{!xt|1=&#124;abbr=comma}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;adj=nocomma}}
|-
|-
|<code>{{!xt|1=&#124;adj=flip}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
|<code>{{!xt|1=&#124;adj=flip}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
|-
|<code>{{!xt|1=&#124;disp=5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
|-
|-
|<code>{{!xt|1=&#124;disp=flip}}</code> ||  '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
|<code>{{!xt|1=&#124;disp=flip}}</code> ||  '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
Line 127: Line 127:
|<code>{{!xt|1=&#124;disp=flip5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
|<code>{{!xt|1=&#124;disp=flip5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
|-
|-
|<code>{{!xt|1=&#124;near=5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
|<code>{{!xt|1=&#124;disp=5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
|-
|<code>{{!xt|1=&#124;abbr=comma}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;adj=nocomma}}
|-
|-
|<code>{{!xt|1=&#124;disp=2}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;disp=output only}}
|<code>{{!xt|1=&#124;disp=2}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;disp=output only}}
|-
|-
|<code>{{!xt|1=&#124;disp=u2}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;disp=unit2}}
|<code>{{!xt|1=&#124;disp=u2}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;disp=unit2}}
|-
|<code>{{!xt|1=&#124;near=5}}</code> || '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
|}<noinclude>
|}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 16:02, 5 November 2014

Option Description
|abbr=in Use symbol for first (left-hand side) unit
|abbr=off Use name for all units
|abbr=none
|abbr=on Use symbol for all units
|abbr=out Use symbol for right-hand side unit (default)
|abbr=values Show only input and output numbers, not units
|adj=1 Unit name is singular when value is 1 or less, but not zero
|adj=j Join value and unit name using "&nbsp;" instead of a space
|adj=mid Same as adj=on with user-specified text after input unit
|adj=on Unit name is singular and hyphenated (adjective)
|adj=pre User-specified text before input unit
|adj=ri0 Round input with precision 0
|adj=ri1 Round input with precision 1
|adj=ri2 Round input with precision 2
|adj=ri3 Round input with precision 3
|disp=b Join input and output using " (...)" (default)
|disp=sqbr Join input and output using " [...]"
|disp=br Join input and output using "<br/>"
|disp=comma Join input and output using ", "
|disp=or Join input and output using " or "
|disp=nocomma No comma in input or output numbers
|disp=number Display output value only
|disp=output number only
|disp=out Display only output value and name/symbol
|disp=output only
|disp=preunit User-specified text before input and output units
|disp=table Output is suitable for a table cell with align="right"
|disp=tablecen Output is suitable for a table cell with align="center"
|disp=unit Display input name/symbol only (not output; not input value)
|disp=unit2 Display output name/symbol only (not input; not output value)
|disp=x|... Join input and output using user-specified text
|comma=5 Only use comma for thousands separator if 5 or more digits
|comma=gaps Use gaps (space), not comma, for thousands separator
|comma=gaps5 Use gaps (space), but only if 5 or more digits
|adj=nocomma No thousands separator (comma) in input and output numbers
|frac=N Show imperial number in fractions, denominator=N
|lk=in Link left-hand side unit name or symbol
|lk=on Link all unit names or symbols (but not twice for the same unit)
|lk=out Link right-hand side unit name or symbol
|order=flip Inverts order of input, output measurements (conversion first)
|round=5 Rounds calculation to the nearest multiple of 5
|round=25 Rounds calculation to the nearest multiple of 25
|round=each In a range, each value is rounded by the default rounding
|sigfig=N Round output value to N significant figures (N is a positive integer)
|sortable=in Output numeric hidden sort field for use in a sortable table (based on input)
|sortable=on
|sortable=out Output numeric hidden sort field for use in a sortable table (based on output)
|sp=us Use U.S. spelling (like "meter" instead of default "metre")
|spell=in Spell input value in words
|spell=In Spell input value in words with first letter uppercase
|spell=on Spell input and output values in words
|spell=On Spell input and output values in words with first letter uppercase
|debug=yes Debugging only. In a sortable table: show the normally hidden sort key
|abbr=mos Deprecated. Use |x| or |by|
|abbr=comma Deprecated. Use |adj=nocomma
|adj=flip Deprecated. Use |order=flip
|disp=flip Deprecated. Use |order=flip
|disp=flip5 Deprecated. Use |order=flip |round=5
|disp=5 Deprecated. Use |round=5
|disp=2 Deprecated. Use |disp=output only
|disp=u2 Deprecated. Use |disp=unit2
|near=5 Deprecated. Use |round=5