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? ;)
- Oh yeah, you're informally now appointed the Metrics Coordinator, so congratulations!! We can talk more later about how to make that easy and rewarding on your end, but I want you involved, most definitely. Cheers, and thank you for your work, Ocaasi t | c 14:33, 18 December 2013 (UTC)
- OK, I'll look at the JSTOR issue soonish. Poke me if I forget because there's a few things going on. Johnuniq (talk) 20:28, 18 December 2013 (UTC)
- Oh yeah, you're informally now appointed the Metrics Coordinator, so congratulations!! We can talk more later about how to make that easy and rewarding on your end, but I want you involved, most definitely. Cheers, and thank you for your work, Ocaasi t | c 14:33, 18 December 2013 (UTC)
@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) |
- Thanks, that's stunning, and very much appreciated! Johnuniq (talk) 20:26, 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}} - Template:Val/unitsfromconvert
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)
- I'll look at it in a bit more detail & get back to you after christmas. -- WOSlinker (talk) 11:56, 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)
test
should not be used in mainspace. Stay clean. -DePiep (talk) 13:37, 24 December 2013 (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)