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

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

Revision as of 15:57, 24 October 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
|abbr=~ Show input unit symbol as well as name
|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
|adj=flip Deprecated. Use |order=flip
|disp=5 Deprecated. Use |round=5
|disp=flip Deprecated. Use |order=flip
|disp=flip5 Deprecated. Use |order=flip |round=5
|near=5 Deprecated. Use |round=5
|abbr=comma Deprecated. Use |adj=nocomma
|disp=2 Deprecated. Use |disp=output only
|disp=u2 Deprecated. Use |disp=unit2