Template talk:Convert/Technical/Archive 2013
![]() | This is an archive of past discussions about Template:Convert. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Talk page for general updates
This talk-page, Template_talk:Convert/Technical, is being used to make many updates to various subtemplates of Convert, as a centralized list to help compare the before/after operations. A few templates will be listed each week. -Wikid77 (talk) 14:16, 9 September 2013 (UTC)
- Why are these not being discussed/requested at Template talk:Convert? --Redrose64 (talk) 22:18, 9 September 2013 (UTC)
- They have been discussed there, over the years (and recently), but this talk-subpage is for tedious updates along with testcases, separated here for easier editing by the attending admin, plus related minor changes. It is expected to list dozens of requests, with some rework resubmitted 2-3 times if the Expected/Currently tests do not match. -Wikid77 10:32, 10 September 2013 (UTC)
- Except for where there are few instances, testcases belong on testcases template subpages, for example Template:Convert/testcases, not in talk space. I didn't even know that this page existed until it popped up in Category:Wikipedia protected edit requests. --Redrose64 (talk) 13:08, 10 September 2013 (UTC)
- They have been discussed there, over the years (and recently), but this talk-subpage is for tedious updates along with testcases, separated here for easier editing by the attending admin, plus related minor changes. It is expected to list dozens of requests, with some rework resubmitted 2-3 times if the Expected/Currently tests do not match. -Wikid77 10:32, 10 September 2013 (UTC)
Older requests
Prior requests already done. | ||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following discussion has been closed. Please do not modify it. | ||||||||||||||||||||||||||||||
Fix Convert/3 for rounding
The Template:Convert/3 needs to be updated from Template:Convert/3/sandbox to support the rounding options "|2" or "sigfig=4" as below. After update, the following results should match:
Impact: Only 259 pages, see links: Template:Convert/3 (edit | talk | history | links | watch | logs). Convert/3 was not updated for 2 years. -Wikid77 14:16/21:14, 9 September 2013 (UTC) Fix Convert/Dual/LoffAoffDxSoffT for default output
The Template:Convert/Dual/LoffAoffDxSoffT needs to be updated from sandbox Template:Convert/Dual/LoffAoffDxSoffT/sandbox to allow omitting the output unit. After update, the following results should match:
Impact: Over 1,600, see: Template:Convert/Dual/LoffAoffDxSoffT (edit | talk | history | links | watch | logs). The last update was 14 February 2011. -Wikid77 14:16/21:14, 9 September 2013 (UTC)
Fix Convert/acre to omit Na
The area converter Template:Convert/acre should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form, and pass parameter {{{8}}} for ranges. Edit and replace template's line 1 with the following copy/paste text:
The fixes have been tested 3 months in the plural unit {{convert/acres}}. See cases below:
Impact: Over 69,100 pages, see: Template:Convert/acre (edit | talk | history | links | watch | logs). The update will avoid creating another 90 special subtemplates (redlinks) for "-Na" suffix. The last update was 18 June 2011. -Wikid77 15:05, 10 September 2013 (UTC) Fix Convert/LT to omit Na
The long-ton converter Template:Convert/LT should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
The fixes have been tested in the sandbox unit {{convert/LT/sandbox}}. See cases below:
Impact: Over 9,192 pages, see: Template:Convert/LT (edit | talk | history | links | watch | logs). The update will avoid creating another 90 special subtemplates (redlinks) for "-Na" suffix. The last update was 3 July 2013. -Wikid77 08:22, 13 September 2013 (UTC) Fix Convert/ST to omit Na
The short-ton converter Template:Convert/ST should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit Convert/ST and replace template's line 1 with the following copy/paste text:
The fixes have been tested in the sandbox unit {{convert/ST/sandbox}}. See cases below:
Impact: Over 1,325 pages, see: Template:Convert/ST (edit | talk | history | links | watch | logs). The update will avoid creating another 90 special subtemplates (redlinks) for "-Na" suffix. The last update was 27 January 2013. -Wikid77 08:22, 13 September 2013 (UTC) Fix Convert/and/chain for precision
The miles-&-chains converter Template:Convert/and/chain should be changed to improve the default precision of chains as 2-decimal precision, because with 80 chains per mile, a chain is ~1/100 mile or 2 decimals. Edit Convert/and/chain and replace template's precision (line 8) with the following copy/paste text:
The fixes have been tested for 3 months in the sandbox unit {{convert/and/chain/sandbox}}. See cases below:
Impact: Only 133 pages, see: Template:Convert/and/chain (edit | talk | history | links | watch | logs). The last update was 4 February 2010. -Wikid77 20:55, 13 September 2013 (UTC) Fix Convert/-/AonSoff for acres
The dash-range Template:Convert/-/AonSoff should be fixed to handle unit-code "acre" by checking for parameter {{{u}}} and then using either singular {{{n}}} or plural parameter {{{l}}} (otherwise "{{{n}}}+s"). This problem arose when simplifying Convert/acre to omit suffix "-Na" which allows an undefined {{{u}}} into the unit-range subtemplates which show the unit symbol.
The fixes have been tested in the sandbox unit. See cases below:
Impact: Over 46,680 pages, see: Template:Convert/-/AonSoff (edit | talk | history | links | watch | logs). The last update was 14 January 2013. -Wikid77 03:22, 15 September 2013 (UTC) Fix Convert/to/AonSoff for acres
The to-range Template:Convert/to/AonSoff should be fixed to handle unit-code "acre" by checking for parameter {{{u}}} and then using either singular {{{n}}} or plural parameter {{{l}}} (otherwise "{{{n}}}+s"). This problem arose when simplifying Convert/acre to omit suffix "-Na" which allows an undefined {{{u}}} into the unit-range subtemplates which show the unit symbol.
The fixes have been tested in the sandbox unit. See cases below:
Impact: Over 9,550 pages, see: Template:Convert/to/AonSoff (edit | talk | history | links | watch | logs). The prior update was 18 June 2013. -Wikid77 03:22/18:32, 15 September 2013 (UTC) Fix Convert/Dual/LoffAonDbSoff for acres
The range-symbol calculator for "( )", Template:Convert/Dual/LoffAonDbSoff should be fixed to handle unit-code "acre" by passing both the singular name {{{n}}} and plural parameter {{{l}}} (otherwise "{{{n}}}+s"). This problem arose when simplifying Convert/acre to omit suffix "-Na" which passes the undefined null {{{u}}} into the unit-range subtemplates which now need {{{n}}} and {{{l}}}.
The fixes have been tested in the sandbox unit. See cases below:
Impact: Over 47,430 pages, see: Template:Convert/Dual/LoffAonDbSoff (edit | talk | history | links | watch | logs). The prior update was 27 May 2011. -Wikid77 18:32, 15 September 2013 (UTC) Fix Convert/lb for precision
The pounds-weight converter Template:Convert/lb should be changed to improve the default precision of pounds to match kilograms, such as for 3-digit precision (previously pounds had 2 significant digits). Edit Convert/lb and replace template's precision (line 8) with the following copy/paste text:
The fixes have been tested for 3 months in the sandbox unit {{convert/lb/sandbox}}. See cases below:
Impact: Over 71,440 pages, see: Template:Convert/lb (edit | talk | history | links | watch | logs). The last update was 26 December 2010. -Wikid77 19:56, 20 September 2013 (UTC) Fix Convert/Dual/LoffAonDbSon for acres
The range-symbol calculator for adjective mode with "( )", Template:Convert/Dual/LoffAonDbSon, should be fixed to handle unit-code "acre" by passing both the singular name {{{n}}} and hyphenated parameter {{{h}}}. This problem arose when simplifying Convert/acre to omit suffix "-Na" which passes the undefined null {{{u}}} into the unit-range subtemplates which now need to pass parameters {{{n}}} and {{{h}}}.
The fixes have been tested in the sandbox unit. See cases below:
Impact: Only 40 pages, see: Template:Convert/Dual/LoffAonDbSon (edit | talk | history | links | watch | logs). The prior update was 2 January 2011. -Wikid77 12:37, 21 September 2013 (UTC) Fix Convert/-/AonSon for acres
The range-symbol formatter for adjective mode with "( )", Template:Convert/-/AonSon, should be fixed to handle unit-code "acre" by displaying either the singular name {{{n}}} or hyphenated parameter {{{h}}} when symbol {{{u}}} is null. The template must be replaced with a total rewrite (see sandbox), due to the complexity of hyphenating the unit name when the unit symbol is null. This problem arose when simplifying Convert/acre to omit suffix "-Na" which passes the undefined null {{{u}}} into the unit-range subtemplates which now need to handle parameters {{{n}}} and {{{h}}}.
The fixes have been tested in the sandbox unit. See cases below:
Impact: Only 24 pages, see: Template:Convert/-/AonSon (edit | talk | history | links | watch | logs). The prior update was 2 January 2011. -Wikid77 21:49, 21 September 2013 (UTC)
Fix Convert/metric_ton to omit Na
The metric-ton converter Template:Convert/metric_ton should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
Similar fixes have been tested with other units. See cases below:
Impact: Only 54 pages, see: Template:Convert/metric ton (edit | talk | history | links | watch | logs). The update will avoid creating another 90 special subtemplates (redlinks) for "-Na" suffix. The prior update was 17 June 2009. -Wikid77 10:58, 22 September 2013 (UTC)
Fix Convert/long_ton to omit Na
The long-ton converter Template:Convert/long_ton should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
Similar fixes have been tested with other units. See cases below:
Impact: Only 192 pages: Template:Convert/long ton (edit | talk | history | links | watch | logs). The update avoids redlinks of "-Na" suffix. Prior update: 17 June 2009. -Wikid77 10:58, 22 September 2013 (UTC)
Fix Convert/short_ton to omit Na
The short-ton converter Template:Convert/short_ton should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
Similar fixes have been tested with other units. See cases below:
Impact: Only 118 pages: Template:Convert/short ton (edit | talk | history | links | watch | logs). The update avoids redlinks of "-Na" suffix. Prior update: 17 June 2009. -Wikid77 10:58, 22 September 2013 (UTC)
|
Fix Convert/carat to omit Na
![]() | This edit request to Template:Convert/carat has been answered. Set the |answered= parameter to no to reactivate your request. |
The jewel-carat converter Template:Convert/carat should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
- {{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}
- Edit-summary:
- remove suffix "-Na" from "{{{d}}}Na" per protected edit in [[Template talk:Convert/Technical]]
Similar fixes have been tested with other units. See cases below:
- Expected: {{convert|42|carat|g|disp=sqbr}} → 42 carats [8.4 g]
- Currently: {{convert|42|carat|g|disp=sqbr}} → 42 carats [8.4 g]
- Expected: {{convert|30|-|88|carat|lb|disp=x| [| mix]}} → 30–88 carats [0.013–0.039 lb mix]
- Currently: {{convert|30|-|88|carat|lb|disp=x| [| mix]}} → 30–88 carats [0.0132–0.0388 lb mix]
Impact: Over 260 pages: Template:Convert/carat (edit | talk | history | links | watch | logs). The update avoids redlinks of "-Na" suffix. Prior update: 3 October 2011. -Wikid77 14:00, 25 September 2013 (UTC)
Done -- WOSlinker (talk) 09:38, 29 September 2013 (UTC)
Fix Convert/LT_ST to omit Na
![]() | This edit request to Template:Convert/LT_ST has been answered. Set the |answered= parameter to no to reactivate your request. |
The long/short-ton multi2 converter Template:Convert/LT_ST should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" and pass parameters {5}-{8} to allow more options as simple form. Edit and replace template's lines 1 and 5 with the following copy/paste lines:
- {{convert/multi2{{{d}}}|{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}
- |j=3.006913759-{{{j}}}}}|{{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}
- Edit-summary:
- omit suffix "-Na" in each "{{{d}}}Na" per protected edit in [[Template talk:Convert/Technical]]
Similar fixes have been tested with other units. See cases below:
- Expected: {{convert|29|MT|LT ST|disp=sqbr|abbr=on}} → 29 t [29 long tons; 32 short tons]
- Currently: {{convert|29|MT|LT ST|disp=sqbr|abbr=on}} → 29 t [29 long tons; 32 short tons]
- Expected: {{convert|3|-|6|MT|LT ST|disp=x| <<| total>>}} → 3–6 metric tons <<3.0–5.9 long tons; 3.3–6.6 short tons total>>
- Currently: {{convert|3|-|6|MT|LT ST|disp=x| <<| total>>}} → 3–6 metric tons <<3.0–5.9 long tons; 3.3–6.6 short tons total>>
Impact: Over 1980 pages: Template:Convert/LT ST (edit | talk | history | links | watch | logs). The update avoids "-Na" subtemplates. Prior update: 14 July 2011. -Wikid77 14:00, 25 September 2013 (UTC)
Done -- WOSlinker (talk) 09:38, 29 September 2013 (UTC)
New requests
Fix Convert/LoffAonSon for acres
![]() | This edit request to Template:Convert/LoffAonSon has been answered. Set the |answered= parameter to no to reactivate your request. |
The symbol adjective formatter for "( )", Template:Convert/LoffAonSon should be fixed to handle unit-code "acre" by showing the hyphenated name {{{h}}} (otherwise "{{{n}}}"). This problem arose when simplifying Convert/acre to omit suffix "-Na" which passes the undefined null {{{u}}} into the unit-range subtemplates which now need {{{h}}} and {{{n}}}.
- Replace from sandbox: Template:Convert/LtestAonSon ("Ltest" as "Loff")
- Edit-summary:
- fix null {u} by showing {h} or {n}, per protected edit at [[Template talk:Convert/Technical]]
The fixes have been tested in the sandbox unit. See cases below:
- Expected: {{convert|2.8|ha|acre|adj=on}} → 2.8-hectare (6.9-acre)
- Currently: {{convert|2.8|ha|acre|adj=on}} → 2.8-hectare (6.9-acre)
- Expected: {{convert|90|km2|acre|adj=on}} → 90-square-kilometre (22,000-acre)
- Currently: {{convert|90|km2|acre|adj=on}} → 90-square-kilometre (22,000-acre)
- Expected: {{convert|7|g|carat|adj=on}} → 7-gram (35-carat)
- Currently: {{convert|7|g|carat|adj=on}} → 7-gram (35-carat)
Impact: Over 54,546 pages, see: Template:Convert/LoffAonSon (edit | talk | history | links | watch | logs). The prior update was 28 February 2008. -Wikid77 12:37, 30 September 2013 (UTC)
- Already done from sandbox on 4 October 2013. -Wikid77 (talk) 12:09, 4 October 2013 (UTC)
Fix Convert/fathom to omit Na
![]() | This edit request to Template:Convert/fathom has been answered. Set the |answered= parameter to no to reactivate your request. |
The depth-fathom converter Template:Convert/fathom should be changed to remove suffix "-Na" from "{{{d}}}Na" as just "{{{d}}}" to allow more options as simple form. Edit and replace template's line 1 with the following copy/paste text:
- {{convert/{{{d}}}|{{{1}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|s={{{s|}}}|r={{{r}}}
- Edit-summary:
- remove suffix "-Na" from "{{{d}}}Na" per protected edit in [[Template talk:Convert/Technical]]
Similar fixes have been tested with other units. See cases below:
- Expected: {{convert|3|fathom|ft|disp=sqbr}} → 3 fathoms [18 ft]
- Currently: {{convert|3|fathom|ft|disp=sqbr}} → 3 fathoms [18 ft]
- Expected: {{convert|70|-|88|fathom|m|disp=x| [| depth]}} → 70–88 fathoms [130–161 m depth]
- Currently: {{convert|70|-|88|fathom|m|disp=x| [| depth]}} → 70–88 fathoms [128–161 m depth]
Impact: Only 142 pages: Template:Convert/fathom (edit | talk | history | links | watch | logs). The update avoids redlinks of "-Na" suffix. Prior update: 16 June 2009. -Wikid77 12:37, 30 September 2013 (UTC)