This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
In Twenty-foot equivalent unit I had to resort to "...between 4 feet 3 inches (1.30 m) and 9 feet 6 inches (2.90 m)" because {{convert|4|3|and|9|ft|6|in|m}} --> "Expression error: Unexpected and operator 9 Expression error: Unrecognised word "ft" Template loop detected: Template:Convert... " would not work, nor would {{convert|4|ft|3|in|and|9|ft|6|in|m}} --> 4 feet 3 inches ( convert: unknown unit) *. Peter Horn User talk 16:51, 30 December 2011 (UTC)
{{
convert|4|ft|3|in}}
and {{
convert|9|ft|6|in|m}}
" --> "...between 4 feet 3 inches (1.30 m) and 9 feet 6 inches (2.90 m)" then, as I have already done, is "the cat's meouw".
Peter Horn
User talk
18:54, 30 December 2011 (UTC)Something that would be very useful for aviation articles would be to add Flight Level. This is an inherently approximate measure for altitude used in aviation. Conversion to feet is done by multiplying by 100, therefore, Flight Level 100 (FL100) means an elevation of 10,000 ft. Technically, it means the air pressure normally seen at 10,000 ft, so this measure has a conversion to both length and pressure. Thanks, D O N D E groovily Talk to me 13:39, 16 December 2011 (UTC)
This doesn't work:
It should produce
But instead produces:
-- Green Cardamom ( talk) 00:34, 4 January 2012 (UTC)
{{convert|9|km|adj=on}}-long
9-kilometre (5.6 mi)-long? (Assuming it's an attributive adjective, as in a 9-kilometre (5.6 mi)-long bridge; if it's predicative, just use the bridge is 9 kilometres (5.6 mi) long.)
― A. di M.
00:43, 4 January 2012 (UTC)
A little cumbersome but {{convert|9|km|mi|adj=on|disp=x| long (|)
}} would also work.
JIMp
talk·
cont
15:50, 5 January 2012 (UTC)
When the conversion of a range results in the same two numbers (to the specified precision) it would be nice if only one was output. Example: {{convert|5|–|6|mm|in|abbr=on|1}}
gives 5–6 mm (0.2–0.2 in), rather than 5–6 mm (0.2 in).
Peter coxhead (
talk)
11:01, 11 December 2011 (UTC)
5–{{convert|6|mm|1|abbr=on}}
gives "5–6 mm (0.2 in)". It's basically ignoring the "5" and converting only the "6". If you're doing that, though, I recommend putting a hidden note expalining that it's intentional: I see this type of thing often when it should be a range (& duely fix it, as others might).
JIMp
talk·
cont
09:01, 14 December 2011 (UTC)Hand-coding for unusual cases: Where both ends of a range round to the same value, the easiest solution is to hand-code the conversion as just the 1st amount followed by conversion of the 2nd amount:
Although the uses will be fairly limited, the new Template:Convert/mix2 allows a conversion to have 2 amounts of different units. The documentation is shown below:
{{ Convert/mix2/doc}}
This Template:Convert/mix2 is called the "mixed converter" as a unique name for future reference. It is intended to handle cases where small & large units are mixed in a range, or for any apples-and-oranges mix, such as height and weight. Because it uses a wrapper-template design, Template:Convert/mix2 will NOT affect the way any other conversions have been handled. It has the same nesting levels, within the MediaWiki preprocessor expansion-depth limit, as with Template:Convert/2. - Wikid77 07:43, 11 January 2012 (UTC)
Currently, on Wikimedia Commons (where the free photos are stored with multiple languages), there is a limited version of {{Convert}}, with some features as here on English Wikipedia. I recently ported {{ Convert/2}} to allow unit-ranges on Commons, but trying to port all the features of Convert would be difficult to maintain over there, plus the need to provide conversions in other languages. I cannot find any "non-hideous method" to implement Convert for each of the 280+ Wikipedia languages. Hence, for now, I am recommending people focus on conversions in the English descriptions of images. After several months, I think we could support a few languages (such as Spanish "metro" for "meter") for just the most basic conversions, but otherwise, as always, when the format (or the other language) is obscure, then hand-code the conversions on Wikimedia Commons.
Commons wikilinks need t=:en: prefix: Meanwhile, to wikilink conversions in image descriptions, the Wikimedia unit-subtemplates have been changed to use the ":en:" prefix, such as commons:Template:Convert/km having "t=:en:Kilometre" to link back to English WP article "Kilometre". Again, for rare conversions, run the numbers here on enwiki, or on some other-language Wikipedia, and just hard-code the numbers on Commons, until Convert can be expanded over there.
Converting for other major languages: In the future, I am thinking to create a few multi-language, simple big-switch convert templates on Commons, such as for m/ft, kg/lb, g/oz, km/mi, or cm/in:
There might be significant use in those languages to support the effort for various other-language Convert/xx templates. However, I am not sure how much effort would be needed to switch the decimal-point (105.6) to decimal-comma (105,6) in other-language numbers. The whole situation might be better by just hand-translating the unit-names from the English-description conversion and hand-fixing the decimal-comma, in the relatively few cases where needed. There might be no easy ways to auto-translate the unit names in image descriptions, depending on right-to-left word order in Arabic or other languages. For those reasons, the commons:Template:Convert is currently stuck as an English-only conversion module. - Wikid77 ( talk) 07:40, 27 December 2011 (UTC)
I'm working on a couple of articles about reservoirs, and acre-feet is the standard unit of measurement; however, many people in the US don't know what this is, but are aware of US gallons. But there doesn't seem to be a way to convert acre feet to gallons because both are imperial units. How can I convert acre feet to gallons?
Second, how do I make the template say "the valley is a 2,400 square mile (6,200 square kilometer) desert region" instead of pluralising it to "the Valley is a 2,400 square miles (6,200 square kilometers)? Thanks, Matthewedwards : Chat 04:34, 14 January 2012 (UTC)
{{convert|3500|acre ft|e9USgal|abbr=off|sigfig=3}}
to produce 3,500 acre-feet (1.14 billion US gallons) and{{convert|3500|acre ft|hm3|abbr=off}}
to produce 3,500 acre-feet (4.3 cubic hectometres)but when I try to do
{{convert|3500|acre ft|e9USgal hm3|sigfig=3|abbr=off}}
I get a broken template with a bunch of red text. Do you have any suggestions where I can go from here? Is it okay not to use the template?
Matthewedwards :
Chat
22:15, 14 January 2012 (UTC)Is there a way for convert to only display output parameters? (ie. 3 centimetres (1.2 in) only shows inches) 76.65.128.132 ( talk) 04:13, 17 January 2012 (UTC)
convert|3|cm|in|disp=output only
}}.
JIMp
talk·
cont
05:31, 17 January 2012 (UTC)Would it be possible to add the unit ft/m? It is used for the vertical speed of aircraft. Thanks! Falconus p t c 15:27, 27 January 2012 (UTC)
Can someone figure out why this caused a big red error message in Kurmangazy oil field. 198.102.153.2 ( talk) 21:02, 31 January 2012 (UTC)
This page is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
In Twenty-foot equivalent unit I had to resort to "...between 4 feet 3 inches (1.30 m) and 9 feet 6 inches (2.90 m)" because {{convert|4|3|and|9|ft|6|in|m}} --> "Expression error: Unexpected and operator 9 Expression error: Unrecognised word "ft" Template loop detected: Template:Convert... " would not work, nor would {{convert|4|ft|3|in|and|9|ft|6|in|m}} --> 4 feet 3 inches ( convert: unknown unit) *. Peter Horn User talk 16:51, 30 December 2011 (UTC)
{{
convert|4|ft|3|in}}
and {{
convert|9|ft|6|in|m}}
" --> "...between 4 feet 3 inches (1.30 m) and 9 feet 6 inches (2.90 m)" then, as I have already done, is "the cat's meouw".
Peter Horn
User talk
18:54, 30 December 2011 (UTC)Something that would be very useful for aviation articles would be to add Flight Level. This is an inherently approximate measure for altitude used in aviation. Conversion to feet is done by multiplying by 100, therefore, Flight Level 100 (FL100) means an elevation of 10,000 ft. Technically, it means the air pressure normally seen at 10,000 ft, so this measure has a conversion to both length and pressure. Thanks, D O N D E groovily Talk to me 13:39, 16 December 2011 (UTC)
This doesn't work:
It should produce
But instead produces:
-- Green Cardamom ( talk) 00:34, 4 January 2012 (UTC)
{{convert|9|km|adj=on}}-long
9-kilometre (5.6 mi)-long? (Assuming it's an attributive adjective, as in a 9-kilometre (5.6 mi)-long bridge; if it's predicative, just use the bridge is 9 kilometres (5.6 mi) long.)
― A. di M.
00:43, 4 January 2012 (UTC)
A little cumbersome but {{convert|9|km|mi|adj=on|disp=x| long (|)
}} would also work.
JIMp
talk·
cont
15:50, 5 January 2012 (UTC)
When the conversion of a range results in the same two numbers (to the specified precision) it would be nice if only one was output. Example: {{convert|5|–|6|mm|in|abbr=on|1}}
gives 5–6 mm (0.2–0.2 in), rather than 5–6 mm (0.2 in).
Peter coxhead (
talk)
11:01, 11 December 2011 (UTC)
5–{{convert|6|mm|1|abbr=on}}
gives "5–6 mm (0.2 in)". It's basically ignoring the "5" and converting only the "6". If you're doing that, though, I recommend putting a hidden note expalining that it's intentional: I see this type of thing often when it should be a range (& duely fix it, as others might).
JIMp
talk·
cont
09:01, 14 December 2011 (UTC)Hand-coding for unusual cases: Where both ends of a range round to the same value, the easiest solution is to hand-code the conversion as just the 1st amount followed by conversion of the 2nd amount:
Although the uses will be fairly limited, the new Template:Convert/mix2 allows a conversion to have 2 amounts of different units. The documentation is shown below:
{{ Convert/mix2/doc}}
This Template:Convert/mix2 is called the "mixed converter" as a unique name for future reference. It is intended to handle cases where small & large units are mixed in a range, or for any apples-and-oranges mix, such as height and weight. Because it uses a wrapper-template design, Template:Convert/mix2 will NOT affect the way any other conversions have been handled. It has the same nesting levels, within the MediaWiki preprocessor expansion-depth limit, as with Template:Convert/2. - Wikid77 07:43, 11 January 2012 (UTC)
Currently, on Wikimedia Commons (where the free photos are stored with multiple languages), there is a limited version of {{Convert}}, with some features as here on English Wikipedia. I recently ported {{ Convert/2}} to allow unit-ranges on Commons, but trying to port all the features of Convert would be difficult to maintain over there, plus the need to provide conversions in other languages. I cannot find any "non-hideous method" to implement Convert for each of the 280+ Wikipedia languages. Hence, for now, I am recommending people focus on conversions in the English descriptions of images. After several months, I think we could support a few languages (such as Spanish "metro" for "meter") for just the most basic conversions, but otherwise, as always, when the format (or the other language) is obscure, then hand-code the conversions on Wikimedia Commons.
Commons wikilinks need t=:en: prefix: Meanwhile, to wikilink conversions in image descriptions, the Wikimedia unit-subtemplates have been changed to use the ":en:" prefix, such as commons:Template:Convert/km having "t=:en:Kilometre" to link back to English WP article "Kilometre". Again, for rare conversions, run the numbers here on enwiki, or on some other-language Wikipedia, and just hard-code the numbers on Commons, until Convert can be expanded over there.
Converting for other major languages: In the future, I am thinking to create a few multi-language, simple big-switch convert templates on Commons, such as for m/ft, kg/lb, g/oz, km/mi, or cm/in:
There might be significant use in those languages to support the effort for various other-language Convert/xx templates. However, I am not sure how much effort would be needed to switch the decimal-point (105.6) to decimal-comma (105,6) in other-language numbers. The whole situation might be better by just hand-translating the unit-names from the English-description conversion and hand-fixing the decimal-comma, in the relatively few cases where needed. There might be no easy ways to auto-translate the unit names in image descriptions, depending on right-to-left word order in Arabic or other languages. For those reasons, the commons:Template:Convert is currently stuck as an English-only conversion module. - Wikid77 ( talk) 07:40, 27 December 2011 (UTC)
I'm working on a couple of articles about reservoirs, and acre-feet is the standard unit of measurement; however, many people in the US don't know what this is, but are aware of US gallons. But there doesn't seem to be a way to convert acre feet to gallons because both are imperial units. How can I convert acre feet to gallons?
Second, how do I make the template say "the valley is a 2,400 square mile (6,200 square kilometer) desert region" instead of pluralising it to "the Valley is a 2,400 square miles (6,200 square kilometers)? Thanks, Matthewedwards : Chat 04:34, 14 January 2012 (UTC)
{{convert|3500|acre ft|e9USgal|abbr=off|sigfig=3}}
to produce 3,500 acre-feet (1.14 billion US gallons) and{{convert|3500|acre ft|hm3|abbr=off}}
to produce 3,500 acre-feet (4.3 cubic hectometres)but when I try to do
{{convert|3500|acre ft|e9USgal hm3|sigfig=3|abbr=off}}
I get a broken template with a bunch of red text. Do you have any suggestions where I can go from here? Is it okay not to use the template?
Matthewedwards :
Chat
22:15, 14 January 2012 (UTC)Is there a way for convert to only display output parameters? (ie. 3 centimetres (1.2 in) only shows inches) 76.65.128.132 ( talk) 04:13, 17 January 2012 (UTC)
convert|3|cm|in|disp=output only
}}.
JIMp
talk·
cont
05:31, 17 January 2012 (UTC)Would it be possible to add the unit ft/m? It is used for the vertical speed of aircraft. Thanks! Falconus p t c 15:27, 27 January 2012 (UTC)
Can someone figure out why this caused a big red error message in Kurmangazy oil field. 198.102.153.2 ( talk) 21:02, 31 January 2012 (UTC)