Template:Bbl to t/doc
Script error: No such module "Message box".
Usage
Examples
Template:Tlx gives 100 barrels (~Template:Sigfig t) round to three significant figures: Template:Tlx gives 100 barrels (~Template:Sigfig t) define density: Template:Tlx gives 100 barrels (~Template:Sigfig t) abbreviate: Template:Tlx gives 100 bbl (~Template:Sigfig t) link: Template:Tlx gives 100 barrels (~Template:Sigfig t) adjectives Template:Tlx gives 100-barrel (~Template:Sigfig t) rates: Template:Tlx gives 100 barrels per day (~Template:Sigfig t/d) rates with different time units: Template:Tlx gives 100 barrels per day (~Template:Sigfig t/a) ranges: Template:Tlx gives 100 to 200 barrels (~Template:Sigfig to ~Template:Sigfig t) large numbers of barrels: Template:Tlx gives 100 million barrels (~Script error: No such module "math".×10Expression error: Unexpected < operator. t)
See talk for more examples.
Parameters
Italicized parameters are optional:
- 1 is a required parameter, which specifies the number of oil barrels to be converted to tonnes (metric tons). Please do not format this parameter; i.e., use 1234 instead of 1,234.
- API is the API gravity factor. The default value is 33.4, corresponding to a density of 858.1 kg/m³ or 7.330 bbl/t at 60 °F.
- 2 can either be a word or a number dependant on "mode".
- 3 is used only in range mode.
- 4 is used only in range mode.
- abbr can take values of either on or off. The default value is off, which will show the names of the units as specified in the Manual of Style for dates and numbers (barrels, t); on will show the abbreviated names of the units (bbl, t).
- lk specifies whether the names of the units should be linked and can take values of either on or off. The default value is off.
- adj is used for adjectives and can take values of either on or off. The default value is off. Setting this parameter to on will put hyphens in and make barrel singular.
- per is used for rates. Use
hfor "per hour",dfor "per day" andafor "per annum". - t_per is used for tonne rates if a different time unit than that used for barrels is desired.
- mlt specifies whether to convert barrels, thousands of barrels, millions of barrels, billions of barrels or trillions of barrels. Set this parameter to the appropriate SI prefix. Note the billion and trillion used here are the "short scale" ones (109 and 1012 respectively).
Modes
- Single-conversion mode
In single-conversion mode template converts a single value. In standard mode 2 determines the number of significant figures in the output.
- Dual-conversion mode
Setting 2 to a word puts the template into dual-conversion mode. In this mode the template converts two values conjoined with the given word. The first value is determined by 1 and the second value is determined by 3. In dual conversion mode the number of significant figures in the output can be given by 4.
Rounding
- Rounding to a given number of significant figures
The template rounds conversions to the number of significant figures given by either 2 or 4 (dependant on mode as noted above).
- Default rounding
Where no number of significant figures is specified the default is to round according to the number of significant figures in the input. See talk for details.
Template Data
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | no description | Unknown | optional |
| 2 | 2 | no description | Unknown | optional |
| 3 | 3 | no description | Unknown | optional |
| 4 | 4 | no description | Unknown | optional |
| lk | lk | no description | Unknown | optional |
| abbr | abbr | no description | Unknown | optional |
| adj | adj | no description | Unknown | optional |
| per | per | no description | Unknown | optional |
| mlt | mlt | no description | Unknown | optional |
| API | API | no description | Unknown | optional |
| t_per | t_per | no description | Unknown | optional |
See also