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

From Zoophilia Wiki
Jump to navigationJump to search
No edit summary
meta>Eyesnore
No edit summary
Line 211: Line 211:
| Table sort
| Table sort
|- <!-- ----------------- Deprecated options ------------------------- -->
|- <!-- ----------------- Deprecated options ------------------------- -->
|<code>{{!xt|1=&#124;abbr=comma}}</code> || {{hidden sort key|comma}}
|<code>{{!mxt|1=&#124;abbr=comma}}</code> || {{hidden sort key|comma}}
| '''Deprecated'''. Use {{xt|1=&#x7c;comma=off}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
| Number format
| Number format
|-
|-
|<code>{{!xt|1=&#124;abbr=mos}}</code> || {{hidden sort key|mos}}
|<code>{{!mxt|1=&#124;abbr=mos}}</code> || {{hidden sort key|mos}}
| '''Deprecated'''. Use {{xt|1=&#x7c;x&#x7c;}} ''or'' {{xt|1=&#x7c;by&#x7c;}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;x&#x7c;}} ''or'' {{mxt|1=&#x7c;by&#x7c;}}
| Range format
| Range format
|-
|-
|<code>{{!xt|1=&#124;adj=1}}</code> || {{hidden sort key|01}}
|<code>{{!mxt|1=&#124;adj=1}}</code> || {{hidden sort key|01}}
| '''Deprecated'''. Do not use. No need to deviate from [[MOS:FRACTION|MOS]] regarding plurals
| '''Deprecated'''. Do not use. No need to deviate from [[MOS:FRACTION|MOS]] regarding plurals
| Plural or singular
| Plural or singular
|-
|-
|<code>{{!xt|1=&#124;adj=flip}}</code> || {{hidden sort key|flip}}
|<code>{{!mxt|1=&#124;adj=flip}}</code> || {{hidden sort key|flip}}
| '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
| Order
| Order
|-
|-
| <code>{{!xt|1=&#124;adj=nocomma}}</code> || {{hidden sort key|nocomma}}
| <code>{{!mxt|1=&#124;adj=nocomma}}</code> || {{hidden sort key|nocomma}}
| '''Deprecated'''. Use {{xt|1=&#x7c;comma=off}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
| Number format
| Number format
|-
|-
|<code>{{!xt|1=&#124;disp=2}}</code> || {{hidden sort key|02}}
|<code>{{!mxt|1=&#124;disp=2}}</code> || {{hidden sort key|02}}
| '''Deprecated'''. Use {{xt|1=&#x7c;disp=output only}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=output only}}
| Parts only
| Parts only
|-
|-
|<code>{{!xt|1=&#124;disp=5}}</code> || {{hidden sort key|05}}
|<code>{{!mxt|1=&#124;disp=5}}</code> || {{hidden sort key|05}}
| '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
| Rounding and significant figures
| Rounding and significant figures
|-
|-
|<code>{{!xt|1=&#124;disp=flip}}</code> || {{hidden sort key|flip}}
|<code>{{!mxt|1=&#124;disp=flip}}</code> || {{hidden sort key|flip}}
| '''Deprecated'''. Use {{xt|1=&#x7c;order=flip}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip}}
| Order
| Order
|-
|-
|<code>{{!xt|1=&#124;disp=flip5}}</code> || {{hidden sort key|flip5}}
|<code>{{!mxt|1=&#124;disp=flip5}}</code> || {{hidden sort key|flip5}}
| '''Deprecated'''. Use {{xt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;order=flip&nbsp;&#x7c;round=5}}
| Order, rounding
| Order, rounding
|-
|-
| <code>{{!xt|1=&#124;disp=nocomma}}</code> || {{hidden sort key|nocomma}}
| <code>{{!mxt|1=&#124;disp=nocomma}}</code> || {{hidden sort key|nocomma}}
| '''Deprecated'''. Use {{xt|1=&#x7c;comma=off}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;comma=off}}
| Number format
| Number format
|-
|-
|<code>{{!xt|1=&#124;disp=u2}}</code> || {{hidden sort key|u2}}
|<code>{{!mxt|1=&#124;disp=u2}}</code> || {{hidden sort key|u2}}
| '''Deprecated'''. Use {{xt|1=&#x7c;disp=unit2}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;disp=unit2}}
| Parts only
| Parts only
|-
|-
|<code>{{!xt|1=&#124;near=5}}</code> || {{hidden sort key|05}}
|<code>{{!mxt|1=&#124;near=5}}</code> || {{hidden sort key|05}}
| '''Deprecated'''. Use {{xt|1=&#x7c;round=5}}
| '''Deprecated'''. Use {{mxt|1=&#x7c;round=5}}
| Rounding and significant figures
| Rounding and significant figures
|}<noinclude>
|}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Revision as of 21:29, 17 October 2016

Parameter Value Description Note
|abbr=in Template:Hidden sort key Use symbol for first (left-hand side) unit Symbol ('abbreviation')
|abbr=off Template:Hidden sort key Use name for all units Symbol ('abbreviation')
|abbr=none Template:Hidden sort key
|abbr=on Template:Hidden sort key Use symbol for all units Symbol ('abbreviation')
|abbr=out Template:Hidden sort key Use symbol for right-hand side unit (default) Symbol ('abbreviation')
|abbr=values Template:Hidden sort key Show only input and output numbers, not units Parts only
|abbr=~ Template:Hidden sort key Shows both unit name and symbol Symbol & name
|adj=j Template:Hidden sort key Join number and unit name using "&nbsp;" instead of a space Join values
|adj=mid|… Template:Hidden sort key User-specified text after the input unit; sets adj=on (adjective). Expects 1 unnamed parameter. Word adding, adjective
|adj=on Template:Hidden sort key Unit name is adjective (singular and hyphenated) Grammar, adjective
|adj=pre|… Template:Hidden sort key User-specified text before input unit. Expects 1 unnamed parameter. Word adding
|adj=ri0 Template:Hidden sort key Round input with precision 0 Rounding and significant figures
|adj=ri1 Template:Hidden sort key Round input with precision 1 Rounding and significant figures
|adj=ri2 Template:Hidden sort key Round input with precision 2 Rounding and significant figures
|adj=ri3 Template:Hidden sort key Round input with precision 3 Rounding and significant figures
|disp=b Template:Hidden sort key Join input and output using " (...)" (default) Join values
|disp=sqbr Template:Hidden sort key Join input and output using " [...]" Join values
|disp=br Template:Hidden sort key Join input and output using "<br/>" Join values
|disp=comma Template:Hidden sort key Join input and output using ", " Join values
|disp=or Template:Hidden sort key Join input and output using " or " Join values
|disp=number Template:Hidden sort key Display output number only Parts only
|disp=output number only Template:Hidden sort key
|disp=out Template:Hidden sort key Display only output number and name/symbol Parts only
|disp=output only Template:Hidden sort key
|disp=preunit|…[|…] Template:Hidden sort key Text 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=table Template:Hidden sort key Output is suitable for a table cell with align="right" Table columns
|disp=tablecen Template:Hidden sort key Output is suitable for a table cell with align="center" Table columns
|disp=unit Template:Hidden sort key Display input name/symbol only (not input number, not output) Parts only
|disp=unit2 Template:Hidden sort key Display output name/symbol only (not input; not output number) Parts only
|disp=x|... Template:Hidden sort key Join input and output using user-specified text Word adding
|comma=5 Template:Hidden sort key Only use comma for thousands separator if 5 or more digits Number format
|comma=gaps Template:Hidden sort key Use gaps (space), not comma, for thousands separator Number format
|comma=gaps5 Template:Hidden sort key Use gaps (space), but only if 5 or more digits Number format
|comma=off Template:Hidden sort key No thousands separator Number format
|frac=N Template:Hidden sort key Show imperial number in fractions, denominator=N Number format, fraction
|lk=in Template:Hidden sort key Link left-hand side unit name or symbol Unit link
|lk=on Template:Hidden sort key Link all unit names or symbols (but not twice for the same unit) Unit link
|lk=out Template:Hidden sort key Link right-hand side unit name or symbol Unit link
|order=flip Template:Hidden sort key Inverts order of input, output measurements (conversion first) Order
|round=5 Template:Hidden sort key Rounds calculation to the nearest multiple of 5 Rounding and significant figures
|round=25 Template:Hidden sort key Rounds calculation to the nearest multiple of 25 Rounding and significant figures
|round=each Template:Hidden sort key In a range, each number is rounded by the default rounding Rounding and significant figures
|sigfig=N Template:Hidden sort key Round output number to N significant figures (N is a positive integer) Rounding and significant figures
|sortable=in Template:Hidden sort key Output numeric hidden sort field for use in a sortable table (based on input) Table sort
|sortable=on Template:Hidden sort key
|sortable=out Template:Hidden sort key Output numeric hidden sort field for use in a sortable table (based on output) Table sort
|sp=us Template:Hidden sort key Use U.S. spelling (like "meter" instead of default "metre") Spelling U.S. names
|spell=in Template:Hidden sort key Spell input number in words Spelling numbers
|spell=In Template:Hidden sort key Spell input number in words with first letter uppercase Spelling numbers
|spell=on Template:Hidden sort key Spell input and output numbers in words Spelling numbers
|spell=On Template:Hidden sort key Spell input and output numbers in words with first letter uppercase Spelling numbers
|$= Template:Hidden sort key Replace $-sign with a currency sign, for example in $/acre (no currency conversion happens) Cost per unit
|debug=yes Template:Hidden sort key Debugging only. In a sortable table: show the normally hidden sort key Table sort
|abbr=comma Template:Hidden sort key Deprecated. Use |comma=off Number format
|abbr=mos Template:Hidden sort key Deprecated. Use |x| or |by| Range format
|adj=1 Template:Hidden sort key Deprecated. Do not use. No need to deviate from MOS regarding plurals Plural or singular
|adj=flip Template:Hidden sort key Deprecated. Use |order=flip Order
|adj=nocomma Template:Hidden sort key Deprecated. Use |comma=off Number format
|disp=2 Template:Hidden sort key Deprecated. Use |disp=output only Parts only
|disp=5 Template:Hidden sort key Deprecated. Use |round=5 Rounding and significant figures
|disp=flip Template:Hidden sort key Deprecated. Use |order=flip Order
|disp=flip5 Template:Hidden sort key Deprecated. Use |order=flip |round=5 Order, rounding
|disp=nocomma Template:Hidden sort key Deprecated. Use |comma=off Number format
|disp=u2 Template:Hidden sort key Deprecated. Use |disp=unit2 Parts only
|near=5 Template:Hidden sort key Deprecated. Use |round=5 Rounding and significant figures