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