Template:Bbl to t/doc

From Edge of Darkness Wiki

Bbl to t/doc
Jump to: navigation, search

Contents

Usage

{{bbl to t| 1 | 2 | 3 | 4 |API=|abbr=|lk=|adj=|per=|t_per=|mlt=}}

Examples

{{bbl to t|100}}gives100 barrels (~14 t)
round to three signigicant figures: {{bbl to t|100|3}}gives100 barrels (~13.6 t)
define density: {{bbl to t|100|API=22}}gives100 barrels (~15 t)
abbreviate: {{bbl to t|100|abbr=on}}gives100 bbl (~14 t)
link: {{bbl to t|100|lk=on}}gives100 barrels (~14 t)
adjectives {{bbl to t|100|adj=on}}gives100-barrel (~14 t)
rates: {{bbl to t|100|per=d}}gives100 barrels per day (~14 t/d)
rates with different time units: {{bbl to t|100|per=d|t_per=a}}gives100 barrels per day (~5,000 t/a)
ranges: {{bbl to t|100|to|200}}gives100 to 200 barrels (~14 to ~27 t)
large numbers of barrels: {{bbl to t|100|mlt=M}}gives100 million barrels (~1.4×10^7 t)

See talk for more examples.

Parameters

Italicized parameters are optional:

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 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.

See also


Personal tools
Namespaces
Variants
Actions
Navigation
games
Toolbox