Template talk:Convert

... in conception
... and in reality

Suffix parameters for first and second numbers

Can we please get suf1 and suff2 parameters added to this template, like done at Template:Change, so that we can add references or notes to the first and second numbers in the template, respectively? Cheers, Hwy43 (talk) 20:10, 26 December 2024 (UTC)[reply]

The purpose of convert is to take a single number and convert it into the equivalent in different units of measurement. All numbers displayed come from that single input. So why would we need a second reference?
Likewise, why would we have different notes for each unit of measurement? Surely a single reference and/or note cover all the units used. Can you give an example?  Stepho  talk  23:42, 26 December 2024 (UTC)[reply]
Good point re: single input. Rather, a suffix parameter is desired just for after the first number because it is the one that can be sourced, whereas the second is a product of the template. Same with notes being based on the first number. See the Flin Flon and Lloydminster rows at List of cities in Saskatchewan#List. In those two cases, I want the notes to be displayed after the first number, not after the second (conversion) number as currently shown. Cheers, Hwy43 (talk) 00:29, 27 December 2024 (UTC)[reply]
Fair enough, this only applies to tables. The |pre= option (with the ref as the next field) can be twisted into doing what you want. {{convert|2.01|km2|sqmi|disp=table|sortable=on|adj=pre|<ref group=SK>col1 note</ref>}} gives:
Column1 km2 Column2 miles2
2.01 0.78[SK 1]
2.01 [SK 2] 0.78

Notes:

  1. ^ old style note
  2. ^ col1 note
How is that?  Stepho  talk  02:35, 27 December 2024 (UTC)[reply]
Don't sweat, convert is magic. Sorry, but no reference on the output which really should not need one.
  • {{convert|12.3<ref>A wise old man.</ref>|kg}} → 12.3[1] kilograms (27 lb)

References

  1. ^ A wise old man.
Many thanks both of you. Both work well. Cheers, Hwy43 (talk) 03:11, 27 December 2024 (UTC)[reply]

Circular mil

I was editing Litz wire and I found there an instance of circular mil; is it possible to add this unit to the template?--- Carnby (talk) 20:46, 28 December 2024 (UTC)[reply]

I suppose so but after all these years without it, I wonder if a new unit would be much benefit. Would cmil be used in any other articles or would it only be used for the approximate values shown in this article? Any thoughts from watchers? Johnuniq (talk) 00:23, 29 December 2024 (UTC)[reply]

Some units not getting localized/translated

Hello, new to this, but any idea why units might not be getting correctly transliterated? Didn't get any response on Bengali wikipedia so decided to ask here.

bn:টেমপ্লেট_আলোচনা:রূপান্তর#Some_unit_names_not_getting_translated

The issue is on the top of this page: bn:স্থানীয়_গোষ্ঠী. What I want is megaparsec and light-year to be correctly transliterated as মেগাপারসেক and আলোকবর্ষ, just like kilometer is being transliterated as কিলোমিটার. Those articles do exist on the BN wikipedia. Thanks! Babaisarkar2 (talk) 10:48, 1 January 2025 (UTC)[reply]

I will fix the problem once I understand it. However, first I have to remind myself how units are created at bnwiki. I have asked a question at bn:User:Johnuniq/Translation#Units. Johnuniq (talk) 04:29, 2 January 2025 (UTC)[reply]

Lunar distance

Under length units/other, lunar distance should be added. This unit is used especially for close approaches of near-Earth objects and was missing from the documentation in spite of implementation. Rontombontom (talk) 11:57, 21 January 2025 (UTC)[reply]

Already there. 1 lunar distance (380,000 km; 240,000 mi) -- WOSlinker (talk) 12:33, 21 January 2025 (UTC)[reply]
??? I can't see it. It's now on Template:Convert/list_of_units/length/other and Template:Convert/list_of_units/length because I put in there an hour ago, but it's not on the main page which I cannot edit. If it's some cache issue, I tried Ctrl + F5 to no awail. Rontombontom (talk) 12:47, 21 January 2025 (UTC)[reply]
Sorry, Misread your comment as needing LD adding to the template rather than the docs. I've made an edit to Template:Convert/list of units/length/short list and it should show in the main documentation now. -- WOSlinker (talk) 13:07, 21 January 2025 (UTC)[reply]
The documentation at the top of Template:Convert has a "purge" link. For a fast update to what is displayed, that would need to be used. It's good to mention lunar distance but in general there are far too many other weird units to list them all. The definitive list is Module:Convert/documentation/conversion data. Johnuniq (talk) 22:34, 21 January 2025 (UTC)[reply]

 

Prefix: a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 9

Portal di Ensiklopedia Dunia