I found the template display unsatisfactory for {{bbl to t | 126493936 | precision= -5|}}
While it looked okay the first and third time I previewed it here, the second time the preview looked like it did on the page where it was used it displayed as
Let's see what happens when I save it. Don't know if anything can be done about that. Gene Nygaard 15:49, 16 October 2007 (UTC)
precision
parameter any more (I commented this out in the above).
J
ɪ
m
p 09:18, 6 March 2008 (UTC)
bbl to t|126493936|3
}} gives "126,493,936 barrels (~1.73×10 7 t)".
Ї
Ѧ
ρ 02:03, 7 April 2008 (UTC)It also imposes spelling that might violate Wikipedia:Manual of Style#National varieties of English in "full notation" by imposing a spelling of "tonnes" rather than "metric tons". (And it probably doesn't account for numbers which should be expressed in singular form in full notation, either, does it). Gene Nygaard 15:56, 16 October 2007 (UTC)
abbr
would control the barrel display only andI've added/changed the following features:
adj=on
will make barrel singular & insert hyphens.per
can be used to produce a rate as opposed to a straight quantity. The abbreviations "h", "d" and "a" are spelt out as "hour", "day" and "annum". With lk=on
annum links to
Annum (day and hour do not currently link since these are such every-day words ... though abbreviations always link).
J
ɪ
m
p 00:37, 7 March 2008 (UTC) To use a different time unit for tonnes, use t_per
J
Ї
Ѧ
ρ 04:17, 7 April 2008 (UTC)
Ї
Ѧ
ρ 04:16, 7 April 2008 (UTC)
Ї
Ѧ
ρ 01:54, 7 April 2008 (UTC)mlt
to the appropriate SI prefix. The conversion to tonnes is given in scientific notation for 100,000 and above.
J
Ї
Ѧ
ρ 04:12, 7 April 2008 (UTC)ranges rounded to three significant figures | ||
{{bbl to t|100|to|200|3 }} |
gives | 100 to 200 barrels (~13.6 to ~27.3 t) |
rate ranges | ||
{{bbl to t|100|and|200|per=a }} |
gives | 100 and 200 barrels per annum (~14 and ~27 t/a) |
range adjectives | ||
{{bbl to t|100|to|200|adj=on }} |
gives | 100-to−200-barrel (~14 to ~27 t) |
rate adjectives | ||
{{bbl to t|100|per=h|adj=on }} |
gives | 100-barrel-per-hour (~14 t/h) |
rate range adjectives | ||
{{bbl to t|100|or|200|per=a|adj=on }} |
gives | 100-or−200-barrel-per-annum (~14 or ~27 t/a) |
linked ranges | ||
{{bbl to t|100|and|200|lk=on }} |
gives | 100 and 200 barrels (~14 and ~27 t) |
linked rates | ||
{{bbl to t|100|per=h|lk=on }} |
gives | 100 barrels per hour (~14 t/h) |
linked rate ranges | ||
{{bbl to t|100|to|200|per=a|lk=on }} |
gives | 100 to 200 barrels per annum (~14 to ~27 t/a) |
linked abbreviated rate ranges | ||
{{bbl to t|100|to|200|per=a|lk=on|abbr=on }} |
gives | 100 to 200 bbl/ a (~14 to ~27 t/a) |
linked abbreviated rate ranges rounded to three significant figures | ||
{{bbl to t|100|to|200|3|per=d|lk=on|abbr=on }} |
gives | 100 to 200 bbl/ d (~13.6 to ~27.3 t/d) |
linked abbreviated rate ranges with specified density | ||
{{bbl to t|100|to|200|per=h|lk=on|abbr=on|API=22 }} |
gives | 100 to 200 bbl/ h (~15 to ~29 t/h) |
linked adjectives | ||
{{bbl to t|100|adj=on|lk=on }} |
gives | 100- barrel (~14 t) |
linked adjectives with specified density | ||
{{bbl to t|100|adj=on|lk=on|API=22 }} |
gives | 100- barrel (~15 t) |
linked range adjectives | ||
{{bbl to t|100|to|200|adj=on|lk=on }} |
gives | 100-to−200- barrel (~14 to ~27 t) |
linked rate adjectives | ||
{{bbl to t|100|per=h|adj=on|lk=on }} |
gives | 100- barrel-per-day (~14 t/d) |
rate range adjectives | ||
{{bbl to t|100|to|200|per=d|adj=on }} |
gives | 100-to−200-barrel-per-day (~14 to ~27 t/d) |
linked rate range adjectives | ||
{{bbl to t|100|to|200|per=a|adj=on|lk=on }} |
gives | 100-to−200- barrel-per- annum (~14 to ~27 t/a) |
linked abbreviated rate ranges with specified density rounded to three significant figures | ||
{{bbl to t|100|to|200|3|per=a|lk=on|abbr=on|API=22 }}
| ||
gives | 100 to 200 bbl/ a (~14.7 to ~29.3 t/a) |
I am trying to use this template to represent the capacity of refineries in India. The output produced is difficult to read (and apparently irritating to certain people) because of the use of scientific notation for numbers larger than 100,000. Could this template be enhanced to produce an output using SI prefixes for numbers up to 100,000,000? This is important as most refineries have a capacity that exceeds 100,000 t/a. As an example:
This would be an enhancement along the lines outlined in the parameter to control the tonne display, as outlined in the previous section Template talk:Bbl to t#National varieties of English.
Albeit not essential, it would be even better if one could (as previously suggested) specify the text of the unit name, so that I could get MMTPA instead of Mt/a for my example. This is because the Indian government has chosen MMTPA as their standard unit of measure. My Gussie ( talk) 22:55, 10 December 2018 (UTC)
With the recent move of the Template:Rnd to Template:Round the bbl to t conversion no longer works. Please adjust. Thanks. Crook1 ( talk) 16:17, 22 April 2019 (UTC)