Jump to content

Template talk:Convert/Archive March 2019

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia


Qualifiers

Hello. Can someone familiar with this template please add info about the |qual= parameter please. It is supported, as per Module:Convert/wikidata. Thanks! Rehman 14:03, 13 March 2019 (UTC)

Search the documentation on the template page for "Wikidata" to find how it can be used. If there is a problem, please give an example of what wikitext would be wanted on what article, along with what it should do. Johnuniq (talk) 00:06, 14 March 2019 (UTC)
(ec)re Rehman: What do you expect, like? I myself never needed that info. -DePiep (talk) 00:08, 14 March 2019 (UTC)
Simply for the sake of having completed documentation of the template. The function is part of this template right? Rehman 08:41, 14 March 2019 (UTC)
Did you see my response above? What would you like the template to do that it does not already offer? What wikitext on what article, and what should it do? Johnuniq (talk) 08:45, 14 March 2019 (UTC)
Sorry, I think you misunderstood, or I wasn't clear. The feature is already there. This template currently supports the parameter |qual=, but is not documented anywhere. Rehman 09:07, 14 March 2019 (UTC)
Yes, I misunderstood, sorry. The request is to explain qual in the documentation. I had totally forgotten about qual but it is documented in the talk archives at May 2017#Wikidata qualifiers + May 2017#Module version 17. What I mean is that those archives need to be used to update the documentation on the template page. I might get around to that but not for a while I'm afraid. There is also the issue of how much detail to put in the doc. Perhaps just add the version 17 link to the doc? Thanks for the reminder. Johnuniq (talk) 09:51, 14 March 2019 (UTC)
No worries, and thank you Johnuniq. Happy editing! :) Rehman 10:40, 14 March 2019 (UTC)
I've added an example of qual to the docs (copied and modified from May 2017#Wikidata qualifiers) -- WOSlinker (talk) 11:08, 14 March 2019 (UTC)

"abbr=unit"-like behaviour

Quick question. I love being able to use "abbr=unit" (honestly my favourite function, as I hate scientific notation in what should be layman formatting), but is there any way to make that behaviour work with "abbr=out" or "in"? I admit, not a huge number of applicable situations, but there are times when you want to output "150 million km" but still want to have an input of "one astronomical unit". Huntster (t @ c) 01:41, 18 March 2019 (UTC)

No, sorry. Using abbr=unit forces abbr=on for both input and output units. As you know, abbr=unit does not abbreviate number names.
  • {{convert|12.3|AU|e9km e9mi|1|abbr=unit}} → 12.3 AU (1.8 billion km; 1.1 billion mi)
If it's AU that is a problem, it would be possible to define another unit where "astronomical unit" is the symbol rather than "AU". I can try that in Module:Convert/extra if you like, but we would need to choose a unit code. AUfull? Johnuniq (talk) 02:56, 18 March 2019 (UTC)