User talk:Johnuniq
I'll reply to messages here, unless requested otherwise. |
Index of stuff
Module:Convert
- User:Johnuniq/Using the convert module – proposal to use Module:Convert
- Module talk:Convert – to discuss what needs to be done
- Template:Convert/sandboxlua – template to invoke Module:Convert
- Template:Convert/sandboxlua2 – same, with
warnings = on
- Template:Convert/sandbox – template to invoke the sandboxed convert modules
- Module:Convert – main convert module; same on all wikis
- Module:Convert/doc – overview of modules
- Module:Convert/data – unit definitions, for en.wiki
- Module:Convert/text – text messages and parameter names and values, for en.wiki
- Module:Convert/extra – extra (temporary) unit definitions
- Module:ConvertNumeric – spell an input value in words (only English is supported)
- Module:ConvertTestcase – implements following testcases
- Template:Convert/testcases – tests comparing output from Template:Convert with output from Template:Convert/sandboxlua
- Template:Convert/sandboxlua/parameter options – more tests
- Module:Convert/tester – module to perform tests with fixed expected results
- Module:Convert/sandbox/testcases – tests for the sandboxed convert modules
- Module talk:Convert/sandbox/testcases – results of running tests
- Module:Convert/documentation/conversion data/doc – master list of unit definitions
- Module:Convert/documentation/conversion data introduction/doc – explanations transcluded into above
- Module:Convert/makeunits – script to translate master list of units to Lua code
- Help:Convert – user documentation on template usage (being written)
- Help:Convert units – user documentation with simplified list of some units
- Help:Convert messages – user documentation with help on error messages
- User:Johnuniq/Convert documentation – now mostly at Help:Convert, but has a little more
- User:Johnuniq/Convert messages – examples of messages that can be displayed
- User:Johnuniq/Convert notes – problems encountered using old template
- My talk page at test2 with old notes
Archives (not related to convert)
- Comments re free speech
- Jagged: misuse of sources progress, more, genre articles
- Links to highbeam.com from dumps of external links ∙ earlier ∙ more Credo
- Gregorian serial date template
- Analysis of EL dump using Amazon S3 very interesting methods from GabrielF
- Module:Number at Hindi Wikipedia request from Siddhartha Ghai
Wikipedia Library, Metrics Coordinator
Hey John. You've been invaluable to demonstrating the imapct of our library donations. I want to ask you if you'd like to take on this role more fully, running metrics reports for all of our partnerships every 3 months. The key ones we have not done yet are Questia and JSTOR and Cochrane. Having data on these would help us greatly in making the case for extension and expansion of these parternships. Would you be interested in having the Metrics Coordinator position and doing this regularly? You've been great at it so far and it's really invaluable. Perhaps we should set up a time to chat and see what would work best for you. Hope you're well, Jake Ocaasi t | c 15:05, 11 December 2013 (UTC)
- There will be a more clever way of doing what I have been doing. I have been wanting to investigate WP:Labs for a while, and something run there on a regular basis makes more sense than searching downloaded external links dumps. A problem for me is that a major project (Module:Convert) that I have worked on for a year has just gone live, and I won't feel like looking at anything else for a few weeks. But yes, I'm happy to do more link searching. Johnuniq (talk) 19:32, 11 December 2013 (UTC)
- Awesome! Yeah, there must be a way to automate this.
- I was wondering...if we could run the JSTOR numbers using the old method, from 1/2011 to 11/2013 searching for http://www.jstor.org*** or https://www.jstor.org/stable*** (I'm not sure which is more appropriate). This could be really useful in persuading JSTOR to extend the partnership and expand out of pilot phase to more accounts. Any chance we could have that by New Year's? Pretty please? ;)
@Ocaasi: The JSTOR results are below. You wanted 1/2011 to 12/2013, but my earliest dump of external links is 6/2011 and my "history" method for estimating counts at earlier dates is unattractive because far too many pages (20,000 articles) would need analysis.
I started by looking at all the JSTOR links in articles in December 2013, and saw no reason to exclude some of them, so I ended up searching for all links of form "jstor.org/something" (not case sensitive, but virtually all occurrences are lowercase).
The following shows all external links of form "jstor.org/something" (not case sensitive) in articles, found by examining dumps like enwiki-20131202-externallinks.sql.gz downloadable from here. Links in pages other than articles are not included.
Date | Unique articles | Unique links | Total links |
---|---|---|---|
2011-06-20 | 19,953 | 27,727 | 33,001 |
2011-07-22 | 20,263 | 28,121 | 33,486 |
2011-09-01 | 20,696 | 28,825 | 34,359 |
2012-02-11 | 22,808 | 29,886 | 36,294 |
2012-03-07 | 23,471 | 30,600 | 37,115 |
2012-04-03 | 23,733 | 30,963 | 37,588 |
2012-05-02 | 24,318 | 31,619 | 38,400 |
2012-06-01 | 24,668 | 32,598 | 60,531 |
2012-07-02 | 25,698 | 33,290 | 40,313 |
2012-08-02 | 26,089 | 33,783 | 40,897 |
2012-09-02 | 26,412 | 34,164 | 41,431 |
2012-10-01 | 26,756 | 34,614 | 41,981 |
2012-11-01 | 27,070 | 35,103 | 42,578 |
2012-12-01 | 27,607 | 35,803 | 43,402 |
2013-01-02 | 28,055 | 36,460 | 44,187 |
2013-02-04 | 28,496 | 37,111 | 45,016 |
2013-03-04 | 82,983 | 91,903 | 100,024 |
2013-04-03 | 83,679 | 92,826 | 100,984 |
2013-05-03 | 84,666 | 94,049 | 102,352 |
2013-06-04 | 84,881 | 94,304 | 102,644 |
2013-07-08 | 86,430 | 96,285 | 104,920 |
2013-08-05 | 87,253 | 97,268 | 106,059 |
2013-09-04 | 88,258 | 98,458 | 107,415 |
2013-10-01 | 89,031 | 101,316 | 121,514 |
2013-11-04 | 90,125 | 101,643 | 137,188 |
2013-12-02 | 90,843 | 102,537 | 138,574 |
The number of pages and links dramatically rose during February 2013—the number of articles tripled, and the number of links more than doubled. I investigated to see if that was some bug in my scripts, but it appears to be correct. It looks as if a tremendous amount of wikignoming went on in that month, but the most significant factor is that the number of "doBasicSearch" links rose from 1300 to 55,300, and most of them appeared to have been placed in articles which had not previously had a JSTOR link. So, in February 2013, 54,000 JSTOR "doBasicSearch" links were added to articles! Looking at a couple of examples shows that doBasicSearch is coming from {{notability}} which generates "Find sources" with a JSTOR search. Confusingly, "Find sources" is not visible on some articles (example), apparently due to {{notability}} being embedded in {{multiple issues}}—however, the JSTOR link is present in the html source of the article, and it is counted as an external link. An example of an article where the JSTOR search is visible is here. All that suggests that I should run my scripts again, but adjust the search to eliminate doBasicSearch links. On the other hand, the fact that a search to JSTOR is visible at the top of thousands of articles could well be seen as a bonus for JSTOR, so for the moment I'll just report what I have found, despite the fact that a significant number of the links are not visible. While comparing the February and March 2013 results it was clear that hundreds of standard reference links were added, as well as the 54,000 doBasicSearch.
- Fantastic Johnuniq. I'm adding this to the JSTOR/metrics page and will let Steven (WMF) know about how much we have expanded out links to JSTOR. Hopefully that will be persuasive for increasing/expanding/continuing the pilot donation program. Thank you! Ocaasi t | c 17:23, 27 December 2013 (UTC)
As a matter of interest, I noticed that the oldest article that currently contains JSTOR links is Anarchism, which was created in 2001.
I guess you are aware, but in case you missed it, I did some Credo results earlier this month, see here. I'm afraid I still have not got around to fixing the graphing software that I use, so I don't have a graph for the above. Please find someone at WP:VPT to plot it because the numbers look like they show a steady increase. Johnuniq (talk) 07:02, 27 December 2013 (UTC)
One week alive and no sleep lost for anyone: here it is
|
[[ module:express barnstar for Lua contribution ]] | |
p = {}
global function expressBarnStar ( star, reasons, sign )
-- todo: function to handle the data; ask Juniq
return '[[file:' .. star .. '|150px]]' .. reasons .. /n .. sign
end
return p
|
||
One week live already and wonderfully stable, consistent and very few faults appearing. A pleasure to work with. -DePiep 12:00, 18 December 2013 (UTC) |
You might enjoy this
You might enjoy this. [1] Maybe you could come up with a "kind description". Barleybannocks (talk) 08:58, 24 December 2013 (UTC)
- Thanks, but it will be a while before I get a moment to try that. Perhaps some seasonal goodwill (backed by some solid topic bans!) will bring an outbreak of peace soon. Johnuniq (talk) 11:00, 24 December 2013 (UTC)
- Perhaps, but if you keep banning everyone who knows what they're talking about, the chances seem rather slim. Better just to write a reasonably neutral article and be done with it. Even if that does mean telling some of the frightened children to grow up.Barleybannocks (talk) 11:07, 24 December 2013 (UTC)
Convert and use in val template
I've been trying to use convert module in the {{val}} template with the following code:
{{Val/unitsfromconvert|1|m|disp=unit}}
which works fine for when the unit is a recognised one but when the unit is not recognised, it is displaying a warning.
{{Val/unitsfromconvert|1|abcd|disp=unit}} - | Gy=Gy | rad=rad
| cm/s2=cm/s2 | ft/s2=ft/s2 | g0=g0 | km/hs=km/(h·s) | km/s2=km/s2 | m/s2=m/s2 | mph/s=mph/s | km/h/s=km/(h·s) | standard gravity=g0
| 1000sqft=1000 sq ft | a=a | acre=acre | acre-sing=acre | arpent=arpent | cda=cda | Cypriot donum=donum | Cypriot dunam=dunam | Cypriot dunum=dunum | Cypriot dönüm=dönüm | daa=daa | donum=donum | dunam=dunam | dunum=dunum | dönüm=dönüm | ha=ha | hectare=hectare | Iraqi donum=donum | Iraqi dunam=dunam | Iraqi dunum=dunum | Iraqi dönüm=dönüm | Irish acre=Irish acres | m2=m2 | old donum=donum | old dunam=dunam | old dunum=dunum | old dönüm=dönüm | pondemaat=pond | pyeong=pyeong | rood=rood | sqfoot=sq ft | sqft=sq ft | sqin=sq in | sqmi=sq mi | sqnmi=sq nmi | sqperch=perch | sqverst=square verst | sqyd=sq yd | tsubo=tsubo | acres=acre | are=a | Cypriot donum diaeresis=dönüm | Cypriot donum dots=dönüm | decare=daa | donum diaeresis=dönüm | donum dots=dönüm | foot2=sq ft | ft2=sq ft | in2=in2 | Iraqi donum diaeresis=dönüm | Iraqi donum dots=dönüm | km²=km2 | metric donum=donum | metric donum diaeresis=dönüm | metric donum dots=dönüm | metric dunam=dunam | metric dönüm=dönüm | mi2=sq mi | million acre=acres | million acres=acres | million hectares=ha | m²=m2 | nmi2=sq nmi | old donum diaeresis=dönüm | old donum dots=dönüm | pond=pond | sq arp=arpent | sqkm=km2 | sqm=m2 | square verst=square verst | verst2=square verst | yd2=sq yd
| m2/ha=m2/ha | sqft/acre=sq ft/acre
| A.h=A·h | coulomb=C | e=e | A·h=A·h
| g-mol=g-mol | gmol=gmol | kmol=kmol | lb-mol=lb-mol | lbmol=lbmol | mol=mol
| kgCO2/L=kg(CO2)/L | lbCO2/USgal=lbCO2/US gal
| $/acre=/acre | $/ha=/ha | $/m2=/m2 | $/sqft=/sq ft
| $/kg=/kg | $/g=/g | $/lb=/lb | $/oz=/oz | $/ozt=/ozt
| g/dm3=g/dm3 | g/L=g/L | g/mL=g/mL | g/ml=g/ml | kg/dm3=kg/dm3 | kg/L=kg/L | kg/l=kg/l | kg/m3=kg/m3 | lb/cuft=lb/cu ft | lb/cuin=lb/cu in | lb/cuyd=lb/cu yd | lb/impgal=lb/imp gal | lb/in3=lb/cu in | lb/U.S.gal=lb/U.S. gal | lb/USbu=lb/US bu | lb/USgal=lb/US gal | lbm/cuin=lbm/cu in | mg/L=mg/L | oz/cuin=oz/cu in | g/cm3=g/cm3 | g/m3=g/m3 | Mg/m3=Mg/m3 | mg/l=mg/l | µg/dL=µg/dL | µg/l=µg/l | lb/ft3=lb/cu ft | lb/yd3=lb/cu yd | lbm/in3=lbm/cu in | mcg/dL=µg/dL | oz/in3=oz/cu in | ug/dL=µg/dL | μg/dL=µg/dL | ug/l=µg/l
| B.O.T.U.=B.O.T.U. | bboe=bboe | BOE=BOE | BTU=BTU | Btu=Btu | BTU-39F=BTU39°F | Btu-39F=Btu39°F | BTU-59F=BTU59°F | Btu-59F=Btu59°F | BTU-60F=BTU60°F | Btu-60F=Btu60°F | BTU-63F=BTU63°F | Btu-63F=Btu63°F | BTU-ISO=BTUISO | Btu-ISO=BTUISO | BTU-IT=BTUIT | Btu-IT=BtuIT | BTU-mean=BTUmean | Btu-mean=Btumean | BTU-th=BTUth | Btu-th=Btuth | Cal=Cal | cal=cal | Cal-15=Cal15 | cal-15=cal15 | Cal-IT=CalIT | cal-IT=calIT | Cal-th=Calth | cal-th=calth | ccatm=cc·atm | CHU-IT=CHUIT | cm3atm=cm3·atm | cufootatm=cu ft atm | cufootnaturalgas=cubic foot of natural gas | cuftatm=cu ft atm | cuftnaturalgas=cubic foot of natural gas | cuydatm=cu yd atm | Eh=Eh | erg=erg | eV=eV | feV=feV | foe=foe | ftlb=ft·lb | ftlb-f=ft·lbf | ftlbf=ft·lbf | ftpdl=ft·pdl | GeV=GeV | GLatm=GL·atm | Glatm=Gl·atm | gTNT=gram of TNT | Gtoe=Gtoe | GtonTNT=gigaton of TNT | GtTNT=gigatonne of TNT | GW.h=GW·h | GWh=GWh | hph=hp·h | impgalatm=imp gal·atm | inlb=in·lb | inlb-f=in·lbf | inlbf=in·lbf | inoz-f=in·ozf | inozf=in·ozf | J=J | kBOE=kBOE | kcal=kcal | kcal-15=kcal15 | kcal-IT=kcalIT | kcal-th=kcalth | kerg=kerg | keV=keV | kgTNT=kilogram of TNT | kLatm=kL·atm | klatm=kl·atm | kt(TNT)=kt | ktoe=ktoe | ktonTNT=kt | ktTNT=kilotonne of TNT | kW.h=kW·h | kWh=kWh | Latm=L·atm | latm=l·atm | m3atm=m3·atm | MBtu=MBtu | MBTU-39F=MBTU39°F | MBtu-39F=MBtu39°F | MBTU-59F=MBTU59°F | MBtu-59F=MBtu59°F | MBTU-60F=MBTU60°F | MBtu-60F=MBtu60°F | MBTU-63F=MBTU63°F | MBtu-63F=MBtu63°F | MBTU-ISO=MBTUISO | MBtu-ISO=MBtuISO | MBTU-IT=MBTUIT | MBtu-IT=MBtuIT | MBTU-mean=MBTUmean | MBtu-mean=MBtumean | MBTU-th=MBTUth | MBtu-th=MBtuth | Mcal=Mcal | mcal=mcal | Mcal-15=Mcal15 | mcal-15=mcal15 | Mcal-IT=McalIT | mcal-IT=mcalIT | Mcal-th=Mcalth | mcal-th=mcalth | Merg=Merg | merg=merg | MeV=MeV | meV=meV | MLatm=ML·atm | Mlatm=Ml·atm | mLatm=L·atm | mlatm=l·atm | MMBtu=MMBtu | MMBTU-39F=MMBTU39°F | MMBtu-39F=MMBtu39°F | MMBTU-59F=MMBTU59°F | MMBtu-59F=MMBtu59°F | MMBTU-60F=MMBTU60°F | MMBtu-60F=MMBtu60°F | MMBTU-63F=MMBTU63°F | MMBtu-63F=MMBtu63°F | MMBTU-ISO=MMBTUISO | MMBtu-ISO=MMBtuISO | MMBTU-IT=MMBTUIT | MMBtu-IT=MMBtuIT | MMBTU-mean=MMBTUmean | MMBtu-mean=MMBtumean | MMBTU-th=MMBTUth | MMBtu-th=MMBtuth | Mt(TNT)=Mt | Mtoe=Mtoe | MtonTNT=Mt | mtonTNT=milliton of TNT | MtTNT=megatonne of TNT | mtTNT=millitonne of TNT | MW.h=MW·h | mW.h=mW·h | MWh=MWh | mWh=mWh | neV=neV | PeV=PeV | peV=peV | quad=quad | Ry=Ry | scc=scc | scf=scf | scfoot=scf | scy=scy | sl=sl | t(TNT)=t | TeV=TeV | th=th | thm-EC=thm (EC) | thm-UK=thm (UK) | thm-US=thm (US) | toe=toe | tonTNT=ton of TNT | tTNT=tonne of TNT | TtonTNT=teraton of TNT | TtTNT=teratonne of TNT | TW.h=TW·h | TWh=TWh | USgalatm=US gal·atm | W.h=W·h | Wh=Wh | µerg=µerg | µeV=µeV | µLatm=µL·atm | µlatm=µl·atm | µtonTNT=microton of TNT | µtTNT=microtonne of TNT | µW.h=µW·h | µWh=µWh | -kW.h=kW·h | btu=BTU | Calorie=Cal | ft.lbf=ft·lbf | ft·lb-f=ft·lbf | ft·lbf=ft·lbf | g-cal-15=cal15 | g-cal-IT=calIT | g-cal-th=calth | g-kcal-15=kcal15 | g-kcal-IT=kcalIT | g-kcal-th=kcalth | g-Mcal-15=Mcal15 | g-mcal-15=mcal15 | g-Mcal-IT=McalIT | g-mcal-IT=mcalIT | g-Mcal-th=Mcalth | g-mcal-th=mcalth | GW-h=GW·h | GW·h=GW·h | Hartree=Eh | hp.h=hp·h | hp·h=hp·h | in.lb-f=in·lbf | in.lbf=in·lbf | in.oz-f=in·ozf | in.ozf=in·ozf | in·lb-f=in·lbf | in·lbf=in·lbf | in·oz-f=in·ozf | in·ozf=in·ozf | kbboe=kbboe | kg-cal-15=Cal15 | kg-cal-IT=CalIT | kg-cal-th=Calth | kW-h=kW·h | kW·h=kW·h | MW-h=MW·h | mW-h=mW·h | MW·h=MW·h | mW·h=mW·h | TW-h=TW·h | TW·h=TW·h | U.S.galatm=U.S. gal·atm | uerg=µerg | ueV=µeV | uLatm=µL·atm | ulatm=µl·atm | usgalatm=US gal·atm | utonTNT=microton of TNT | utTNT=microtonne of TNT | uW-h=µW·h | uW.h=µW·h | uWh=µWh | uW·h=µW·h | W-h=W·h | W·h=W·h | µW-h=µW·h | µW·h=µW·h | μerg=µerg | μeV=µeV | μLatm=µL·atm | μlatm=µl·atm | μtonTNT=microton of TNT | μtTNT=microtonne of TNT | μW-h=µW·h | μW.h=µW·h | μWh=µWh | μW·h=µW·h
| kcal/mol=kcal/mol | kJ/mol=kJ/mol
| kWh/100 km=kW·h/100 km | kWh/100 mi=kW-h/100 mi | MJ/100 km=MJ/100 km | mpge=mpg-e | BTU/mi=BTU/mi | kJ/km=kJ/km | kWh/km=kW·h/km | kWh/mi=kW·h/mi | MJ/km=MJ/km | mpg-e=mpg-e
| BTU/lb=BTU/lb | cal/g=cal/g | GJ/kg=GJ/kg | J/g=J/g | kcal/g=kcal/g | kJ/g=kJ/g | kJ/kg=kJ/kg | ktonTNT/MT=kiloton of TNT per metric ton | ktTNT/t=kilotonne of TNT per tonne | MtonTNT/MT=megaton of TNT per metric ton | MtTNT/MT=megatonne of TNT per tonne | TJ/kg=TJ/kg | Cal/g=Cal/g
| BTU/cuft=BTU/cu ft | Cal/12USoz(mL)serve=Cal/12 US fl oz (355 mL) serving | Cal/12USoz(ml)serve=Cal/12 US fl oz (355 ml) serving | Cal/12USozserve=Cal/12 US fl oz serving | Cal/USoz=Cal/US fl oz | kJ/L=kJ/L | kJ/l=kJ/l | kJ/ml=kJ/ml | MJ/m3=MJ/m3
| g/km=g/km | g/mi=g/mi | gCO2/km=g(CO2)/km | gCO2/mi=g(CO2)/mi | kg/km=kg/km | kgCO2/km=kg(CO2)/km | lb/mi=lb/mi | lbCO2/mi=lb(CO2)/mi | oz/mi=oz/mi | ozCO2/mi=oz(CO2)/mi
| cuft/a=cu ft/a | cuft/d=cu ft/d | cuft/h=cu ft/h | cuft/min=cu ft/min | cuft/s=cu ft/s | cumi/a=cu mi/a | cuyd/h=cuyd/h | cuyd/s=cu yd/s | Goilbbl/a=Gbbl/a | impgal/h=imp gal/h | impgal/min=imp gal/min | impgal/s=impgal/s | km3/a=km3/a | km3/d=km3/d | koilbbl/a=kbbl/a | koilbbl/d=kbbl/d | L/h=L/h | L/min=L/min | L/s=L/s | m3/a=m3/a | m3/d=m3/d | m3/h=m3/h | m3/min=m3/min | m3/s=m3/s | Moilbbl/a=Mbbl/a | Moilbbl/d=Mbbl/d | oilbbl/a=bbl/a | oilbbl/d=bbl/d | Toilbbl/a=Tbbl/a | U.S.gal/d=US gal/d | U.S.gal/h=U.S. gal/h | U.S.gal/min=U.S. gal/min | USgal/a=US gal/a | USgal/d=US gal/d | USgal/h=US gal/h | USgal/min=US gal/min | USgal/s=USgal/s | ft3/a=cu ft/a | ft3/d=cu ft/d | ft3/h=cu ft/h | ft3/s=cu ft/s | Gcuft/a=cu ft/a | Gcuft/d=cu ft/d | kcuft/a=cu ft/a | kcuft/d=cu ft/d | kcuft/s=cu ft/s | Mcuft/a=cu ft/a | Mcuft/d=cu ft/d | Mcuft/s=cu ft/s | m³/s=m3/s | Tcuft/a=cu ft/a | Tcuft/d=cu ft/d | u.s.gal/min=U.S. gal/min | usgal/min=US gal/min
| -LTf=LTf | -STf=STf | dyn=dyn | g-f=gf | gf=gf | gr-f=grf | grf=grf | kdyn=kdyn | kg-f=kgf | kgf=kgf | kp=kp | L/T-f=L/Tf | L/Tf=L/Tf | lb-f=lbf | lbf=lbf | lb(f)=lb | LT-f=LTf | LTf=long ton-force | Mdyn=Mdyn | mdyn=mdyn | mg-f=mgf | mgf=mgf | Mp=Mp | mp=mp | N=N | oz-f=ozf | ozf=ozf | p=p | pdl=pdl | S/T-f=S/Tf | S/Tf=S/Tf | ST-f=STf | STf=short ton-force | t-f=tf | tf=tf | dyne=dyn | newtons=N | poundal=pdl | tonne-force=tf
| impgal/mi=imp gal/mi | km/L=km/L | km/l=km/l | L/100 km=L/100 km | l/100 km=l/100 km | L/km=L/km | l/km=l/km | mi/impqt=mi/imp qt | mi/U.S.qt=mi/U.S. qt | mi/USqt=mi/US qt | mi/usqt=mi/US qt | mpgimp=mpg-imp | mpgus=mpg-US | U.S.gal/mi=U.S. gal/mi | usgal/mi=US gal/mi | L/100km=L/100 km | l/100km=l/100 km | mpgU.S.=mpg-U.S. | mpgu.s.=mpg-U.S. | mpgUS=mpg-US | USgal/mi=US gal/mi
| cm/km=cm/km | ft/mi=ft/mi | ft/nmi=ft/nmi | in/ft=in/ft | in/mi=in/mi | m/km=m/km | mm/km=mm/km | mm/m=mm/m
| admi=nmi (admiralty) | AU=AU | Brnmi=(Brit) nmi | bu=bu | ch=ch | chain=chain | dpcm=dot/cm | dpi=DPI | fathom=fathom | foot=ft | ft=ft | furlong=furlong | Gly=Gly | Gpc=Gpc | hand=h | in=in | inabbreviated=in | kly=kly | kpc=kpc | LD=LD | league=league | ly=ly | m=m | mi=mi | mil=mil | Mly=Mly | Mpc=Mpc | NM=NM | nmi=nmi | oldUKnmi=nmi | oldUSnmi=nmi | pc=pc | perch=perch | pitch=µm | pole=pole | pre1954U.S.nmi=(pre-1954 U.S.) nmi | pre1954USnmi=(pre-1954 US) nmi | rd=rd | royal cubit=cu | rtkm=km | rtmi=mi | shaku=shaku | sm=sm | smi=mi | sun=sun | thou=thou | verst=verst | yd=yd | µin=µin | Å=Å | Hz=Hz | -ft-frac=ft | -in-stiff=in | -m-frac=m | -m-stiff=m | 100km=100 km | admiralty nmi=nmi | angstrom=Å | feet=ft | hands=h | inch=in | light-year=ly | meter=m | meters=m | metre=m | metres=m | micrometre=µm | mile=mi | miles=mi | parsec=pc | rod=rd | smoot=sm | uin=µin | yard=yd | yards=yd | yds=yd | μin=µin
| dtex=dtex | kg/cm=kg/cm | kg/m=kg/m | lb/ft=lb/ft | lb/yd=lb/yd
| A/m=A/m | kA/m=kA/m | MA/m=MA/m | Oe=Oe
| -Lcwt=cwt | -Scwt=cwt | -ST=ST | carat=carat | drachm=drachm | dram=drachm | dwt=dwt | DWton=deadweight ton | DWtonne=deadweight tonne | g=g | gr=gr | Gt=Gt | impgalh2o=imp gal H2O | kt=kt | lb=lb | Lcwt=long hundredweight | long cwt=long cwt | long qtr=long qtr | LT=long ton | lt=LT | metric ton=metric ton | MT=t | Mt=Mt | oz=oz | ozt=ozt | pdr=pdr | qtr=qtr | Scwt=short hundredweight | short cwt=short cwt | short qtr=short qtr | ST=short ton | shtn=sh tn | shton=ton | solar mass=M☉ | st=st | t=t | tonne=t | troy pound=troy pound | usgalh2o=US gal H2O | viss=viss | billion tonne=t | kilogram=kg | kilotonne=kt | lbs=lb | lbt=troy pound | lcwt=long hundredweight | long ton=long ton | mcg=µg | million tonne=t | scwt=short hundredweight | short ton=short ton | stone=st | thousand tonne=t | tonnes=t
| g-mol/d=g-mol/d | g-mol/h=g-mol/h | g-mol/min=g-mol/min | g-mol/s=g-mol/s | gmol/d=gmol/d | gmol/h=gmol/h | gmol/min=gmol/min | gmol/s=gmol/s | kmol/d=kmol/d | kmol/h=kmol/h | kmol/min=kmol/min | kmol/s=kmol/s | lb-mol/d=lb-mol/d | lb-mol/h=lb-mol/h | lb-mol/min=lb-mol/min | lb-mol/s=lb-mol/s | lbmol/d=lbmol/d | lbmol/h=lbmol/h | lbmol/min=lbmol/min | lbmol/s=lbmol/s | mmol/s=mmol/s | mol/d=mol/d | mol/h=mol/h | mol/min=mol/min | mol/s=mol/s | µmol/s=µmol/s | umol/s=µmol/s | μmol/s=µmol/s
| /acre=/acre | /ha=/ha | /sqcm=/cm2 | /sqin=/in2 | /sqkm=/km2 | /sqmi=/sq mi | PD/acre=/acre | PD/ha=/ha | PD/sqkm=/km2 | PD/sqmi=/sq mi | /cm2=/cm2 | /in2=/in2 | /km2=/km2 | pd/acre=/acre | pd/ha=/ha | PD/km2=/km2 | pd/km2=/km2 | PD/km²=/km2 | pd/sqkm=/km2 | pd/sqmi=/sq mi
| /l=/l | /USgal=/U.S. gal | /usgal=/U.S. gal
| bhp=bhp | Cal/d=Cal/d | Cal/h=Cal/h | cal/h=cal/h | CV=CV | hk=hk | hp=hp | hp-electric=hp | hp-electrical=hp | hp-metric=hp | ihp=ihp | kcal/h=kcal/h | kJ/d=kJ/d | kJ/h=kJ/h | PS=PS | shp=shp | W=W | BTU/h=BTU/h | Btu/h=Btu/h | BHP=bhp | btu/h=BTU/h | HP=hp | Hp=hp | hp-mechanical=hp | IHP=ihp | SHP=shp | whp=hp
| hp/lb=hp/lb | hp/LT=hp/LT | hp/ST=hp/ST | hp/t=hp/t | kW/kg=kW/kg | kW/t=kW/t | PS/t=PS/t | shp/lb=shp/lb | hp/tonne=hp/tonne | kW/tonne=kW/tonne
| -lb/in2=lb/in2 | atm=atm | Ba=Ba | bar=bar | dbar=dbar | inHg=inHg | kBa=kBa | kg-f/cm2=kgf/cm2 | kg/cm2=kg/cm2 | kgf/cm2=kgf/cm2 | ksi=ksi | lbf/in2=lbf/in2 | mb=mb | mbar=mbar | mmHg=mmHg | Pa=Pa | psf=psf | psi=psi | Torr=Torr | N/cm2=N/cm2 | N/m2=N/m2 | g/cm2=g/cm2 | g/m2=g/m2 | kg/ha=kg/ha | kg/m2=kg/m2 | lb/1000sqft=lb/1000 sq ft | lb/acre=lb/acre | lb/sqft=lb/sq ft | lb/sqyd=lb/sq yd | LT/acre=long ton/acre | MT/ha=t/ha | oz/sqft=oz/sq ft | oz/sqyd=oz/sq yd | ST/acre=short ton/acre | t/ha=t/ha | tonne/acre=t/acre | tonne/ha=t/ha | kgfpsqcm=kgf/cm2 | kgpsqcm=kg/cm2 | kN/m2=kPa | lb/in2=lbf/in2 | torr=Torr
| cm/h=cm/h | cm/s=cm/s | cm/year=cm/year | foot/s=ft/s | ft/min=ft/min | ft/s=ft/s | furlong per fortnight=furlong per fortnight | in/h=in/h | in/s=in/s | in/year=in/year | isp=s | km/d=km/d | km/h=km/h | km/s=km/s | kn=kn | kNs/kg=kN-s/kg | m/min=m/min | m/s=m/s | Mach=Mach | mi/d=mi/d | mi/s=mi/s | mm/h=mm/h | mph=mph | Ns/kg=N-s/kg | si tsfc=g/(kN·s) | tsfc=lb/(lbf·h) | cm/y=cm/year | cm/yr=cm/year | in/y=in/year | in/yr=in/year | knot=kn | knots=kn | kph=km/h | mi/h=mph | mm/s=mm/s
| C=°C | F=°F | K=K | keVT=keV | MK=MK | R=°R | Celsius=°C | °C=°C | °F=°F | °R=°R
| C-change=°C | F-change=°F | K-change=K | °C-change=°C | °F-change=°F
| century=ha | d=d | decade=daa | dog year=dog yr | fortnight=fortnight | h=h | long billion year=Ta | millennium=ka | milliard year=Ga | million year=Ma | min=min | month=month | months=mo | s=s | short billion year=Ga | short trillion year=Ta | thousand million year=Ga | wk=week | year=a | years=yr | byr=Ga | day=d | days=d | dog yr=dog yr | Gyr=Ga | hour=h | hours=h | kMyr=Ga | kmyr=Ga | kyr=ka | long byr=Ta | minute=min | minutes=min | mth=month | Myr=Ma | myr=Ma | second=s | seconds=s | tmyr=Ga | tryr=Ta | tyr=ka | week=week | weeks=week | yr=a
| kg.m=kg·m | kgf.m=kgf·m | kgm=kg·m | lb-fft=ft·lbf | lb.ft=lb·ft | lb.in=lb·in | lbfft=lbf·ft | lbft=lb·ft | m.kg-f=m·kgf | m.kgf=m·kgf | mN.m=mN·m | Nm=N·m | kN/m=kN/m | lbf/in=lbf/in | lb-f.ft=ft·lbf | lb-f·ft=ft·lbf | lbf.ft=lbf·ft | lbf·ft=lbf·ft | lb·ft=lb·ft | mkg-f=m·kgf | mkgf=m·kgf | N.m=N·m | N·m=N·m
| -12USoz(mL)serve=12 US fl oz (355 mL) serving | -12USoz(ml)serve=12 US fl oz (355 ml) serving | -12USozserve=12 US fl oz serving | acre foot=acre·ft | acre ft=acre·ft | AUtbsp=AU tbsp | bdft=bd ft | board feet=board foot | board foot=board foot | cc=cc | CID=cu in | cord=cord | cufoot=cu ft | cuft=cu ft | cuin=cu in | cumi=cu mi | cuyd=cu yd | firkin=firkin | foot3=cu ft | Goilbbl=Gbbl | gr water=gr H2O | grt=grt | impbbl=imp bbl | impbsh=imp bsh | impbu=imp bu | impgal=imp gal | impgi=gi | impkenning=kenning | impoz=imp fl oz | imppk=pk | imppt=imp pt | impqt=imp qt | kilderkin=kilderkin | koilbbl=kbbl | L=L | l=l | m3=m3 | Mbbl=Mbbl | MMoilbbl=MMbbl | Moilbbl=Mbbl | MTON=MTON | MUSgal=million US gal | oilbbl=bbl | stere=stère | Toilbbl=Tbbl | USbbl=US bbl | USbeerbbl=US bbl | USbsh=US bsh | USbu=US bu | USdrybbl=US dry bbl | USdrygal=US dry gal | USdrypt=US dry pt | USdryqt=US dry qt | USflgal=US fl gal | USgal=US gal | USgi=gi | USkenning=US kenning | USmin=US min | USoz=US fl oz | USpk=US pk | USpt=US pt | USqt=US qt | USquart=US qt | UStbsp=US tbsp | winecase=case | *U.S.drygal=U.S. dry gal | *U.S.gal=U.S. gal | +USdrygal=US dry gal | +usfloz=US fl oz | +USgal=US gal | +USoz=US fl oz | @impgal=imp gal | acre feet=acre·ft | acre-feet=acre·ft | acre-ft=acre·ft | acre.foot=acre·ft | acre.ft=acre·ft | acre·foot=acre·ft | acre·ft=acre·ft | bushels=US bsh | cid=cu in | ft3=cu ft | gal=US gal | Gcuft=cu ft | impfloz=imp fl oz | Impgal=imp gal | in3=in3 | kcuft=cu ft | kcum=m3 | km3=km3 | liter=L | liters=L | litre=L | litres=L | Mcuft=cu ft | Mcum=m3 | Mft3=cu ft | mi3=cu mi | m3=m3 | Pcuft=cu ft | Tcuft=cu ft | Tft3=cu ft | U.S.bbl=U.S. bbl | U.S.beerbbl=U.S. bbl | U.S.bsh=U.S. bsh | U.S.bu=U.S. bu | U.S.drybbl=U.S. dry bbl | U.S.drygal=U.S. dry gal | U.S.drypt=U.S. dry pt | U.S.dryqt=U.S. dry qt | U.S.flgal=U.S. fl gal | U.S.floz=U.S. fl oz | U.S.gal=U.S. gal | u.s.gal=U.S. gal | U.S.gi=gi | U.S.kenning=U.S. kenning | U.S.oz=U.S. fl oz | U.S.pk=U.S. pk | U.S.pt=U.S. pt | U.S.qt=U.S. qt | usbbl=US bbl | usbeerbbl=US bbl | usbsh=US bsh | usbu=US bu | usdrybbl=US dry bbl | usdrygal=US dry gal | usdrypt=US dry pt | usdryqt=US dry qt | USfloz=US fl oz | usfloz=US fl oz | USGAL=US gal | usgal=US gal | usgi=gi | uskenning=US kenning | usoz=US fl oz | uspk=US pk | uspt=US pt | usqt=US qt | yd3=cu yd
| cuft/sqmi=cu ft/sq mi | m3/ha=m3/ha | m3/km2=m3/km2 | U.S.gal/acre=U.S. gal/acre | USbu/acre=US bushel per acre | USgal/acre=US gal/acre
| cuyd/mi=cu yd/mi | m3/km=m3/km
I had thought that setting warnings=0 in Val/unitsfromconvert would have suppressed the message and just output the unit but it doesn't seem to. -- WOSlinker (talk) 10:21, 24 December 2013 (UTC)
- A warning can only be disabled if the problem does not prevent valid output. Because an unknown unit has no valid output, it's an error that cannot be disabled. What do you need? With some new option, disp=unit would display the unit if valid, or the input unit code if it is not known? Are other options involved like lk=on? Is anything else needed like also showing a value while suppressing an error message? If you have suggested syntax, let me know, or I'll think about it. Johnuniq (talk) 10:57, 24 December 2013 (UTC)
Here is a test of a very q&d modification I just made to Module:Convert/sandbox:
{{convert/sandbox|1|abcd|test=noerror}}
→ 1 abcd[convert: unknown unit]{{convert/sandbox|2|abcd|test=noerror|disp=unit}}
→ abcd[convert: unknown unit]{{convert/sandbox|2|abcd|test=noerror|lk=on|disp=unit}}
→ abcd[convert: unknown unit]
The option "test" is an exception that does not require translation in convert/text, so I used it. If a better name is devised ("error=ignore"?) that can be used, but it would have to be defined properly in convert/text. Using test=noerror means an unknown input unit is assigned a dummy unit of type length, with scale 1. Is this useful? Johnuniq (talk) 11:39, 24 December 2013 (UTC)
- Yes, that would work. -- WOSlinker (talk) 11:43, 24 December 2013 (UTC)
- Good, but are you ready to say exactly what should be done? Are any other tricks needed for {val}? I used input value 2 above to show that the dummy unit suppresses adding an "s" to make a plural name. I guess that is wanted, and/or you don't care because {val} will always use 1? The trick will only ignore an unknown-unit error when looking up the input, but other errors like specifying a nonexistent output unit would cause an error. I guess that's ok? Does any option spring to mind, or will I make something up? Johnuniq (talk) 11:51, 24 December 2013 (UTC)
@WOSlinker: What do you think of the following, which I have put in the module sandbox? If you can think of a better option name, let me know. Is anything else needed?
- Forget
|test=noerror
(I have removed that). - Use
|disp=unit or text
to display the input unit if known, or the input text. - Examples:
In {{val/units}}, I think you would replace the first of the following lines with the second.
|#default={{#ifexist:Template:Convert/{{{1}}}|{{convert/{{{1}}}|d=ScientificValue/LoffAonSoff}}|{{{1|}}}}} |#default={{convert/sandbox|1|{{{1}}}|disp=unit or text|abbr=on}}
For {{val/unitswithlink}}, do the same but add |lk=on
, although you would probably wait until the code is moved to the main convert module.
I replaced Template:Val/units/test with the text necessary to use Module:Convert/tester because it actually tests the results, and it is easy to add new tests. Johnuniq (talk) 10:57, 3 January 2014 (UTC)
I wonder what's in the box?
Season's greetings from Santa and her little helpers
Verily trembling, little J welcomes Bigzilla, and hopes to escape with perhaps only a pocketing. Many thanks for the greetings, and don't worry about leaving sulfur fumes ... they will dissipate, eventually. Johnuniq (talk) 20:12, 26 December 2013 (UTC)
Greetings
Hello, Johnuniq! How did the switch of the Convert template go? Smoothly enough to stick around, I see :) I must keep an eye on {{val}} and its subs to see what you guys come up with there. Once that's done, I'm probably going to delete the network of convert templates on simplewiki. Osiris (talk) 19:49, 2 January 2014 (UTC)
- HNY Osiris! I don't really understand why, but the transition to using the module seems to have passed largely unnoticed, other than by a handful of the regulars who monitor Template talk:Convert. I had anticipated that a few things would break, but the slow job queue meant that only a small number of pages were reformatted each day, and people seem to have fixed the few glitches that arose by following the error tracking categories. I can't seem to stop fiddling with the module, and there are some large changes in the sandbox which will go live in a week or two. I'm hoping WOSlinker will resume work on {val} in due course so that can be sorted out. I suggest looking back in about a month when you might consider updating the modules at Simple. Removing the old templates would involve some work, but I guess it would makes things cleaner. Let me know how you go. Johnuniq (talk) 23:08, 2 January 2014 (UTC)
- That's great! You all deserve a sincere congratulations for the hard work you've put in to make it work so well! It was no doubt a massive undertaking. No problem about the updates, I'll keep an eye on them and check back with you when they become stable (to check whether there will be anything to look out for). Happy New Year to you also :) and thank you so much for all you've done! Osiris (talk) 19:54, 3 January 2014 (UTC)
Pony!
Pony!
Congratulations! For all your hard work on the hands conversion issue, you have received a pony! Ponies are cute, intelligent, cuddly, friendly (most of the time, though with notable exceptions), promote good will, encourage patience, and enjoy carrots. Treat your pony with respect and he will be your faithful friend! Montanabw(talk) 21:50, 3 January 2014 (UTC)
To send a pony or a treat to other wonderful and responsible editors, click here.
- Hey that's great, thanks! I enjoy carrots as well—I hope we can reach an accommodation on sharing them. Johnuniq (talk) 00:35, 4 January 2014 (UTC)
This message is being sent to inform you that there is currently a discussion at Wikipedia:Administrators' noticeboard regarding an issue with which you may have been involved. Thank you.