Template talk:Convert/Technical/Archive 2010
Fraction subtemplates
[edit]Convert/and/fra1
[edit]Edit request
[edit]{{editprotected}}
Currently this only supports fractions down to eights, whereas measurements in inches down to /16 and /32 are common. This change converts it to use {{frac}}, and expands the range of values. This is needed, since the alternative is either the ugly red message or inappropriate rounding decisions. Change the values in the switch section to:
|3=1⁄32 |6=1⁄16 |9=3⁄32 |12=1⁄8 |15=5⁄32 |18=3⁄16 |21=7⁄32 |24=1⁄4 |27=9⁄32 |30=5⁄16 |32=1⁄3 |33=11⁄32 |36=3⁄8 |39=13⁄32 |42=7⁄16 |45=15⁄32 |48=1⁄2 |51=17⁄32 |54=9⁄16 |57=19⁄32 |60=5⁄8 |63=21⁄32 |64=2⁄3 |66=11⁄16 |69=23⁄32 |72=3⁄4 |75=25⁄32 |78=13⁄16 |81=27⁄32 |84=7⁄8 |87=29⁄32 |90=15⁄16 |93=31⁄32
81.111.114.131 (talk) 19:22, 27 March 2010 (UTC)
- Sounds like a reasonable idea. Has this been discussed anywhere? — Martin (MSGJ · talk) 08:48, 28 March 2010 (UTC)
- Interesting. how common is this problem ? —TheDJ (talk • contribs) 12:02, 28 March 2010 (UTC)
- I see a proposal has been posted on Template talk:Convert. Let's wait and see if it gains support. But it sounds like a good idea to me. — Martin (MSGJ · talk) 17:47, 28 March 2010 (UTC)
- The biggest problem here is where is this used? Only in two-part input units, such as feet and inches? Is this where the change would need to be made? I'll explain further in the Template talk:Convert#Fractions discussion. Gene Nygaard (talk) 16:22, 31 March 2010 (UTC)
- I see a proposal has been posted on Template talk:Convert. Let's wait and see if it gains support. But it sounds like a good idea to me. — Martin (MSGJ · talk) 17:47, 28 March 2010 (UTC)
- Interesting. how common is this problem ? —TheDJ (talk • contribs) 12:02, 28 March 2010 (UTC)
Convert/and/frn2
[edit]Hi, in my opinion it can be like this
{{formatnum:{{{1}}}}} {{formatnum:{{{3}}}}}<noinclude>{{pp-template|small=yes}}[[Category:Subtemplates of Template Convert]]</noinclude> Reza1615 (talk) 17:00, 26 January 2011 (UTC)reza1615
Two-part values
[edit]Convert/and/chain
[edit]Talk-page for Template:Convert/and/chain.
Created
[edit]The numeric converter Template:Convert/and/chain was developed by the long-term user Jimp on 5 February 2008, to show the miles-and-chains units in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 14:12, 4 February 2010
Needs Convert/{d}2, parentheses for fractions & u=ch
[edit]{{editprotected}}
04-Feb-09: The template must use {Convert/{{{d}}}2|...} to eventually allow deleting all redundant Convert subtemplates ending as "*Na2" ("na" indicates non-abbreviated, 2-units). Some subtemplates named *Na2 are missing, and should NOT be created. Also, parentheses are needed around {1} before the multiplication with *80, so that parameter1 can allow a fraction expression. Also, the unit symbols must be set by listing the parameters: U=mi and u=ch.
Lines 1-5 of the template should be the following 5 lines:
{{convert/{{{d}}}2|{{{1}}}|{{{3}}}|(( {{{1}}} )*80+{{{3}}})*20.1168|{{#ifeq:{{#expr:{{{5}}}*0}}|0|0|{{#if:{{{5|}}}|1|0}}}}|{{{5|}}}|{{{6|}}}|s={{{s|}}}|r={{{r}}}
|N=mile
|n=chain
|U=mi
|u=ch
- A proposed version of the code is stored in Template:Convert/and/chain/sandbox.
The edit-summary could be:
- fixed for fractions, bypassed *Na2 subtemplates, allowed unit symbols mi/ch.
When working properly, the current results, below, should be similar to the expected:
- Expected: {{Convert|4+1/2|mi|0|chain|km}} gives: 4½ miles 0 chains (7 km)
- Currently: {{Convert|4+1/2|mi|0|chain|km}} gives: 4+1⁄2 miles 0 chains (7.2 km)
- Expected: {{Convert|4|mi|3|chain|km}} gives: 4 miles 3 chains (6.5 km)
- Currently: {{Convert|4|mi|3|chain|km}} gives: 4 miles 3 chains (6.5 km)
- Expected: {{Convert|4|mi|3|chain|km|abbr=in}} gives: 4 mi 3 ch (6.5 km)
- Currently: {{Convert|4|mi|3|chain|km|abbr=in}} gives: 4 mi 3 chains (6.5 kilometres)
- Expected: {{Convert|4|mi|3|chain|km|abbr=none}} gives: 4 miles 3 chains (6.5 kilometres)
- Currently: {{Convert|4|mi|3|chain|km|abbr=none}} gives: 4 miles 3 chains (6.5 kilometres)
- Expected: {{Convert|7|mi|1|chain|km|disp=comma}} gives: 7 miles 1 chain, 11.3 km
- Currently: {{Convert|7|mi|1|chain|km|disp=comma}} gives: 7 miles 1 chain, 11.3 km
- Expected: {{Convert|23+7/8|mi|0|chain|km}} gives: 237/8 miles 0 chains (38.42 km)
- Currently: {{Convert|23+7/8|mi|0|chain|km}} gives: 23+7⁄8 miles 0 chains (38.4 km)
For each amount, the values of Expected & Currently should be similar. The correct calculation requires parentheses "( )" be used around parameter {1} when multiplying *80 to handle any fraction in the miles number, such as in "23+7/8" miles being 38.4 not 1.9 km. -Wikid77 14:12, 4 February 2010
- Done, let me know if there are any problems. — Martin (MSGJ · talk) 17:21, 4 February 2010 (UTC)
Rounding for temperature
[edit]Template:Convert/sroundT1
[edit]Talk-page for Template:Convert/sroundT1.
Created
[edit]The rounding routine Template:Convert/sroundT1 was developed by the long-term user Jimp on 24 October 2007, to determine rounding of negative amounts by significant-digit counts (such as -26.547 rounded to -26.55 when 4 significant digits), as used by the standard Template:Convert for temperature conversions. -Wikid77 17:01, 14 February 2010
Magnitude depends on parameter 5
[edit]{{editprotected}}
- IMPACT: The change below affects just 10 articles using Template:Convert for negative temperatures with sigfig=n, so it will trigger reformatting only those 10 articles. -Wikid77
14-Feb-09: The template must use parameter 5, {{{5}}}, for the order-of-magnitude calculation using {{ordomag}}, so that the rounding depends on the magnitude of {5}, not {2}; the proper coding should use parameter 5 with ordomag, as: {{ordomag|( {{{5}}} )}}.
Line 1 of the template should be the following text:
−{{formatnum:{{rnd|-{{{5}}}|({{{4}}}-{{ordomag|( {{{5}}} )}}-1)}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert/sroundT1|1|2|4|4|-26.456}} gives: –26.46
- Currently: {{Convert/sroundT1|1|9|4|4|-26.456}} gives: User:Wikid77/Template:Convert/sroundT1
- Expected: {{Convert/sroundT1|1|27|4|4|-27.456}} gives: –27.46
- Currently: {{Convert/sroundT1|1|27|4|4|-27.456}} gives: User:Wikid77/Template:Convert/sroundT1
- Expected: {{Convert/sroundT1|1|0.7|5|5|-10.1234}} gives: –10.123
- Currently: {{Convert/sroundT1|1|0.7|5|5|-10.1234}} gives: User:Wikid77/Template:Convert/sroundT1
- Expected: For {{Convert|0.67|F|C|sigfig=5}} gives: 0.67 °F (–17.406 °C)
- Currently: For {{Convert|0.67|F|C|sigfig=5}} gives: 0.67 °F (−17.406 °C)
- Expected: For {{Convert|-15|F|C|sigfig=5}} gives: –15 °F (–26.111 °C)
- Currently: For {{Convert|-15|F|C|sigfig=5}} gives: −15 °F (−26.111 °C)
For each case, the amounts of Expected & Currently should match: with the same result for the same parameters. The correct calculation requires parameter 5 be used in {ordomag} for the order-of-magnitude calculation. -Wikid77 (talk) 17:01, 14 February 2010 (UTC)
- Done —TheDJ (talk • contribs) 23:51, 14 February 2010 (UTC)
Convert/sroundT0
[edit]Talk-page for Template:Convert/sroundT0.
Created
[edit]The rounding routine Template:Convert/sroundT0 was developed by the long-term user Jimp on 24 October 2007, to determine rounding of positive amounts by significant-digit counts (such as 26.547 rounded to 26.55 when 4 significant digits), as used by the standard Template:Convert for temperature conversions. -Wikid77 18:48, 14 February 2010
Magnitude depends on parameter 5
[edit]{{editprotected}}
- IMPACT: The change below affects just 58 articles using Template:Convert for positive temperatures with sigfig=n, so it will trigger reformatting only those 58 articles.
See related change: Template talk:Convert/sroundT1. -Wikid77
- IMPACT: The change below affects just 58 articles using Template:Convert for positive temperatures with sigfig=n, so it will trigger reformatting only those 58 articles.
14-Feb-09: The template must use parameter 5, {{{5}}}, for the order-of-magnitude calculation using {{ordomag}}, so that the rounding depends on the magnitude of {5}, not {2}; the proper coding should use parameter 5 with ordomag, as: {{ordomag|( {{{5}}} )}}.
Line 1 of the template should be the following text:
{{formatnum:{{rnd|{{{5}}}|({{{4}}}-{{ordomag|( {{{5}}} )}}-1)}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert/sroundT0|1|2|4|4|26.456}} gives: 26.46
- Currently: {{Convert/sroundT0|1|9|4|4|26.456}} gives: User:Wikid77/Template:Convert/sroundT0
- Expected: {{Convert/sroundT0|1|27|4|4|27.456}} gives: 27.46
- Currently: {{Convert/sroundT0|1|27|4|4|27.456}} gives: User:Wikid77/Template:Convert/sroundT0
- Expected: {{Convert/sroundT0|1|9|5|5|40.1234}} gives: 40.123
- Currently: {{Convert/sroundT0|1|9|5|5|40.1234}} gives: User:Wikid77/Template:Convert/sroundT0
- Expected: For {{Convert|40.67|F|C|sigfig=5}} gives: 40.67 °F (4.8167 °C)
- Currently: For {{Convert|40.67|F|C|sigfig=5}} gives: 40.67 °F (4.8167 °C)
- Expected: For {{Convert|65|F|C|sigfig=5}} gives: 65 °F (18.333 °C)
- Currently: For {{Convert|65|F|C|sigfig=5}} gives: 65 °F (18.333 °C)
For each case, the amounts of Expected & Currently should match: with the same result for the same parameters. The correct calculation requires parameter 5 be used in {ordomag} for the order-of-magnitude calculation. -Wikid77 (talk) 18:48, 14 February 2010 (UTC)
- Done —TheDJ (talk • contribs) 23:50, 14 February 2010 (UTC)
Density
[edit]- Discussion at: Template_talk:Convert/density.
The standard measurement-converter Template:Convert, on the English Wikipedia, has several subtemplates to handle density conversions, such as for grams per cubic centimeter or pounds per cubic inch. Many of the subtemplates for density units are still being created, as discussed on the talk-page here.
Some of the density conversions are:
|
|
|
|
Some examples of density conversions are:
- {{convert|1|g/cm3|lb/cuin|8}} gives: 1 gram per cubic centimetre (0.03612729 lb/cu in)
- {{convert|5|g/cm3|lb/cuin}} gives: 5 grams per cubic centimetre (0.18 lb/cu in)
- {{convert|1|kg/L|lb/cuft|8}} gives: 1 kilogram per litre (62.42796058 lb/cu ft)
- {{convert|1|kg/m3|lb/cuft|8}} gives: 1 kilogram per cubic metre (0.06242796 lb/cu ft)
- {{convert|1|kg/m3|lb/cuyd}} gives: 1 kilogram per cubic metre (1.7 lb/cu yd)
- {{convert|36|kg/m3|lb/cuyd}} gives: 36 kilograms per cubic metre (61 lb/cu yd)
- {{convert|4|kg/L|lb/cuft}} gives: 4 kilograms per litre (250 lb/cu ft)
Also look for discussions about density in the main talk-page, Template_talk:Convert.
This is the talk-page for density: Template:Convert/density.
Purpose
[edit]The subtemplate Template:Convert/density was created by long-term user Wikid77 on 23 February 2010, to focus issues about density conversions, as a separate discussion. Because the main talk-page for {{Convert}} covers so many topics, extensive details about any major topic tend to get scattered and eclipsed by all the other topics which clutter that main talk-page. By having a separate subpage as {{Convert/density}}, those issues can be condensed, as an overview there, and then discussed with that dedicated focus. -Wikid77 (talk) 12:03, 24 February 2010 (UTC)
Basic conversions needed
[edit]The following issues were raised by User:Gene_Nygaard in February 2010, as recommendations for the most-commonly used:
- The most commonly used density units, by far, on Wikipedia aren't the one you have (kg/L), but rather the equivalent grams per cubic centimeter (g/cm3).
- kilograms per cubic decimeter (kg/dm3)
- megagrams per cubic meter (Mg/m3)
- grams per milliliter (both g/ml and g/mL symbols, to allow consistency within a Wikipedia article)
- metric tons per cubic meter/tonnes per cubic metre (all of the others have national varieties of English issues to be dealt with too).
For g/cm3, a subtemplate was created as {{Convert/g/cm3}}. The other subtemplates for those units should be implemented as soon as possible, to expand the basic density conversions. A broader discussion can be found, below, under "#Created density units lb/USgal & kg/L". -Wikid77 12:14, 24 February 2010
Created density units lb/USgal & kg/L
[edit]20-Feb-2010: I have completed 2 new subtemplates for density, to handle pounds-per-US-gallon & kilograms-per-litre (kg/L):
- {{convert|5|lb/USgal}} gives: 5 pounds per US gallon (0.60 kg/L)
- {{convert|8.4|lb/USgal}} gives: 8.4 pounds per US gallon (1.01 kg/L)
- {{convert|2|kg/L}} gives: 2 kilograms per litre (17 lb/US gal)
- {{convert|7|kg/L|sp=en}} gives: 7 kilograms per litre (58 lb/US gal)*
- {{convert|8|kg/L|sp=us}} gives: 8 kilograms per liter (67 lb/US gal)
I don't know if those units have been discussed before, or how the imperial gallon should be handled, so I haven't used those conversions in any articles yet. -Wikid77 11:55, 20 February 2010
- Now, after you "fixed" his [Jimp's] orphan, we have this ludicrous nonsense
- 18.355 pounds per US gallon (2.2 kg/m3) [ corrected 23-Feb-10 ]
- 18.355 pounds per US gallon (2,199.4 kg/m3) [ live result ]
- 18.355 pounds per US gallon (2.1994 kg/L)
- That includes a default rounding problem in the first one, of course. We can change the second one to convert one place after the decimal point, too:
- 18.355 pounds per US gallon (2,199.4 kg/m3)
- 18.355 pounds per US gallon (2.2 kg/L)*
- So I guess now 1 m3 = 1 L, in the template:convert universe!
- Why doesn't that surprise me?
- But look what happens when we try to change the first one to have three places after the decimal point:
- Specifying the rounding to three places after the decimal point gives us:
- Now, even though I asked for "kg/m3" in the first one, I still get "kg/L".
- We can, of course, also get
- 1 pound per US gallon (201.97402597402 lb/cu yd)
- 1 pound per cubic yard (0.0049511316872428 lb/US gal)
- Which
- is off by a factor of 1,000; it implies that 0.20197318211872 U.S. gallon is a cubic yard. However, (363 in3/yd3)/(231 in3/USgal)) = 46656/231 USgal/yd3 = 201.97402597402597402597402597403 USgal/yd3
- actually off by a facor of 1000.004178+
- has the problem of a missing space in the output "cu yd"
- is off by a factor of 1,000; it implies that 0.20197318211872 U.S. gallon is a cubic yard. However, (363 in3/yd3)/(231 in3/USgal)) = 46656/231 USgal/yd3 = 201.97402597402597402597402597403 USgal/yd3
- Gene Nygaard (talk) 01:26, 22 February 2010 (UTC)
- The good news is that most of the above problems are simple fixes. You've already fixed Jimp's problem of having the conversion factor for lb/USgal inverted from the correct-but-for-the-decimal-point one you have now. You could, like he did, divide both numerator and denominator by 77×10n to get his numbers (inverted), and could even take it to the logical step of getting it to a division of two integers so that their conversion to binary doesn't introduce errors before the division, but it won't matter—you already have more than twice as much precision as we'll ever need. I could fix the current problems myself, except one I haven't figured out yet. But like I told Huntster, I'm not going to start doing that until I see some evidence of a general commitment to fixing the numerous problems this ugly behemoth has now.
- Now let's get into the bigger issues:
- Look and feel problems
- Contrast {{
convert|5|l|USgal|abbr=on
}}→5 L (1.3 US gal)- with {{
convert|5|kg/l|lb/USgal|abbr=on
}}→5 kg/l (42 lb/US gal)
- with {{
- Contrast {{
convert|5|L|U.S.gal|abbr=on
}}→5 L (1.3 U.S. gal)- with {{
convert|5|kg/L|lb/U.S.gal|abbr=on
}}→5 kg/L (42 lb/U.S. gal)
- with {{
- Contrast {{
convert|5|km2|mi2|abbr=on
}}→5 km2 (1.9 sq mi) - and {{
convert|5|km²|mi2|abbr=on
}}→5 km2 (1.9 sq mi)- with {{
convert|5|km3|mi3|abbr=on
}}→5 km3 (1.2 cu mi) - and {{
convert|5|km³|mi3|abbr=on
}}→5 km3 (1.2 cu mi) - with {{
convert|5|kg/m3|lb/USgal|abbr=on
}}→5 kg/m3 (0.042 lb/US gal) - and {{
convert|5|kg/m³|lb/USgal|abbr=on
}}→5 kg/m3 (0.042 lb/US gal)
- with {{
- Contrast {{
- and all the permutations of the above
- Missing conversions—same size as kilograms per liter
- There are numerous other units which are, in modern definitions (with 1 litre (1,000.00000 cm3) rather than the confusing situation when I first learned these units, back when that wasn't true), the same as kilograms per liter:
- The most commonly used density units, by far, on Wikipedia aren't the one you have (kg/L), but rather the equivalent grams per cubic centimeter (g/cm3).
- kilograms per cubic decimeter (kg/dm3)
- megagrams per cubic meter (Mg/m3)
- grams per milliliter (both g/ml and g/mL symbols, to allow consistency within a Wikipedia article)
- metric tons per cubic meter/tonnes per cubic metre (all of the others have national varieties of English issues to be dealt with too).
- Missing conversions—other metric units
- grams per liter (both g/L and g/l, same size as kg/m3, and like them common for gases)
- grams per cubic meter (g/m3) (most likely to be used with numbers in scientific or engineering notation)
- Missing conversions—English units
- pounds per cubic foot (lb/ft3) (the most common English units in density; the ones we already have in convert, lb/yd3 improperly expressed as "lb/cuyd", are pretty much limited to the construction industry and civil engineering, for things such as density of gravel and aggregate).
- pounds per cubic inch (lb/in3, are used on Wikipedia, common in mechanical engineering for things such as steel)
- slugs per cubic foot (are used on Wikipedia; whether it is common enough to be included in this template is debatable)
- but we don't need their equivalent in gravitational inch-pound force-second system (preferred system for NASA engineers, for example), pound-force seconds squared per inch to the fourth power (1 lbf·s2/in4 = 124 slug/ft3 = 20,376 slug/ft3). Let's get over the notion that just because a conversion can be done, we should include it in this template.
- ounces per cubic inch (oz/in3)
- Others to consider
- your already identified lb/imp gal
- metric tons per oil barrel
- degrees API (°API)
- millions of metric tons per teaspoon (just kidding; we do see strange things like this for density of neutron stars and the like, but don't need to be able to handle them in template:convert)
- perhaps conversions based on the 1901–1964 definition of the liter/litre (but not unless there is a specific showing that this would be useful on Wikipedia; that requires both measurements of density stemming from that time period, and densities measured precisely enough so that a one-part-in-35,000 difference in conversion factors would make a difference in the result)
- ounces per fluid ounce (either U.S. or imperial)
- pounds per Winchester bushel (note that Canada as well as the United States uses bulk density in these units as a quality factor in grading grains such as wheat and barley, even though the Winchester or U.S. bushel is slightly different from the imperial bushel); to open another can of worms, you will also see kilograms per hectolitre in this context.
- Gene Nygaard (talk) 15:05, 22 February 2010 (UTC)
- Okay, thanks for listing all those details. I have reworked the kg/L as 1/1000 of kg/m3, see the subtopic below: #Redid density units lb/USgal & kg/L. -Wikid77 17:39, 23 February 2010
Redid density units lb/USgal & kg/L
[edit]23-Feb-2010: I have reworked some subtemplates for density, corrected by a factor of 1000x, to handle pounds-per-US-gallon & kilograms-per-litre (kg/L):
- {{convert|1000|kg/m3|kg/L}} gives: 1,000 kilograms per cubic metre (1.0 kg/L)
- {{convert|5|lb/USgal}} gives: 5 pounds per US gallon (0.60 kg/L)
- {{convert|8.4|lb/USgal}} gives: 8.4 pounds per US gallon (1.01 kg/L)
- {{convert|2|kg/L}} gives: 2 kilograms per litre (17 lb/US gal)
- {{convert|7|kg/L|sp=en}} gives: 7 kilograms per litre (58 lb/US gal)*
- {{convert|8|kg/L|sp=us}} gives: 8 kilograms per liter (67 lb/US gal)
- where {{convert|1|kg|lb|9}} gives: 1 kilogram (2.204622622 lb)
Converting to other units:
- {{convert|1|kg/L|g/cm3}} gives: 1 kilogram per litre (1.0 g/cm3)
- {{convert|4|kg/L|g/cm3}} gives: 4 kilograms per litre (4.0 g/cm3)
The correction was based on the calculation that all new Convert subtemplates for density should be normalized to 1 kg/m3 (has internal parameter b=1.0), so for kg/L then b=1000.0, and for lb/USgal then b=(453.592370380378 / 3.785411784).
I still haven't created density templates for the imperial gallon, so I haven't used those conversions in any articles yet. I apologize that it takes me 3 days to find time to rework these issues. -Wikid77 17:39, 23 February 2010
- A hint for future reference: all conversions with this template should be normalized so that the quantity expressed in terms of the SI base units has a conversion factor of exactly one. Keep it simple; that's the way we've always done it here. Gene Nygaard (talk) 04:39, 25 February 2010 (UTC)
Updates - new units
[edit]Is there any possibility of Gram per litre, mg/L and μg/dL or mcg/dL? Thanks. Enter CBW, waits for audience applause, not a sausage. 20:05, 15 August 2010 (UTC)
- Here is the status, including those densities:
- {{convert|4|g/cm3}} → 4 grams per cubic centimetre (0.14 lb/cu in)
- {{convert|4|kg/dm3}} → 4 kilograms per cubic decimetre (250 lb/cu ft)
- {{convert|4|Mg/m3}} → 4 megagrams per cubic metre (250 lb/cu ft)
- {{convert|4|g/ml}} → 4 grams per millilitre (0.14 lb/cu in)
- {{convert|4|g/mL}} → 4 grams per millilitre (0.14 lb/cu in)
- {{convert|4|g/L}} → 4 grams per litre (0.00014 lb/cu in)
- {{convert|4|mg/L}} → 4 milligrams per litre (1.4×10−7 lb/cu in)
- {{convert|4|mcg/dL}} → 4 micrograms per decilitre (1.4×10−9 lb/cu in)
- Any missing unit-codes are denoted by red template names. -Wikid77 15:18, 9 February 2011 (UTC)
- Thanks very much. CambridgeBayWeather (talk) 15:35, 9 February 2011 (UTC)
Misplaced request
[edit]Convert/pround
[edit]Edit request from Gmliberi, 7 April 2010
[edit]{{editprotected}}
Hello,
I work in U. S. Steel Tower with United States Steel Corporation as Manager, Public Affairs - Communication Services. I would like to request a simple edit throughout the site regarding the reference of the name of the company which extends to the name of the building - U. S. Steel Tower. In all cases, when referring to United States Steel as U. S. Steel, U. S. Steel should be spelled with a space after each period. That's, U period space S period space Steel. This may seem strange but it is an important part of our corporate identity and is one of the legal ways to refer to the company.
I edited parts of the page that were open for edit but the titles, etc. in the template are locked.
Thank you for considering this request.
Gregg Liberi
Gmliberi (talk) 19:06, 7 April 2010 (UTC)
- I'm not clear why you need this template altered to achieve what you want to do - as far as I can see its only use of the letters "US" is in specifying US units or US spelling in some parameters. More on your talk page. JohnCD (talk) 21:50, 7 April 2010 (UTC)
Display subtemplates
[edit]Convert/LoffAoffDoutput_number_onlySoff
[edit]Talk-page for Template:Convert/LoffAoffDoutput_number_onlySoff.
Created
[edit]The numeric converter Template:Convert/LoffAoffDoutput_number_onlySoff was developed by long-term user Jimp on 19 February 2009, to show the results-only numbers in conversions calculated by the standard Template:Convert. -Wikid77 (talk) 12:35, 2 February 2010 (UTC)
Parentheses are needed to handle fractions
[edit]{{editprotected}}
02-Feb-09: The template must use parentheses around {1} before the multiplication with {b}, so that parameter-1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=Numout}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|m|ft}} gives: 41⁄2 metres (15 ft)
- Currently: {{Convert|4+1/2|m|ft}} gives: 4+1⁄2 metres (15 ft)
- Expected: {{Convert|4+1/2|m|ft|disp=output number only}} gives: 15
- Currently: {{Convert|4+1/2|m|ft|disp=output number only}} gives: 15
- Expected: {{Convert|9+1/4|m|ft|disp=output number only}} gives: 30.3
- Currently: {{Convert|9+1/4|m|ft|disp=output number only}} gives: 30
- Expected: {{Convert|23+7/8|m|ft|disp=output number only}} gives: 78.33
- Currently: {{Convert|23+7/8|m|ft|disp=output number only}} gives: 78
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 (talk) 12:35, 2 February 2010 (UTC)
- Done — Martin (MSGJ · talk) 16:24, 2 February 2010 (UTC)
Convert/LoffAonDoutput_onlySoff
[edit]Talk-page for Template:Convert/LoffAonDoutput_onlySoff.
Created
[edit]The numeric converter Template:Convert/LoffAonDoutput_onlySoff was developed by the long-term user Jimp on 23 February 2009, to show the results-only units in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 12:35, 2 February 2010
Parentheses are needed to handle fractions
[edit]{{editprotected}}
02-Feb-09: The template must use parentheses around {1} before the multiplication with {b}, so that parameter-1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|({{{1}}})*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=valout/LoffAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|m|ft|abbr=on}} gives: 41⁄2 m (15 ft)
- Currently: {{Convert|4+1/2|m|ft|abbr=on}} gives: 4+1⁄2 m (15 ft)
- Expected: {{Convert|4+1/2|m|ft|abbr=on|disp=output only}} gives: 15 ft
- Currently: {{Convert|4+1/2|m|ft|abbr=on|disp=output only}} gives: 15 ft
- Expected: {{Convert|9+1/4|m|ft|abbr=on|disp=output only}} gives: 30.3 ft
- Currently: {{Convert|9+1/4|m|ft|abbr=on|disp=output only}} gives: 30 ft
- Expected: {{Convert|23+7/8|m|ft|abbr=on|disp=output only}} gives: 78.33 ft
- Currently: {{Convert|23+7/8|m|ft|abbr=on|disp=output only}} gives: 78 ft
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 (talk) 13:59, 2 February 2010 (UTC)
- Done — Martin (MSGJ · talk) 16:25, 2 February 2010 (UTC)
Convert/LinAoffDbSoff
[edit]Talk-page for Template:Convert/LinAoffDbSoff.
Created
[edit]The numeric converter Template:Convert/LinAoffDbSoff was developed by the long-term user Jimp on 25 October 2007, to show the in-linked units in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 16:31, 3 February 2010
Needs Convert/and/fra0 & parentheses for fractions
[edit]{{editprotected}}
03-Feb-09: The template must use {Convert/and/fra*} and have parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: {{convert/and/fra{{#expr:2-(0*{{{1|1}}}>0)*(1+({{{1|1}}}<1))}}|{{{1}}}}}, with the calculation as: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/and/fra{{#expr:2-(0*{{{1|1}}}>0)*(1+({{{1|1}}}<1))}}|{{{1}}}}} [[{{{t|{{{n}}}}}}|{{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}}]] ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}})<noinclude>
When working properly, the current results, below, will match the expected:
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} when multiplying *{{{b}}} to handle any fraction in the input number, such as in "23+7/8" metres being 78.33 not 26 ft. -Wikid77 (talk) 16:30, 3 February 2010 (UTC)
- Done, although "currently" doesn't match "expected" exactly. — Martin (MSGJ · talk) 17:24, 3 February 2010 (UTC)
Convert/LoutAoffDbSoff
[edit]Talk-page for Template:Convert/LoutAoffDbSoff.
Created
[edit]The numeric converter Template:Convert/LoutAoffDbSoff was developed by the long-term user Jimp on 25 October 2007, to show the out-linked units in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 10:21, 4 February 2010
Needs Convert/and/fra0 & parentheses for fractions
[edit]{{editprotected}}
04-Feb-09: The template must use {Convert/and/fra*} and have parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: {{convert/and/fra{{#expr:2-(0*{{{1|1}}}>0)*(1+({{{1|1}}}<1))}}|{{{1}}}}}, with the calculation as: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/and/fra{{#expr:2-(0*{{{1|1}}}>0)*(1+({{{1|1}}}<1))}}|{{{1}}}}} {{#ifexpr:{{{1|0.5}}} < 1.0003 and {{{1|0.5}}}>0|{{{n}}}|{{{l|{{{n}}}s}}}}} ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAonSoff}})<noinclude>
When working properly, the current results, below, should be similar to the expected:
For each fraction, the amounts of Expected & Currently should be similar. The correct calculation requires parentheses "( )" be used around parameter {1} when multiplying *{{{b}}} to handle any fraction in the input number, such as in "23+7/8" metres being 78.33 not 26 ft. -Wikid77 10:26, 4 February 2010;
- Done — Martin (MSGJ · talk) 12:11, 4 February 2010 (UTC)
Convert/LoffAonDorSoff
[edit]Talk-page for Template:Convert/LoffAonDorSoff.
Created
[edit]The numeric converter Template:Convert/LoffAonDorSoff was developed by the long-term user MJCdetroit on 13 June 2008, to show the results units separated by "or" in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 04:57, 4 March 2010
Parentheses are needed to handle fractions
[edit]{{editprotected}}
04-March-10: The template must use parentheses around {1} before the multiplication with {b}, so that parameter-1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/numdisp|{{{1|2+1/2}}}}} {{{u}}} or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on}} gives: 41⁄2 in (110 mm)
- Currently: {{Convert|4+1/2|in|mm|abbr=on}} gives: 4+1⁄2 in (110 mm)
- Expected: {{Convert|4+1/2|in|mm|abbr=on|disp=or}} gives: 41⁄2 in or 110 mm
- Currently: {{Convert|4+1/2|in|mm|abbr=on|disp=or}} gives: 4+1⁄2 in or 110 mm
- Expected: {{Convert|9+1/4|in|mm|abbr=on|disp=or}} gives: 91⁄4 in or 230 mm
- Currently: {{Convert|9+1/4|in|mm|abbr=on|disp=or}} gives: 9+1⁄4 in or 230 mm
- Expected: {{Convert|23+7/8|in|mm|abbr=on|disp=or}} gives: 237⁄8 in or 610 mm
- Currently: {{Convert|23+7/8|in|mm|abbr=on|disp=or}} gives: 23+7⁄8 in or 610 mm
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 (talk) 04:58, 4 March 2010 (UTC)
Done— Martin (MSGJ · talk) 16:53, 4 March 2010 (UTC)- I reverted because it caused a parser function error. — Martin (MSGJ · talk) 16:55, 4 March 2010 (UTC)
- Did it cause a real parser error (i.e. anywhere important) or was it just on this page (then use include only)? JIMp talk·cont 20:53, 4 March 2010 (UTC)
- I reverted because it caused a parser function error. — Martin (MSGJ · talk) 16:55, 4 March 2010 (UTC)
- I have inserted defaults to avoid parser errors. Try again. -Wikid77 21:09, 5 March 2010
Failed -
* Expected: 4+1⁄2 in (110 mm) gives: 41⁄2 in (110 mm) * Currently: 4+1⁄2 in (110 mm) gives: 4+1⁄2 in (110 mm)
* Expected: 4+1⁄2 in or 110 mm gives: 41⁄2 in or 110 mm * Currently: 4+1⁄2 in or 110 mm gives: 4+1⁄2 in or 110 mm * Expected: 9+1⁄4 in or 230 mm gives: 91⁄4 in or 235 mm * Currently: 9+1⁄4 in or 230 mm gives: 9+1⁄4 in or 230 mm * Expected: 23+7⁄8 in or 610 mm gives: 237⁄8 in or 606 mm * Currently: 23+7⁄8 in or 610 mm gives: 23+7⁄8 in or 610 mm
reverted back to old version (some fractions have corrupted by copy and paste - lost subscipt and superscript) Ronhjones (Talk) 23:28, 5 March 2010 (UTC)
- {{Frac}} does worse.
- {{
frac|1|3|5
}} → 1+3⁄5 →13⁄5
- {{
- JIMp talk·cont 09:24, 6 March 2010 (UTC)
- I have corrected the expected results. Try again. -Wikid77 10:09, 6 March 2010
- Done — Martin (MSGJ · talk) 11:09, 6 March 2010 (UTC)
Convert/LoffAonDsSoff
[edit]Talk-page for Template:Convert/LoffAonDsSoff.
Created
[edit]The numeric converter Template:Convert/LoffAonDsSoff was developed by the long-term user Jimp on 15 October 2007, to show the results units separated by "/" in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 05:06, 4 March 2010
Parentheses are needed to handle fractions
[edit]{{editprotected}}
04-March-10: The template must use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/numdisp|{{{1|2+1/2}}}}} {{{u}}} / {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on|disp=s}} gives: 41⁄2 in / 110 mm
- Currently: {{Convert|4+1/2|in|mm|abbr=on|disp=s}} gives: 4+1⁄2 in (110 mm)*
- Expected: {{Convert|9+1/4|in|mm|abbr=on|disp=s}} gives: 91⁄4 in / 230 mm
- Currently: {{Convert|9+1/4|in|mm|abbr=on|disp=s}} gives: 9+1⁄4 in (230 mm)*
- Expected: {{Convert|23+7/8|in|mm|abbr=on|disp=s}} gives: 237⁄8 in / 610 mm
- Currently: {{Convert|23+7/8|in|mm|abbr=on|disp=s}} gives: 23+7⁄8 in (610 mm)*
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 (talk) 05:05, 4 March 2010 (UTC)
- Not done: Requested code causes parser function error. — Martin (MSGJ · talk) 19:06, 4 March 2010 (UTC)
- I have inserted defaults to avoid parser errors. Try again. -Wikid77 21:07, 5 March 2010
- Not done Failed again.
* Expected: 4+1⁄2 in (110 mm) gives: 41⁄2 in (110 mm) * Currently: 4+1⁄2 in (110 mm) gives: 4+1⁄2 in (110 mm) * Expected: 4+1⁄2 in (110 mm)* gives: 41⁄2 in / 110 mm * Currently: 4+1⁄2 in (110 mm)* gives: 4+1/2 in/17 mm * Expected: 9+1⁄4 in (230 mm)* gives: 91⁄4 in / 235 mm * Currently: 9+1⁄4 in (230 mm)* gives: 9+1/4 in/15 mm * Expected: 23+7⁄8 in (610 mm)* gives: 237⁄8 in / 606 mm * Currently: 23+7⁄8 in (610 mm)* gives: 23+7/8 in/45 mm
Ronhjones (Talk) 23:45, 5 March 2010 (UTC)
- I have corrected the expected results. Try again. -Wikid77 11:05, 6 March 2010
Not done ...
* Expected: 4+1⁄2 in (110 mm) gives: 41⁄2 in (110 mm) * Currently: 4+1⁄2 in (110 mm) gives: 4+1⁄2 in (110 mm) * Expected: 4+1⁄2 in (110 mm)* gives: 41⁄2 in / 110 mm * Currently: 4+1⁄2 in (110 mm)* gives: 4+1/2 in/17 mm * Expected: 9+1⁄4 in (230 mm)* gives: 91⁄4 in / 230 mm * Currently: 9+1⁄4 in (230 mm)* gives: 9+1/4 in/15 mm * Expected: 23+7⁄8 in (610 mm)* gives: 237⁄8 in / 610 mm * Currently: 23+7⁄8 in (610 mm)* gives: 23+7/8 in/45 mm
Ronhjones (Talk) 21:37, 6 March 2010 (UTC)
- Reset as disp=s. Try again. -Wikid77 08:39, 7 March 2010
Convert/LoutAonDorSoff
[edit]Talk-page for Template:Convert/LoutAonDorSoff.
Created
[edit]The numeric converter Template:Convert/LoutAonDorSoff was developed by the long-term user MJCdetroit on 14 June 2008, to show the results units separated by "or" in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 05:58, 4 March 2010
Parentheses are needed to handle fractions
[edit]{{editprotected}}
04-March-10: The template must use parentheses around {1} before the multiplication with {b}, so that parameter-1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/numdisp|{{{1}}}}} {{{u}}} or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|23+7/8|in|mm|abbr=on|disp=or|lk=out}} gives: 237⁄8 in or 606 mm
- Currently: {{Convert|23+7/8|in|mm|abbr=on|disp=or|lk=out}} gives: 23+7⁄8 in or 610 mm
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 05:58, 4 March 2010 (UTC)
- Not done: The proposed code causes a parser function error. — Martin (MSGJ · talk) 19:07, 4 March 2010 (UTC)
Convert/LinAonDorSoff
[edit]Talk-page for Template:Convert/LinAonDorSoff.
Created
[edit]The numeric converter Template:Convert/LinAonDorSoff was developed by the long-term user MJCdetroit on 14 June 2008, to show the in-linked units separated by "or" in numeric conversions that are calculated by the standard Template:Convert. -Wikid77 06:11, 4 March 2010
Parentheses are needed to handle fractions
[edit]{{editprotected}}
04-March-10: The template must use parentheses around {1} before the multiplication with {b}, so that parameter-1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following text:
{{convert/numdisp|{{{1|2+1/2}}}}} [[{{{t|{{{n}}}}}}|{{{u}}}]] or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 06:30, 4 March 2010
- Done — Martin (MSGJ · talk) 16:57, 4 March 2010 (UTC)
Convert/Dual/LoffAonDbSoffT
[edit]Talk-page for Template:Convert/Dual/LoffAonDbSoffT.
Created
[edit]The temperature-range converter Template:Convert/Dual/LoffAonDbSoffT was developed by the long-term user Jimp on 5 July 2007 and revised 12 August 2008, to show the results for temperature-range conversions that are calculated by the standard Template:Convert. -Wikid77 22:48, 5 March 2010
Redirect to combined subtemplate
[edit]{{editprotected}}
05-March-10: The template page should be changed to a simple redirect to the common, shared subtemplate Template:Convert/Dual/LoffAoffDxSoffT, which handles multiple options for all temperature-range conversions, as a single combined subtemplate; the proper coding should have: #REDIRECT.
Line 1 of the template should be the following text:
#REDIRECT [[Template:Convert/Dual/LoffAoffDxSoffT]]<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|6|to|7|C|F|abbr=on}} gives: 6 to 7 °C (43 to 45 °F)
- Currently: {{Convert|6|to|7|C|F|abbr=on}} gives: 6 to 7 °C (43 to 45 °F)
- Expected: {{Convert|-6|and|3|C|F|abbr=on}} gives: −6 and 3 °C (21 and 37 °F)
- Currently: {{Convert|-6|and|3|C|F|abbr=on}} gives: −6 and 3 °C (21 and 37 °F)
- Expected: {{Convert|4+1/2|to|5+3/4|C|F|abbr=on}} gives: 4+1⁄2 to 5+3⁄4 °C (40.1 to 42.3 °F)
- Currently: {{Convert|4+1/2|to|5+3/4|C|F|abbr=on}} gives: 4+1⁄2 to 5+3⁄4 °C (40.1 to 42.3 °F)
For each case, the amounts of Expected & Currently should match. The old coding inside the subtemplate was never debugged to work correctly, and now it can be handled as a REDIRECT to the combined subtemplate, which handles any option. -Wikid77 22:48, 5 March 2010 (UTC)
Convert/LoffAoffDbSmid
[edit]This is the talk-page for: Template:Convert/LoffAoffDbSmid.
Created
[edit]The mid-text-display routine Template:Convert/LoffAoffDbSmid was created by long-term user Wikid77 on 30 March 2010, to display adjective phrases (or other mid-text) between the input and output units in some conversions handled by Template:Convert -Wikid77 (talk) 11:29, 30 March 2010 (UTC)
Usage
[edit]30-March-2010: In February 2010, we had discussed the issue of inserting mid-text, after the input units, so I have implemented new option "adj=mid" to insert mid-text (parameter 4) between the input and output. The mid-text can be multiple words and can contain hyphens (or spaces):
- {{convert|340|m|ft|adj=mid|-high}} → 340-metre-high (1,120 ft)
- {{convert|340|m|ft|adj=mid|-high cone}} → 340-metre-high cone (1,120 ft)
- {{convert|43|km|mi|adj=mid|-wide}} → 43-kilometre-wide (27 mi)
- {{convert|6|ft|m|adj=mid|-radius circle}} → 6-foot-radius circle (1.8 m)
The output unit must be specified. Sorry this option took so long to add, but template Convert is so complex, it's a mind-fry to connect all these options and predict their impact. Bear in mind that this mid-text insertion will seem like magic to many users, because there is no limit to the text inserted, which could be other conversions inside conversions:
- they climbed a {{convert|3200|ft|m|adj=mid|-high slope up the mountain}}.
→ they climbed a 3,200-foot-high slope up the mountain (980 m). - {{convert|4|royal cubit|m|adj=mid|-square [[Egyptian pyramid]]}}
→ 4-royal-cubit-square Egyptian pyramid (2.1 m) - {{convert|4|royal cubit|m|adj=mid|-square [[Egyptian pyramid]], width {{convert|2|m|ft|disp=output only}} }}
→ 4-royal-cubit-square Egyptian pyramid, width 6.6 ft (2.1 m)
- they climbed a {{convert|3200|ft|m|adj=mid|-high slope up the mountain}}.
Although option "adj=mid" was designed for adjective phrases, it can be used without hyphens, by using unit symbols (abbr=on or abbr=in), so that many conversions can have mid-text inserted. Many idioms flow much better if the converted amount is shown afterward, as an afterthought following the phrase:
- He took a {{convert|2|L|USGAL|adj=mid|bottle}} → He took a 2-litre bottle (0.53 US gal).
- The log is {{convert|7|ft|m|adj=mid|too long|abbr=on}} → The log is 7 ft too long (2.1 m).
Please update any articles affected. -Wikid77 12:58, 30 March 2010 (UTC)
Related subtemplates
[edit]The following are related subtemplates:
To simplify future updates, only some template variations, as expected to be used, have been created. -Wikid77 11:29, 30 March 2010 (revised 31 March 2010)
Convert/LoffAonSoffAnd
[edit]Error
[edit]{{rnd/bExpression error: Unrecognised punctuation character "{"|Expression error: Unrecognised punctuation character "{"|(Expression error: Unexpected < operator)|Expression error: Unexpected < operator }} {{{u}}} Newone (talk) 03:54, 11 June 2010 (UTC)
- That's because you're not feeding it any of it's usual input. JIMp talk·cont 20:00, 11 June 2010 (UTC)
Convert/LonAonDbSon
[edit]Created
[edit]The conversion-subtemplate Template:Convert/LonAonDbSon was created by long-term user Jimp on 15 October 2007 to support output formatting for the standard Template:Convert. This template sets the format for the numbers to show the units wikilinked, abbreviated, and hyphenated for singular-mode display. -Wikid77 (talk) 19:58, 14 October 2009 (UTC)
For hyphen after parameter 1
[edit]{{editprotect}} The first line of the template needs to be changed to put a connecting hyphen ("-") after the first instance of parameter 1 as "{{{1}}}-". The template's name suffix "Son" means "singular is on" to indicate hyphenation will be displayed. Compare to the similar Template:Convert/LonAoffDbSon, which also has a hyphen ("-") after parameter-1 because it also displays for singular-mode "Son". -Wikid77 (talk) 20:09, 14 October 2009 (UTC)
- Done —TheDJ (talk • contribs) 10:40, 15 October 2009 (UTC)
{{editprotect}} Please undo the above edit. Wikid77 is correct in that "Son" means "singular on". What he's missed is that "Aon" means "abbreviation on". Per WP:HYPHEN (which Wikid77 might have had the chance to read) hyphens are not used with abbreviations. JIMp talk·cont 12:18, 15 October 2009 (UTC)
- Done. I agree and have undone, because I'm sure the hyphenated version was creating instances like "30-ha" at University of Surrey#Campus which just looks wrong. Rambo's Revenge (talk) 16:44, 15 October 2009 (UTC)
Convert/LonAonDtablecenSoff
[edit]This is the talk-page for: Template:Convert/LonAonDtablecenSoff.
Created
[edit]The conversion-subtemplate Template:Convert/LonAonDtablecenSoff was created by long-term user MJCdetroit on 12 November 2008 to support output formatting for the standard Template:Convert. This template sets the format for the numbers, as table entries, and shows the units as wikilinked, abbreviated, and not hyphenated but for plural-mode display. -Wikid77 21:51, 15 October 2009
Invokes output-template by d=tAbLe
[edit]{{editprotect}}
The end of the text should use "d=tAbLe" "d=tablecen" in lowercase (not "d=tAbLecen"). Because Wikipedia names are case-sensitive, a name cannot be matched when mixing upper/lowercase letters. See similar Template:Convert/LoffAoffDtablecenSoff for use of the "d=tablecen" option. -Wikid77 (talk) 21:51, 15 October 2009 (UTC)
- Hi
This seems to be intentional though: The creator of this template explicitly changed it in that way, here, and respective pages or redirects exist, for example at Template:Convert/tAbLe. I don't have the insight into the conversion template to know what all of this is supposed to be doing, exactly. Do you know that the usage here is wrong? Should we ask User:MJCdetroit?
Amalthea 09:57, 16 October 2009 (UTC)
- Okay, I see that you have the correct idea: use "d=tAbLe" to also show the unit (not just the number). A similar display is done for "disp=table" (rather than "disp=tablecen") as noted in the documentation:
- From Template:Convert/doc: "attach |disp=table Note: For use in tables the template must start on a new line after a pipe. Only the number will be displayed unless you set |abbr=on, |lk=on, |lk=in or |lk=out."
- Currently, the value "d=tAbLecen" gives a fatal error, so for testing the before-and-after results, use Template:Convert as follows:
- {{Convert|12|m|ft|disp=tablecen|lk=on|abbr=on}}:
style="text-align:center;"|12 m
- {{Convert|12|m|ft|disp=tablecen|lk=on|abbr=on}}:
|style="text-align:center;"|39 ft
- The missing "Template:Convert/tAbLecen" will be handled as "Template:Convert/tAbLe" so the output will end with a number+unit as "39 ft" rather than just 39. The reason this problem has existed is due to Template:Convert having 2,440 subtemplates which no one has time to all fix, as a volunteer effort. -Wikid77 (talk) 16:11, 16 October 2009 (UTC)
- Alright, changed it that way. Thanks & Cheers, Amalthea 18:34, 16 October 2009 (UTC)
Convert/LonAoffSoffAnd
[edit]This is the talk-page for: Template:Convert/LonAoffSoffAnd.
Created
[edit]The conversion-display Template:Convert/LonAoffSoffAnd was created (but never finished) by long-term user Jimp during January 12-15, 2008, as a subtemplate of Template:Convert during the initial 8-month development of Template:Convert. It is used for conversions with output unit "ftin" when lk=on, abbr=none, and adj=off. -Wikid77 09:24, 12 November 2009 (UTC)
Unprotect to fix bugs
[edit]{{editprotect}} 12-Nov-2009: Because the template was never finished and is rarely used (in 2 talk-pages), it should be unprotected to enable editing for bug-fixes. Currently, there are 2 known problems (incorrect plural as "inch" rather than "inches", and no "inch" label when 1 inch is the result):
- Expected: {{convert|1.5|m|ftin|abbr=none|lk=on}} gives: 1.5 metres (4 feet 11 inches)
Currently: {{convert|1.5|m|ftin|abbr=none|lk=on}} gives: 1.5 metres (4 feet 11 inches) ←"inches"
- Expected: {{convert|1.24|m|ftin|abbr=none|lk=on}} gives: 1.24 metres (4 feet 1 inch)
Currently: {{convert|1.24|m|ftin|abbr=none|lk=on}} gives: 1.24 metres (4 feet 1 inch) ←"1 inch"
- Expected: {{convert|0.95|m|ftin|abbr=none|lk=on}} gives: 0.95 metres (3 feet 1 inch)
Currently: {{convert|0.95|m|ftin|abbr=none|lk=on}} gives: 0.95 metres (3 feet 1 inch)
All coding in Template:Convert/valout/LonAoffSoffAnd should be used instead (copied to replace the template contents) to correct those problems, to make the "Expected" & "Currently" the same. There is no hurry on this fix because of the rare usage. -Wikid77 (talk) 09:24, 12 November 2009 (UTC)
- Unprotected. — RockMFR 11:52, 12 November 2009 (UTC)
Convert/LoffAonSoff
[edit]Example:
{{convert/LoffAonSoff|601|601*1|||||s=|r=re|d=LoffAonSoff |u=ft |n=foot |l=feet |t=foot (unit of length) |o=m |b=0.3048 |j=-0.515985037}}
gives
For my change, see Template talk:Convert#Rounding mode.--Patrick (talk) 07:54, 18 November 2010 (UTC)
Updates
[edit]Usage
[edit]To request an update to a protected subtemplate of the measurement-converter Template:Convert, create a new topic below (under new header "===Topic===") and describe the changes needed, plus some test-case examples which show the before-and-after results ("Expected" & "Currently"). Once the topic has been thoroughly proofread for the exact changes needed to a subtemplate, then tag that topic by inserting "{{editprotected}}
" at the start of the topic, so that this talk-page will be listed in the admins' update category.
If there are multiple subtemplates which all need to be changed, then consider defining several level-3 subtopics (as "====Subtopic====") with each title having the 3 equals-signs "====" and describing separate edit-requests. It might be easier to copy some prior update-requests and change the details to create a new edit-request in a usable format.
To check for status, re-read this talk-page to see if an admin had to reject the edit-request due to coding problems. Again, it is possible to list multiple subtemplates for update, below, but also consider listing multiple test-cases so that the admins can check that the update was applied correctly. The admins can then view an edit-preview of each topic below to compare the test-case examples after the update has been applied. -Wikid77 (talk) 16:53, 6 March 2010 (UTC)
Fix Template:Convert/LoffAoffDsSoff for fractions
[edit]{{editprotected}}
06-March-10: The converter Template:Convert/LoffAoffDsSoff must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} {{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}} / {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAoffSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on}} gives: 41⁄2 in (110 mm)
- Currently: {{Convert|4+1/2|in|mm|abbr=on}} gives: 4+1⁄2 in (110 mm)
- Expected: {{Convert|4+1/2|in|mm|abbr=off|disp=/}} gives: 41⁄2 inches / 110 mm
- Currently: {{Convert|4+1/2|in|mm|abbr=off|disp=/}} gives: 4+1⁄2 inches (110 millimetres)*
- Expected: {{Convert|9+1/4|in|mm|abbr=off|disp=/}} gives: 91⁄4 inches / 230 mm
- Currently: {{Convert|9+1/4|in|mm|abbr=off|disp=/}} gives: 9+1⁄4 inches (230 millimetres)*
- Expected: {{Convert|23+7/8|in|mm|abbr=off|disp=/}} gives: 237⁄8 inches / 610 mm
- Currently: {{Convert|23+7/8|in|mm|abbr=off|disp=/}} gives: 23+7⁄8 inches (610 millimetres)*
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 (talk) 16:58, 6 March 2010 (UTC)
Fix Template:Convert/LonAoffDsSoff for fractions
[edit]{{editprotected}}
06-March-10: The converter Template:Convert/LonAoffDsSoff must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} [[{{{t|{{{n}}}}}}|{{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}}]] / {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAoffSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|lk=on|disp=/}} gives: 41⁄2 inches / 110 milimetres
- Currently: {{Convert|4+1/2|in|mm|lk=on|disp=/}} gives: 4+1⁄2 inches (110 mm)*
- Expected: {{Convert|9+1/4|in|mm|lk=on|disp=/}} gives: 91⁄4 inches / 230 milimetres
- Currently: {{Convert|9+1/4|in|mm|lk=on|disp=/}} gives: 9+1⁄4 inches (230 mm)*
For each fraction, the amounts of Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 17:11, 6 March 2010
Fix Template:Convert/LonAoffDbSoff for fractions
[edit]{{editprotected}} 06-March-10: The converter Template:Convert/LonAoffDbSoff must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} [[{{{t|{{{n}}}}}}|{{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}}]] ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAonSoff}})<noinclude>
When working properly, the current results, below, will match the expected:
For each fraction, the amounts of Expected & Currently should match. -Wikid77 17:29, 6 March 2010
- Not done No change on changing template, reverted change Ronhjones (Talk) 22:08, 6 March 2010 (UTC)
- I've adjusted the proposed line 1. Try again. -Wikid77 00:46, 7 March 2010
- Done That seems to have done it, but check around and ensure there are no problems. — Huntster (t @ c) 01:59, 7 March 2010 (UTC)
Fix Template:Convert/LinAoffDbSoff for commas
[edit]{{editprotected}}
06-March-10: The converter Template:Convert/LinAoffDbSoff must use convert/numdisp to show fractions and commas.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} [[{{{t|{{{n}}}}}}|{{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}}]] ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}})<noinclude>
When working properly, the current results, below, will match the expected:
That's it. -Wikid77 (talk) 18:18, 6 March 2010 (UTC)
Fix Template:Convert/LoutAoffDbSoff for commas
[edit]{{editprotected}}
06-March-10: The converter Template:Convert/LoutAoffDbSoff must use convert/numdisp to show fractions and commas.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} {{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}} ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAonSoff}})<noinclude>
When working properly, the current results, below, will match the expected:
That's it. -Wikid77 (talk) 18:18, 6 March 2010 (UTC)
Fix Template:Convert/LonAoffDorSoff for fractions
[edit]{{editprotected}}
07-March-10: The converter Template:Convert/LonAoffDorSoff must use convert/numdisp to show fractions, abbreviate output "mm" and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}. IMPACT: only 2 articles now.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} [[{{{t|{{{n}}}}}}|{{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}}]] or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LonAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|lk=on|disp=or}} gives: 41⁄2 inches or 110 mm
- Currently: {{Convert|4+1/2|in|mm|lk=on|disp=or}} gives: 4+1⁄2 inches or 110 millimetres
- Expected: {{Convert|9+1/4|in|mm|lk=on|disp=or}} gives: 91⁄4 inches or 230 mm
- Currently: {{Convert|9+1/4|in|mm|lk=on|disp=or}} gives: 9+1⁄4 inches or 230 millimetres
For each fraction, the amounts Expected & Currently should match. -Wikid77 12:37, 7 March 2010
Fix Template:Convert/LoffAoffDbSoffTs fraction temperatures
[edit]{{editprotected}} 08-March-10: Converter Template:Convert/LoffAoffDbSoffTs must use convert/numdisp to show fraction temperatures, and use {#expr:...} around {1} so that parameter1 can allow a fraction expression; the proper coding should have: {{#expr:{{{1|0}}} }}. IMPACT: no articles use temperature fractions yet.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}} }} {{{u}}} ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{#expr:{{{1|0}}} }}|{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|d=Loff}})<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|3+1/4|C|F|disp=b}} gives: 31⁄4 °C (37.85 °F)
- Currently: {{Convert|3+1/4|C|F|disp=b}} gives: 3+1⁄4 °C (37.8 °F)
- Expected: {{Convert|27+1/8|C|F|disp=b}} gives: 271⁄8 °C (80.825 °F)
- Currently: {{Convert|27+1/8|C|F|disp=b}} gives: 27+1⁄8 °C (80.8 °F)
- Expected: {{Convert|27+1/8|C|F|disp=or}} gives: 271⁄8 °C or 80.825 °F
- Currently: {{Convert|27+1/8|C|F|disp=or}} gives: 27+1⁄8 °C or 80.8 °F
Some similar temperature-converters which already work:
- Template:Convert/LoffAoffDorSoffTs - fractions with "or"
- Template:Convert/LoffAoffDcommaSoffTs - fractions with comma ","
For each fraction, amounts Expected/Currently should match. -Wikid77 13:08, 8 March 2010
- Done. — Huntster (t @ c) 13:15, 8 March 2010 (UTC)
- Reverted: This broke the template. For these {{{1}}} is not a number but a string of the form "10s", "20s", etc. The rest of these should also be fixed but it's no priority since they're not in use ... on the other hand, you wouldn't expect them to be in use if they're broken. JIMp talk·cont 00:06, 21 June 2011 (UTC)
Change Template:Convert/ft for better precision
[edit]{{editprotected}} 09-March-10: Converter Template:Convert/ft must set default precision 1-digit higher, as j=-0, for whole numbers (& integers); the proper coding should have an if-expression which involves setting: j=-0-{{{j|0}}}. IMPACT: Numerous articles will be corrected, such as some mountains which have elevations off by 1 or 2 feet. Many thousands will be reformatted.
Line 10 (j) of the template should be the following copy/paste text:
|j={{#ifexpr: floor({{{1|9}}}) = ({{{1|9}}}) |-0-{{{j|0}}}|-0.515985037-{{{j|0}}} }}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|32|m|ft}} gives: 32 metres (105 ft)
- Currently: {{Convert|32|m|ft}} gives: 32 metres (105 ft)
- Expected: {{Convert|32+1/2|m|ft}} gives: 321/2 metres (107 ft)
- Currently: {{Convert|32+1/2|m|ft}} gives: 32+1⁄2 metres (107 ft)
- Expected: {{Convert|63|m|ft}} gives: 63 metres (207 ft)
- Currently: {{Convert|63|m|ft}} gives: 63 metres (207 ft)
- Expected: {{Convert|1131|m|ft}} gives: 1,131 metres (3,711 ft)
- Currently: {{Convert|1131|m|ft}} gives: 1,131 metres (3,711 ft)
- Expected: {{Convert|14.125|m|ft}} gives: 14.125 metres (46.34 ft)
- Currently: {{Convert|14.125|m|ft}} gives: 14.125 metres (46.34 ft)
Table of detailed test cases | |||
---|---|---|---|
Parameters | Expected | Currently | Note |
{{Convert|1131|m|ft}} | 1,131 metres (3,711 ft) | 1,131 metres (3,711 ft) | Mt Komagatake |
{{Convert|2959|m|ft}} | 2,959 metres (9,708 ft) | 2,959 metres (9,708 ft) | 2-foot shift |
{{Convert|2959.0|m|ft}} | 2,959.0 metres (9,708.0 ft) | 2,959.0 metres (9,708.0 ft) | |
{{Convert|2958.5|m|ft}} | 2,958.5 metres (9,706 ft) | 2,958.5 metres (9,706 ft) | round 9706.35 |
{{Convert|2959.5|m|ft}} | 2,959.5 metres (9,710 ft) | 2,959.5 metres (9,710 ft) | round 9709.62 |
{{Convert|30|m|ft}} | 30 metres (98 ft) | 30 metres (98 ft) | |
{{Convert|31|m|ft}} | 31 metres (102 ft) | 31 metres (102 ft) | |
{{Convert|32|m|ft}} | 32 metres (105 ft) | 32 metres (105 ft) | |
{{Convert|32.00|m|ft}} | 32.00 metres (104.99 ft) | 32.00 metres (104.99 ft) | |
{{Convert|32.1|m|ft}} | 32.1 metres (105 ft) | 32.1 metres (105 ft) | |
{{Convert|29.00|m|ft}} | 29.00 metres (95.14 ft) | 29.00 metres (95.14 ft) | |
{{Convert|3100|m|ft}} | 3,100 metres (10,200 ft) | 3,100 metres (10,200 ft) | |
{{Convert|3200|m|ft}} | 3,200 metres (10,500 ft) | 3,200 metres (10,500 ft) | |
{{Convert|3300|m|ft}} | 3,300 metres (10,800 ft) | 3,300 metres (10,800 ft) | |
{{Convert|3100.5|m|ft}} | 3,100.5 metres (10,172 ft) | 3,100.5 metres (10,172 ft) | |
{{Convert|3100.9|m|ft}} | 3,100.9 metres (10,174 ft) | 3,100.9 metres (10,174 ft) | |
{{Convert|20|m|ft}} | 20 metres (66 ft) | 20 metres (66 ft) | |
{{Convert|20.5|m|ft}} | 20.5 metres (67 ft) | 20.5 metres (67 ft) | |
{{Convert|20.75|m|ft}} | 20.75 metres (68.1 ft) | 20.75 metres (68.1 ft) | |
{{Convert|1|m|ft}} | 1 metre (3.3 ft) | 1 metre (3.3 ft) | unchanged |
{{Convert|5|m|ft}} | 5 metres (16 ft) | 5 metres (16 ft) | unchanged |
{{Convert|9|m|ft}} | 9 metres (30 ft) | 9 metres (30 ft) | unchanged |
For each case, amounts Expected/Currently should match. Again, the change is being made because some m-to-ft conversion errors have been spotted in actual articles, not just in the hypothetical numbers. -Wikid77 20:04, 9 March 2010
- Done. Everything looks in order. — Huntster (t @ c) 20:19, 9 March 2010 (UTC)
Fix Template:Convert/lbfft for unit order in output with symbols
[edit]{{editprotected|Template:Convert/lbfft}}
Template:Convert/lbfft has the correct unit order with the spelled-out unit names, but the wrong order when symbols are used for the units.
Unit order is important. For energy, feet are normally first. If the original units, they will be in that order before convert is used, and we have {{Convert/ftlbf}} to handle that unit order. That will also get feet-first as output units. But for torque, while ft·lbf are used by many, there are many others put the pounds-force first. They are not only first when spelled out, but also in the unit symbols. There is an error in specifying the symbol in the Convert/lbfft subtemplate, which has the wrong order in the symbolic form. Users expect the unit order to match what they put into the template; it does when the words are spelled out, but not when unit symbols are used.
Line 2 of the template should replace "u=ft·lbf" the following copy/paste text:
u=lbf·ft
Template:Convert/lbfft also has redirects from Template:Convert/lbf.ft and Template:Convert/lbf·ft
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|320|lbfft|Nm}} gives: 320 pound force-feet (430 N·m)
- Currently: {{Convert|320|lbfft|Nm}} gives: 320 pound force-feet (430 N⋅m) [unit order is as expected when units using Convert/lbfft are spelled out]
- Expected: {{Convert|320|lbfft|Nm|abbr=on}} gives: 320 lbf·ft (430 N·m)
- Currently: {{Convert|320|lbfft|Nm|abbr=on}} gives: 320 lbf⋅ft (430 N⋅m)
- Expected: {{Convert|320|lbf.ft|Nm|abbr=on}} gives: 320 lbf·ft (430 N·m)
- Currently: {{Convert|320|lbf.ft|Nm|abbr=on}} gives: 320 lbf⋅ft (430 N⋅m)
- Expected: {{Convert|320|lbf·ft|Nm|abbr=on}} gives: 320 lbf·ft (430 N·m)
- Currently: {{Convert|320|lbf·ft|Nm|abbr=on}} gives: 320 lbf⋅ft (430 N⋅m)
- Expected: {{Convert|430|Nm|lbfft|abbr=on}} gives: 430 N·m (320 lbf·ft)
- Currently: {{Convert|430|Nm|lbfft|abbr=on}} gives: 430 N⋅m (320 lbf⋅ft)
- Expected: {{Convert|430|Nm|lbfft}} gives: 430 newton metres (320 lbf·ft)
- Currently: {{Convert|430|Nm|lbfft}} gives: 430 newton-metres (320 lbf⋅ft)
We will also still have these using the other subtemplate Convert/ftlbf which already give the units in the expected order with feet first:
- Expected: {{Convert|320|ftlbf|J|abbr=on}} gives: 320 ft·lbf (430 J)
- Currently: {{Convert|320|ftlbf|J|abbr=on}} gives: 320 ft⋅lbf (430 J)
- Expected: {{Convert|320|ftlbf|Nm|abbr=on}} gives: 320 ft·lbf (430 N·m)
- Currently: {{Convert|320|ftlbf|Nm|abbr=on}} gives: 320 ft⋅lbf (430 N⋅m)
Gene Nygaard (talk) 16:11, 16 March 2010 (UTC)
- Done — Martin (MSGJ · talk) 10:05, 17 March 2010 (UTC)
Fix Template:Convert/kg for parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/kg}}
31-March-2010: The kilogram converter Template:Convert/kg needs to pass parameters 5, 6 & 7 to enable more options to be specified with a kilogram-to-pounds conversion. For some reason, only 4 parameters had been passed all these years.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|2|or|3|kg|lb|adj=mid|gain}} gives: 2-or-3-kilogram gain (4.4 or 6.6 lb)
- Currently: {{Convert|2|or|3|kg|lb|adj=mid|gain}} gives: 2-or-3-kilogram gain (4.4 or 6.6 lb)
- Expected: {{Convert|9|-|12|kg|lb}} gives: 9–12 kilograms (20–26 lb)
- Currently: {{Convert|9|-|12|kg|lb}} gives: 9–12 kilograms (20–26 lb)
After update, the Expected/Currently should match. -Wikid77 (talk) 23:21, 31 March 2010 (UTC)
Fix Template:Convert/oz for parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/oz}}
01-Apr-2010: The ounce converter Template:Convert/oz needs to pass parameters 5, 6 & 7 to enable more options to be specified with an ounces-to-grams conversion. For some reason, only 4 parameters had been passed all these years.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|2|or|3|oz|g|adj=mid|cup}} gives: 2-or-3-ounce cup (57 or 85 g)
- Currently: {{Convert|2|or|3|oz|g|adj=mid|cup}} gives: 2-or-3-ounce cup (57 or 85 g)
- Expected: {{Convert|9|-|12|oz|g}} gives: 9–12 ounces (260–340 g)
- Currently: {{Convert|9|-|12|oz|g}} gives: 9–12 ounces (260–340 g)
After update, the Expected/Currently should match. -Wikid77 07:53, 1 April 2010 (UTC)
Fix Template:Convert/g for parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/g}}
01-Apr-2010: The grams converter Template:Convert/g needs to pass parameters 5, 6 & 7 to enable more options to be specified with a grams-to-ounces conversion. For some reason, only 4 parameters had been passed for years (same problem as Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|60|or|85|g|oz|adj=mid|cup}} gives: 60-or-85-gram cup (2.1 or 3.0 oz)
- Currently: {{Convert|60|or|85|g|oz|adj=mid|cup}} gives: 60-or-85-gram cup (2.1 or 3.0 oz)
- Expected: {{Convert|255|-|340|g|oz}} gives: 255–340 grams (9.0–12.0 oz)
- Currently: {{Convert|255|-|340|g|oz}} gives: 255–340 grams (9.0–12.0 oz)
After update, the Expected/Currently should match. -Wikid77 08:25, 1 April 2010 (UTC)
- all done. Thanks for your work with these templates. — Martin (MSGJ · talk) 08:59, 1 April 2010 (UTC)
Fix Template:Convert/Dual/rnd for fractions & precision
[edit]{{editprotected}} 01-Apr-2010: The dual-range calculator Template:Convert/Dual/rnd needs to use parentheses around {1} and {3} to convert fractions. The calculations should include both: ( {{{1}}} )*{{{b}}} AND ( {{{3}}} )*{{{b}}}. Also, the rounding precision of {3}*{b} should depend on the precision of {3} not {1}. IMPACT: over 25,000 articles.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{2}}}|{{convert/round|{{{1}}}|( {{{1}}} )*{{{b}}}|5={{{j}}}}}|{{convert/round|{{{3}}}|( {{{3}}} )*{{{b}}}|5={{{j}}}}}|u={{{u}}}|n={{{n}}}|l={{{l}}}|h={{{h}}}|U={{{U|{{{u}}}}}}|N={{{N|{{{n}}}}}}|L={{{L|{{{l}}}}}}|H={{{H|{{{h}}}}}}|k={{{k}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|5+1/2|to|9|g|oz}} gives: 5+1/2 to 9 grams (0.19 to 0.32 oz) -note "0.19"
- Currently: {{Convert|5+1/2|to|9|g|oz}} gives: 5+1⁄2 to 9 grams (0.19 to 0.32 oz)
- Expected: {{Convert|5|to|9+1/2|g|oz}} gives: 5 to 9+1/2 grams (0.18 to 0.34 oz)
- Currently: {{Convert|5|to|9+1/2|g|oz}} gives: 5 to 9+1⁄2 grams (0.18 to 0.34 oz)
- Expected: {{Convert|5.5|to|9.5|g|oz}} gives: 5.5 to 9.5 grams (0.19 to 0.34 oz)
- Currently: {{Convert|5.5|to|9.5|g|oz}} gives: 5.5 to 9.5 grams (0.19 to 0.34 oz)
After update, the Expected/Currently should match. -Wikid77 13:38, 1 April 2010 (UTC)
- Done —TheDJ (talk • contribs) 14:13, 2 April 2010 (UTC)
Fix Template:Convert/to/AoffSon for hyphen & fractions
[edit]{{editprotected}} 01-Apr-2010: The hyphenated-to display Template:Convert/to/AoffSon needs to use {Convert/numdisp} to display fractions. Also, it needs to set hyphenated name {h} as defaulted from unit name {n}. These problems had existed from 2008, as few articles used fractions with this template. IMPACT: 100 articles.
Line 1 of the template should be replaced with the following copy/paste text:
{{Convert/numdisp|{{{1}}}}}-to-{{Convert/numdisp|{{{2}}}}}-{{{h|{{{n}}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|5+1/2|to|9|g|oz|adj=on}} gives: 51/2-to-9-gram (0.19 to 0.32 oz)
- Currently: {{Convert|5+1/2|to|9|g|oz|adj=on}} gives: 5+1⁄2-to-9-gram (0.19 to 0.32 oz)
- Expected: {{Convert|60|to|85+3/4|g|oz|adj=on}} gives: 60-to-853/4-gram (2.1 to 3.0 oz)
- Currently: {{Convert|60|to|85+3/4|g|oz|adj=on}} gives: 60-to-85+3⁄4-gram (2.12 to 3.02 oz)
- Currently: {{Convert|60|to|85.75|g|oz|adj=on}} gives: 60-to-85.75-gram (2.116 to 3.025 oz)
After update, the Expected/Currently should match. -Wikid77 13:38, 1 April 2010 (UTC)
- done, though I note there is a difference in precision compared to expected... —TheDJ (talk • contribs) 14:17, 2 April 2010 (UTC)
Fix Template:Convert/to parameters 6 & 7
[edit]{{editprotected}} 01-Apr-2010: The range-word inserter (for "to") Template:Convert/to needs to pass parameters 6 & 7 to enable more options to be specified in an n-to-m range conversion. For some reason, only 5 parameters had been passed (similar to Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{formatnum:{{convert/{{{4}}}|{{{1}}}|to|{{{3}}}|{{#ifeq:{{#expr:({{{5}}}+0)*0}}|0|def|{{{5}}}}}|{{{6|}}}<!--set {5} from {6}-->|{{{7|}}}|s=({{#ifeq:{{#expr:({{{5|a}}})*0}}|0|{{{5}}}|{{#ifeq:{{#expr:({{{6|a}}})*0}}|0|{{{6}}}|0.5}}}})+(0{{{s}}})|r={{{r}}}|d=Dual/{{{d}}}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|60|to|85|g|oz|adj=mid|jar}} gives: 60-to-85-gram jar (2.1 to 3.0 oz)
- Currently: {{Convert|60|to|85|g|oz|adj=mid|jar}} gives: 60-to-85-gram jar (2.1 to 3.0 oz)
- Expected: {{Convert|255|to|340|g|oz}} gives: 255 to 340 grams (9.0 to 12 oz)
- Currently: {{Convert|255|to|340|g|oz}} gives: 255 to 340 grams (9.0 to 12.0 oz)
After updating Convert/to, the Expected should match. -Wikid77 13:38, 1 April 2010 (UTC)
- Done —TheDJ (talk • contribs) 14:21, 2 April 2010 (UTC)
Fix Template:Convert/and parameters 6 & 7
[edit]{{editprotected}} 01-Apr-2010: The range-word inserter (for "and") Template:Convert/and needs to pass parameters 6 & 7 to enable more options to be specified in an n-and-m range conversion. For some reason, only 5 parameters had been passed (similar to Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{formatnum:{{convert/{{{4}}}|{{{1}}}|and|{{{3}}}|{{#ifeq:{{#expr:({{{5}}}+0)*0}}|0|def|{{{5}}}}}|{{{6|}}}<!--set {5} from {6}-->|{{{7|}}}|s=({{#ifeq:{{#expr:({{{5|a}}})*0}}|0|{{{5}}}|{{#ifeq:{{#expr:({{{6|a}}})*0}}|0|{{{6}}}|0.5}}}})+(0{{{s}}})|r={{{r}}}|d=Dual/{{{d}}}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|60|and|85|g|oz|adj=mid|jars}} gives: 60-and-85-gram jars (2.1 and 3.0 oz)
- Currently: {{Convert|60|and|85|g|oz|adj=mid|jars}} gives: 60-and-85-gram jars (2.1 and 3.0 oz)
- Expected: {{Convert|255|and|340|g|oz}} gives: 255 and 340 grams (9.0 and 12 oz)
- Currently: {{Convert|255|and|340|g|oz}} gives: 255 and 340 grams (9.0 and 12.0 oz)
After updating Convert/and, the Expected should match. -Wikid77 13:38, 1 April 2010 (UTC)
- done —TheDJ (talk • contribs) 14:22, 2 April 2010 (UTC)
Fix Template:Convert/x parameters 6 & 7
[edit]{{editprotected}} 01-Apr-2010: The range-word inserter (for "x") Template:Convert/x needs to pass parameters 6 & 7 to enable more options to be specified in an n-x-m range conversion. For some reason, only 5 parameters had been passed (similar to Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{formatnum:{{convert/{{{4}}}|{{{1}}}|x|{{{3}}}|{{#ifeq:{{#expr:({{{5}}}+0)*0}}|0|def|{{{5}}}}}|{{{6|}}}<!--set {5} from {6}-->|{{{7|}}}|s=({{#ifeq:{{#expr:({{{5|a}}})*0}}|0|{{{5}}}|{{#ifeq:{{#expr:({{{6|a}}})*0}}|0|{{{6}}}|0.5}}}})+(0{{{s}}})|r={{{r}}}|d=Dual/{{{d}}}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|60|x|85|g|oz|adj=mid|cups}} gives: 60-by-85-gram cups (2.1 oz × 3.0 oz)
- Currently: {{Convert|60|x|85|g|oz|adj=mid|cups}} gives: 60-by-85-gram cups (2.1 oz × 3.0 oz)
- Expected: {{Convert|25|x|34|g|oz}} gives: 25 by 34 grams (0.88 oz × 1.2 oz)
- Currently: {{Convert|25|x|34|g|oz}} gives: 25 by 34 grams (0.88 oz × 1.20 oz)
After updating Convert/x, the Expected should match. -Wikid77 13:38, 1 April 2010 (UTC)
- done, but the 1st case clearly doesn't match. —TheDJ (talk • contribs) 14:27, 2 April 2010 (UTC)
Fix Template:Convert/- parameters 6 & 7
[edit]{{editprotected}} 01-Apr-2010: The range-word inserter (for "-") Template:Convert/- needs to pass parameters 6 & 7 to enable more options to be specified in an n–m range conversion. For some reason, only 5 parameters had been passed (similar to Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{formatnum:{{convert/{{{4}}}|{{{1}}}|-|{{{3}}}|{{#ifeq:{{#expr:({{{5}}}+0)*0}}|0|def|{{{5}}}}}|{{{6|}}}<!--set {5} from {6}-->|{{{7|}}}|s=({{#ifeq:{{#expr:({{{5|a}}})*0}}|0|{{{5}}}|{{#ifeq:{{#expr:({{{6|a}}})*0}}|0|{{{6}}}|0.5}}}})+(0{{{s}}})|r={{{r}}}|d=Dual/{{{d}}}}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|60|-|85|g|oz|adj=mid|coins}} gives: 60-85-gram coins (2.1-3.0 oz)
- Currently: {{Convert|60|-|85|g|oz|adj=mid|coins}} gives: 60–85-gram coins (2.1–3.0 oz)
- Expected: {{Convert|255|-|510|g|oz}} gives: 255-510 grams (9.0-18.0 oz)
- Currently: {{Convert|255|-|510|g|oz}} gives: 255–510 grams (9.0–18.0 oz)
After updating Convert/-, the Expected should match. -Wikid77 13:38, 1 April 2010 (UTC)
- done —TheDJ (talk • contribs) 14:30, 2 April 2010 (UTC)
- Any wikilink differences are because Convert/m needs to be updated also, as similar to Convert/kg (see below). -Wikid77 16:40, 2 April 2010 (UTC)
Fix Template:Convert/m parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/m}}
02-Apr-2010: The metres converter Template:Convert/m needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion. For some reason, only 4 parameters had been passed (similar to Template:Convert/kg).
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
After updating Convert/m, the wikilinks should match. -Wikid77 16:40, 2 April 2010 (UTC)
- Done - But it does not seem to have made any difference - hasn't made it any worse either. I'll leave the other "5,6,and 7"s for you to have a re-think. Ronhjones (Talk) 22:39, 2 April 2010 (UTC)
- Odd, it now show correct - some sort of slow purging of templates? Who knows? Ronhjones (Talk) 22:47, 2 April 2010 (UTC)
Fix Template:Convert/dm parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/dm}}
02-Apr-2010: The decimetres converter Template:Convert/dm needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|50|x|90|dm|ft|adj=mid|[[lake]]}} → 50-by-90-decimetre lake (16 ft × 30 ft)
- Currently: {{Convert|50|x|90|dm|ft|adj=mid|[[lake]]}} → 50-by-90-decimetre lake (16 ft × 30 ft)
- Expected: {{Convert|50|-|90|dm|ft|adj=mid|[[wave]]}} → 50–90-decimetre wave (16–30 ft)
- Currently: {{Convert|50|-|90|dm|ft|adj=mid|[[wave]]}} → 50–90-decimetre wave (16–30 ft)
After updating Convert/dm, the wikilinks should match. -Wikid77 16:40, 2 April 2010 (UTC)
- Done
Fix Template:Convert/cm parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/cm}}
02-Apr-2010: The centimetres converter Template:Convert/cm needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|50|x|90|cm|ft|adj=mid|[[pool]]}} gives: 50-by-90-centimetre pool (1.6 ft × 3.0 ft)
- Currently: {{Convert|50|x|90|cm|ft|adj=mid|[[pool]]}} gives: 50-by-90-centimetre pool (1.6 ft × 3.0 ft)
- Expected: {{Convert|50|-|90|cm|ft|adj=mid|[[rod]]}} gives: 50–90-centimetre rod (1.6–3.0 ft)
- Currently: {{Convert|50|-|90|cm|ft|adj=mid|[[rod]]}} gives: 50–90-centimetre rod (1.6–3.0 ft)
After updating Convert/cm, the wikilinks should match. -Wikid77 16:40, 2 April 2010 (UTC)
- Done (it did take 6 minutes before this page changed!) Ronhjones (Talk) 22:58, 2 April 2010 (UTC)
Fix Template:Convert/mm parameters 5, 6 & 7
[edit]{{editprotected|Template:Convert/mm}}
02-Apr-2010: The millimetres converter Template:Convert/mm needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion.
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|500|x|900|mm|ft|adj=mid|[[orb]]}} → 500-by-900-millimetre orb (1.6 ft × 3.0 ft)
- Currently: {{Convert|500|x|900|mm|ft|adj=mid|[[orb]]}} → 500-by-900-millimetre orb (1.6 ft × 3.0 ft)
- Expected: {{Convert|500|-|900|mm|ft|adj=mid|[[arc]]}} → 500–900-millimetre arc (1.6–3.0 ft)
- Currently: {{Convert|500|-|900|mm|ft|adj=mid|[[arc]]}} → 500–900-millimetre arc (1.6–3.0 ft)
After updating Convert/mm, the wikilinks should match. -Wikid77 16:40, 2 April 2010 (UTC)
Fix Template:Convert/LoffAoffDbSon for fractions
[edit]{{editprotected|Template:Convert/LoffAoffDbSon}}
02-Apr-2010: The converter Template:Convert/LoffAoffDbSon must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}}-{{{h|{{{n}}}}}} ({{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSon}})<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on}} gives: 41⁄2 in (110 mm)
- Currently: {{Convert|4+1/2|in|mm|abbr=on}} gives: 4+1⁄2 in (110 mm)
- Expected: {{Convert|4+1/2|in|mm|adj=on|disp=b}} gives: 41⁄2-inch (110 mm)
- Currently: {{Convert|4+1/2|in|mm|adj=on|disp=b}} gives: 4+1⁄2-inch (110 mm)
- Expected: {{Convert|9+1/4|in|mm|adj=on|disp=b}} gives: 91⁄4-inch (230 mm)
- Currently: {{Convert|9+1/4|in|mm|adj=on|disp=b}} gives: 9+1⁄4-inch (230 mm)
- Expected: {{Convert|23+7/8|in|mm|adj=on}} gives: 237⁄8-inch (610 mm)
- Currently: {{Convert|23+7/8|in|mm|adj=on}} gives: 23+7⁄8-inch (610 mm)
After updating {Convert/LoffAoffDbSon}, the Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "23+7/8". -Wikid77 19:09, 2 April 2010 (UTC)
Fix Template:Convert/LoffAoffDsSon for fractions
[edit]{{editprotected|Template:Convert/LoffAoffDsSon}}
02-Apr-2010: The converter Template:Convert/LoffAoffDsSon must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow a fraction expression; the proper coding should have: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}}-{{{h|{{{n}}}}}} / {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSon}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on}} gives: 41⁄2 in (110 mm)
- Currently: {{Convert|4+1/2|in|mm|abbr=on}} gives: 4+1⁄2 in (110 mm)
- Expected: {{Convert|4+1/2|in|mm|adj=on|disp=/}} gives: 41⁄2-inch / 110 mm
- Currently: {{Convert|4+1/2|in|mm|adj=on|disp=/}} gives: 4+1⁄2-inch (110 mm)*
- Expected: {{Convert|9+1/4|in|mm|adj=on|disp=/}} gives: 91⁄4-inch / 230 mm
- Currently: {{Convert|9+1/4|in|mm|adj=on|disp=/}} gives: 9+1⁄4-inch (230 mm)*
After updating {Convert/LoffAoffDsSon}, the Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "24+7/8". -Wikid77 19:09, 2 April 2010 (UTC)
Fix Template:Convert/LoffAoffDorSon for fractions
[edit]{{editprotected|Template:Convert/LoffAoffDorSon}}
02-Apr-2010: The converter Template:Convert/LoffAoffDorSon (for hyphenated form with "or") must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow fraction expressions; the proper coding should use: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}}-{{{h|{{{n}}}}}} or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSon}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|abbr=on}} gives: 41⁄2 in (110 mm)
- Currently: {{Convert|4+1/2|in|mm|abbr=on}} gives: 4+1⁄2 in (110 mm)
- Expected: {{Convert|4+1/2|in|mm|adj=on|disp=or}} gives: 41⁄2-inch or 110 mm
- Currently: {{Convert|4+1/2|in|mm|adj=on|disp=or}} gives: 4+1⁄2-inch or 110-millimetre
- Expected: {{Convert|9+1/4|in|mm|adj=on|disp=or}} gives: 91⁄4-inch or 230 mm
- Currently: {{Convert|9+1/4|in|mm|adj=on|disp=or}} gives: 9+1⁄4-inch or 230-millimetre
- Expected: {{Convert|25+7/8|in|mm|adj=on|disp=or}} gives: 257⁄8-inch or 660 mm
- Currently: {{Convert|25+7/8|in|mm|adj=on|disp=or}} gives: 25+7⁄8-inch or 660-millimetre
- Currently: {{Convert|25+7/8|in|mm|disp=b}} gives: 25+7⁄8 inches (660 mm)
After updating {Convert/LoffAoffDorSon}, the Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "25+7/8". -Wikid77 19:09, 2 April 2010 (UTC)
Fix Template:Convert/LoffAoffDorSoff for fractions
[edit]{{editprotected}} 02-Apr-2010: The converter Template:Convert/LoffAoffDorSoff (for non-hyphenated form with "or") must use convert/numdisp to show fractions and use parentheses around {1} before the multiplication with {b}, so that parameter1 can allow fraction expressions; the proper coding should use: ( {{{1}}} )*{{{b}}}.
Line 1 of the template should be the following copy/paste text:
{{convert/numdisp|{{{1|2+1/2}}}}} {{#ifeq:{{{1}}}|1|{{{n}}}|{{{l|{{{n}}}s}}}}} or {{convert/{{#if:{{{2|}}}|{{{o}}}|{{{3}}}}}|{{{1}}}|( {{{1}}} )*{{{b}}}|{{#if:{{{2|}}}|{{{3|}}}|{{{4|}}}}}|{{{s|}}}|r={{{r}}}|j={{{j}}}|d=LoffAonSoff}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|4+1/2|in|mm|disp=b}} gives: 41⁄2 inches (110 mm)
- Currently: {{Convert|4+1/2|in|mm|disp=b}} gives: 4+1⁄2 inches (110 mm)
- Expected: {{Convert|4+1/2|in|mm|disp=or}} gives: 41⁄2 inches or 110 mm
- Currently: {{Convert|4+1/2|in|mm|disp=or}} gives: 4+1⁄2 inches or 110 millimetres
- Expected: {{Convert|9+1/4|in|mm|disp=or}} gives: 91⁄4 inches or 230 mm
- Currently: {{Convert|9+1/4|in|mm|disp=or}} gives: 9+1⁄4 inches or 230 millimetres
- Expected: {{Convert|26+7/8|in|mm|disp=or}} gives: 267⁄8 inches or 680 mm
- Currently: {{Convert|26+7/8|in|mm|disp=or}} gives: 26+7⁄8 inches or 680 millimetres
- Currently: {{Convert|26+7/8|in|mm|disp=b}} gives: 26+7⁄8 inches (680 mm)
After updating {Convert/LoffAoffDorSoff}, the Expected & Currently should match. The correct calculation requires parentheses "( )" be used around parameter {1} to handle any fraction in the input number, such as in "26+7/8". -Wikid77 19:09, 2 April 2010 (UTC)
- Please REDO, because I forgot to trigger abbreviations, which are ready now. -Wikid77 18:03, 3 April 2010 (UTC)
- Done —TheDJ (talk • contribs) 21:42, 3 April 2010 (UTC)
Fix Template:Convert/°C parameters 5, 6 & 7
[edit]{{editprotected}} 03-Apr-2010: The Celsius converter Template:Convert/°C needs to pass parameters 5, 6 & 7 to enable more options for n–to-m temperature range conversions. IMPACT: 4,027 pages.
Line 1 of the template should be the following copy/paste text:
{{convert/{{{d}}}T{{#ifeq:{{#expr:{{{1}}}*0}}|0||s}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|9|to|10|C|F}} gives: 9 to 10 °C (48 to 50 °F)
- Currently: {{Convert|9|to|10|C|F}} gives: 9 to 10 °C (48 to 50 °F)
After updating {Convert/°C}, all wikilinks should match. -Wikid77 18:03, 3 April 2010 (UTC)
- Done —TheDJ (talk • contribs) 21:46, 3 April 2010 (UTC)
Fix Template:Convert/°F parameters 5, 6 & 7
[edit]{{editprotected}} 03-Apr-2010: The Fahrenheit converter Template:Convert/°F needs to pass parameters 5, 6 & 7 to enable more options for n–to-m temperature range conversions.
Line 1 of the template should be the following copy/paste text:
{{convert/{{{d}}}T{{#ifeq:{{#expr:{{{1}}}*0}}|0||s}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|45|to|50|F|C}} gives: 45 to 50 °F (7 to 10 °C)
- Currently: {{Convert|45|to|50|F|C}} gives: 45 to 50 °F (7 to 10 °C)
After updating {Convert/°F}, then ALL wikilinks will match. -Wikid77 18:03, 3 April 2010 (UTC)
- Done —TheDJ (talk • contribs) 21:47, 3 April 2010 (UTC)
Fix Template:Convert/km parameters 5, 6 & 7
[edit]{{editprotected}} 14-Aug-2010: The kilometre converter Template:Convert/km needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion. For some reason, only 4 parameters had been passed (similar to old Template:Convert/m).
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
After updating Convert/km, the wikilinks should match. -Wikid77 (talk) 05:35, 14 August 2010 (UTC)
Fix Template:Convert/sqmi parameters 5, 6 & 7
[edit]{{editprotected}} 14-Aug-2010: The square-mile converter Template:Convert/sqmi needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion. For some reason, only 4 parameters had been passed (similar to old Template:Convert/m).
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
- Expected: {{Convert|2|to|4|sqmi|km2|adj=mid|[[lake]]}} → 2-to-4-square-mile lake (5.2 to 10 km2)
- Currently: {{Convert|2|to|4|sqmi|km2|adj=mid|[[lake]]}} → 2-to-4-square-mile lake (5.2 to 10.4 km2)
- Expected: {{Convert|2|-|4|sqmi|km2|adj=mid|[[region]]}} → 2–4-square-mile region (5.2–10 km2)
- Currently: {{Convert|2|-|4|sqmi|km2|adj=mid|[[region]]}} → 2–4-square-mile region (5.2–10.4 km2)
After updating Convert/sqmi, the wikilinks should match. -Wikid77 (talk) 05:35, 14 August 2010 (UTC)
Fix Template:Convert/acre_ha for typo mulit & 5/6/7
[edit]{{editprotected}} 14-Aug-2010: The acre-hectare converter Template:Convert/acre_ha needs to have typo "mulit" changed to "multi" on line 1, plus pass the extra parameters 5/6/7.
Line 1 of the template should be the following copy/paste text:
{{convert/multi2{{{d}}}|{{convert/{{{d}}}Na|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}
When working properly, the current results, below, will match the expected:
- Expected: {{convert|1|sq_arp|acre ha|1}} gives: 1 arpent (0.8 acres; 0.3 ha)
- Currently: {{convert|1|sq_arp|acre ha|1}} gives: 1 arpent (0.8 acres; 0.3 ha)
- Expected: {{convert|2|sq_arp|acre ha|1}} gives: 2 arpents (1.7 acres; 0.7 ha)
- Currently: {{convert|1|sq_arp|acre ha|1}} gives: 2 arpents (1.7 acres; 0.7 ha)
After updating {Convert/acre_ha}, then amounts should match. -Wikid77 (talk) 05:35, 14 August 2010 (UTC)
Fix Template:Convert/ha_acre to pass 5/6/7
[edit]{{editprotected}} 14-Aug-2010: The reverse hectare-acre converter Template:Convert/ha_acre needs to be changed to pass the extra parameters 5/6/7.
Line 1 of the template should be the following copy/paste text:
{{convert/multi2{{{d}}}|{{convert/{{{d}}}Na|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}
When working properly, the current results, below, will match the expected:
- Expected: {{convert|1|sq_arp|ha acre|disp=x}} gives: 1 arpent [ 0.34 hectares; 0.84 acres ]
- Currently: {{convert|1|sq_arp|ha acre|disp=x}} gives: 1 arpent [ 0.34 ha; 0.84 acres ]
- Expected: {{convert|2|sq_arp|ha acre|disp=x| ( | )}} → 2 arpents ( 0.68 hectares; 1.7 acres )
- Currently: {{convert|2|sq_arp|ha acre|disp=x| ( | )}} → 2 arpents ( 0.68 ha; 1.7 acres )
- Expected: {{convert|3|sqmi|ha acre|abbr=on|disp=x| <(|)>}} → 3 sq mi <(780 ha; 1,900 acres)>
- Currently: {{convert|3|sqmi|ha acre|abbr=on|disp=x| <(|)>}} → 3 sq mi <(780 ha; 1,900 acres)>
After updating {Convert/ha_acre}, then amounts should match. -Wikid77 (talk) 05:35, 14 August 2010 (UTC)
- all done. Though this last one seems to be acting up. —TheDJ (talk • contribs) 12:04, 14 August 2010 (UTC)
Fix Template:Convert/LoffAonSoffNa to use LoffAonSoff
[edit]{{editprotected|Template:Convert/LoffAonSoffNa}}
16-Aug-2010: The non-abbreviated-unit display Template:Convert/LoffAonSoffNa must be changed to redirect to the similar name "Template:Convert/LoffAonSoff" (omit "Na").
Line 1 of the template should be the following copy/paste text:
#REDIRECT [[Template:Convert/LoffAonSoff]]
Verify that the redirect says "Convert/LoffAonSoff":
- Right-click: http://wiki.riteme.site/w/index.php?title=Template:Convert/LoffAonSoffNa&redirect=no
- Look for bold-arrow to → Template:Convert/LoffAonSoff.
NOTE: If the REDIRECT still has "...Aoff..." it will be wrong.
After updating {Convert/LoffAonSoffNa}, then tests below should work. -Wikid77 (talk) 05:54, 16 August 2010 (UTC)
- Done — Martin (MSGJ · talk) 08:27, 16 August 2010 (UTC)
Fix Template:Convert/LoffAonSoff to bypass {u}
[edit]{{editprotected|Template:Convert/LoffAonSoff}}
16-Aug-2010: The unit-symbol display Template:Convert/LoffAonSoff needs to be changed to bypass the symbol parameter {u} when empty. Some units (such as "acre") have no symbol {u} and must bypass the handling of {u} to display {n} instead.
Line 1 of the template should be the following copy/paste text:
{{convert/out|{{convert/{{#if:{{{4|}}}|s}}{{#if:{{{3|}}}|p}}round|{{{1}}}|{{{2}}}/{{{b}}}|{{{3}}}|{{{4}}}|{{{j}}}}}|<!--
-->{{#if:{{{u|}}}|{{{u|}}}|{{{n}}}}}|<!--endif u exists #1--
-->{{#if:{{{u|}}}|{{{u|}}}|{{{l|{{{n}}}s}}}}}|<!--endif u exists #2-
-->}}<!--endconvert/out--><noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{convert|1|sq_arp|ha acre|abbr=on|disp=x}} → 1 arpent [ 0.34 ha; 0.84 acres ]
- Currently: {{convert|1|sq_arp|ha acre|abbr=on |disp=x}} → 1 arpent [ 0.34 ha; 0.84 acres ]
- Expected: {{convert|2|sq_arp|ha acre|abbr=on}} → 2 arpents (0.68 ha; 1.7 acres)
- Currently: {{convert|2|sq_arp|ha acre|abbr=on}} → 2 arpents (0.68 ha; 1.7 acres)
- Expected: {{convert|3|sqmi|ha acre|abbr=on|disp=x| {|} }} → 3 sq mi {780 ha; 1,900 acres}
- Currently: {{convert|3|sqmi|ha acre|abbr=on|disp=x| {|} }} → 3 sq mi {780 ha; 1,900 acres}
Similar results from /LoffAonSonNa (already updated ):
- Expected: {{convert|3|sqmi|ha acre|abbr=on|adj=on}} → 3 sq mi (780 ha; 1,900-acre)
- Currently: {{convert|3|sqmi|ha acre|abbr=on|adj=on}} → 3 sq mi (780 ha; 1,900-acre)
After updating {Convert/LoffAonSoff}, then symbols should match, where "ha" will be displayed, as the abbreviated unit symbol, for hectares. -Wikid77 (talk) 05:54, 16 August 2010 (UTC)
- Done — Martin (MSGJ · talk) 08:27, 16 August 2010 (UTC)
Fix Template:Convert/roundT1 for Getprecision
[edit]{{editprotected|Template:Convert/roundT1}}
16-Aug-2010: The temperature-rounder Template:Convert/roundT1 needs to be changed to use template {Getprecision} instead of {precision/+}, for rounding of negative temperatures. The new utility Template:Getprecision has been tested to accurately count the decimal-digit precision of negative numbers.
Line 1 of the template should be the following copy/paste text:
−{{formatnum:{{rnd<noinclude>{{{?}}}</noinclude>|-{{{5}}}|({{max/2<noinclude>{{{?}}}</noinclude>|{{Getprecision|{{{1|-5.12}}}}}|2-{{ordomag|{{{2|1}}}}}}})}}}}<noinclude>
When working properly, the current results, below, will match the expected:
- Expected: {{convert|-1|F|C}} → −1 °F (−18 °C)
- Currently: {{convert|-1|F|C}} → −1 °F (−18 °C)
- Expected: {{convert|-7|F|C}} → −7 °F (−22 °C)
- Currently: {{convert|-7|F|C}} → −7 °F (−22 °C)
- Expected: {{convert|-5.25|F|C}} → −5.25 °F (−20.69 °C)
- Currently: {{convert|-5.25|F|C}} → −5.25 °F (−20.69 °C)
After updating {Convert/roundT1}, then amounts should match. -Wikid77 (talk) 00:54, 17 August 2010 (UTC)
Fix Template:Convert/in parameters 5, 6 & 7
[edit]{{editprotected}} 25-Aug-2010: The inches converter Template:Convert/in needs to pass parameters 5, 6 & 7 to enable more options to be specified in an n–m range conversion. For some reason, only 4 parameters had been passed (similar to old Template:Convert/m).
Line 1 of the template should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|s={{{s|}}}|r={{{r}}}
When working properly, the current results, below, will match the expected:
After updating Convert/in, the wikilinks should match. -Wikid77 (talk) 20:22, 25 August 2010 (UTC)
- Done —TheDJ (talk • contribs) 21:05, 25 August 2010 (UTC)
Fix Template:Convert/x parameter 8 plus doc
[edit]{{editprotected|Template:Convert/x}}
9-Dec-2010: The n-x-m range converter Template:Convert/x needs to check parameter 8 for rounding, and show doc text. Copy the contents of Template:Convert/x/sandbox.
When working properly, the current results, below, will match the expected:
- Expected: {{Convert/range|1|x|2|in|mm|disp=x| (|) [[oval]]}} → 1 by 2 inches (25 × 51 mm) oval
- Currently: {{Convert/range|1|x|2|in|mm|disp=x| (|) [[oval]]}} → User:Wikid77/Template:Convert/range
- Expected: {{Convert/range|5|x|8|in|ft|disp=x| [|] total|3}} → 5 by 8 inches [0.417 x 0.667 ft] total
- Currently: {{Convert/range|5|x|8|in|ft|disp=x| [|] total|3}} → User:Wikid77/Template:Convert/range
- Currently: {{C...|5|x/sandbox|8|in|ft|disp=x| [|] total|3}} → User:Wikid77/Template:Convert/range
After updating Convert/x, all digits should match. -Wikid77 (talk) 07:25, 9 December 2010 (UTC)
- Done Seems to work OK (after clearing my cache...) Ronhjones (Talk) 19:55, 9 December 2010 (UTC)
Fix Template:Convert/to parameter 8 plus doc
[edit]{{editprotected|Template:Convert/to}}
9-Dec-2010: The n-to-m range converter Template:Convert/to needs to check parameter 8 for rounding, and show doc text. Copy the contents of Template:Convert/to/sandbox.
When updated, current results, below, will match expected:
- Expected: {{Convert/range|1|to|2|in|mm|disp=x| (|) [[gap]]}} → 1 to 2 inches (25 to 51 mm) gap
- Currently: {{Convert/range|1|to|2|in|mm|disp=x| (|) [[gap]]}} → User:Wikid77/Template:Convert/range
- Expected: {{Convert/range|5|to|8|in|ft|disp=x| [|] wide|3}} → 5 to 8 inches [0.417 to 0.667 ft] wide
- Currently: {{Convert/range|5|to|8|in|ft|disp=x| [|] wide|3}} → User:Wikid77/Template:Convert/range
- Currently: {{C...|5|to/sandbox|8|in|ft|disp=x| [|] wide|3}} → User:Wikid77/Template:Convert/range
After updating Convert/to, all digits should match. -Wikid77 (talk) 07:25, 9 December 2010 (UTC)
- Done All looks good Ronhjones (Talk) 19:58, 9 December 2010 (UTC)
Fix Template:Convert/and parameter 8 plus doc
[edit]{{editprotected|Template:Convert/and}}
9-Dec-2010: The n-and-m range converter Template:Convert/and needs to check parameter 8 for rounding, and show doc text. Copy the contents of Template:Convert/and/sandbox.
When updated, current results, below, will match expected:
- Expected: {{Convert/range|1|and|2|in|mm|disp=x| (|) [[set]]}} → 1 and 2 inches (25 and 51 mm) set
- Currently: {{Convert/range|1|and|2|in|mm|disp=x| (|) [[set]]}} → User:Wikid77/Template:Convert/range
- Expected: {{Convert/range|5|and|8|in|ft|disp=x| [|] out|3}} → 5 and 8 inches [0.417 and 0.667 ft] out
- Currently: {{Convert/range|5|and|8|in|ft|disp=x| [|] out|3}} → User:Wikid77/Template:Convert/range
After updating Convert/and, all digits should match. -Wikid77 (talk) 07:25, 9 December 2010 (UTC)
- Done Working as expected Ronhjones (Talk) 19:59, 9 December 2010 (UTC)
Fix Template:Convert/- parameter 8 plus doc
[edit]{{editprotected|Template:Convert/-}}
9-Dec-2010: The n-m range converter Template:Convert/- needs to check parameter 8 for rounding, and show doc text. Copy the contents of Template:Convert/-/sandbox.
When updated, the current results, below, will match expected:
- Expected: {{Convert/range|1|-|2|in|mm|disp=x| (|) [[range]]}} → 1–2 inches (25–51 mm) range
- Currently: {{Convert/range|1|-|2|in|mm|disp=x| (|) [[range]]}} → User:Wikid77/Template:Convert/range
- Expected: {{Convert/range|5|-|9|in|ft|disp=x| [|] deep|4}} → 5–9 inches [0.4167–0.7500 ft] deep
- Currently: {{Convert/range|5|-|9|in|ft|disp=x| [|] deep|4}} → User:Wikid77/Template:Convert/range
After updating Convert/-, all digits should match. -Wikid77 (talk) 07:25, 9 December 2010 (UTC)
- Done All matching Ronhjones (Talk) 20:01, 9 December 2010 (UTC)
Fix Template:Convert/MPa parameters 5, 6, 7 & 8
[edit]{{editprotected|Template:Convert/MPa}}
9-Dec-2010: The megapascal converter Template:Convert/MPa needs to pass parameters 5, 6, 7 & 8 to allow more options in an n–m range conversion. Line 1 should be replaced with the following copy/paste text:
{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}
When working properly, current results, below, should match expected:
- Expected: {{Convert|50|-|90|MPa|ksi|adj=mid|[[drain]]}} → 50–90-megapascal drain (7.3–13 ksi)
- Currently: {{Convert|50|-|90|MPa|ksi|adj=mid|[[drain]]}} → 50–90-megapascal drain (7.3–13.1 ksi)
- Expected: {{Convert|8|to|9|MPa|ksi|adj=mid|[[yield]]}} → 8-to-9-megapascal yield (1.2 to 1.3 ksi)
- Currently: {{Convert|8|to|9|MPa|ksi|adj=mid|[[yield]]}} → 8-to-9-megapascal yield (1.2 to 1.3 ksi)
After updating Convert/MPa, wikilinks will match. -Wikid77 (talk) 07:25, 9 December 2010 (UTC)
- Done All matching Ronhjones (Talk) 20:03, 9 December 2010 (UTC)
Fix Convert/ft parameters 7 & 8
[edit]{{editprotected|Template:Convert/ft}}
26-Dec-2010: The foot converter Template:Convert/ft needs to pass parameters 7 & 8 to allow more options in an n–m range conversion. Line 1 should be replaced with the following copy/paste text:
{{convert/{{#ifeq:{{{4}}}|in|and/in|{{{d}}}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}|d={{{d}}}
When working properly, current results, below, should match expected:
- Expected: {{Convert|50|-|90|ft|m|adj=mid|[[chain]]|1}} → 50–90-foot chain (15.2–27.4 m)
- Currently: {{Convert|50|-|90|ft|m|adj=mid|[[chain]]|1}} → 50–90-foot chain (15.2–27.4 m)
- Expected: {{Convert|8|to|9|ft|yd|disp=x| [[up]] (| up)}} → 8 to 9 feet up (2.7 to 3.0 yd up)
- Currently: {{Convert|8|to|9|ft|yd|disp=x| [[up]] (| up)}} → 8 to 9 feet up (2.7 to 3.0 yd up)
After updating Convert/ft, match should be exact. -Wikid77 14:05, 26 December 2010 (UTC)
- Done, although the results do not seem to match the expected. — Martin (MSGJ · talk) 22:46, 26 December 2010 (UTC)
Fix Convert/lb parameters 7 & 8
[edit]{{editprotected|Template:Convert/lb}}
26-Dec-2010: The weight converter Template:Convert/lb needs to pass parameters 7 & 8 to allow more options in an n–m range conversion. Line 1 should be replaced with the following copy/paste text:
{{convert/{{#ifeq:{{{4}}}|oz|and/oz|{{{d}}}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}|d={{{d}}}
When working properly, current results, below, should match expected:
- Expected: {{Convert|50|-|90|lb|kg|adj=mid|[[orb]]|1}} → 50–90-pound orb (22.7–40.8 kg)
- Currently: {{Convert|50|-|90|lb|kg|adj=mid|[[orb]]|1}} → 50–90-pound orb (22.7–40.8 kg)
- Expected: {{Convert|8|to|9|lb|g|disp=x| [| full]}} → 8 to 9 pounds [3,600 to 4,100 g full]
- Currently: {{Convert|8|to|9|lb|g|disp=x| [| full]}} → 8 to 9 pounds [3,600 to 4,100 g full]
After updating Convert/lb, results should match. -Wikid77 14:05, 26 December 2010 (UTC)
- Done, although the results do not seem to match the expected. — Martin (MSGJ · talk) 22:49, 26 December 2010 (UTC)