[00:07:56] Technical_13: [[User:Trackinfo]] modified [[User talk:Technical 13]] ( /* onlyinclude */ new section ) ▶ https://en.wikipedia.org/w/index.php?diff=596702467 [00:08:59] Technical_13: [[User:Trackinfo]] modified [[User talk:Technical 13]] ( /* onlyinclude */ ) ▶ https://en.wikipedia.org/w/index.php?diff=596702610 [00:31:32] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [+391] Update table (2 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596705514 [01:47:10] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [+405] Update table (3 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596713840 [01:57:58] Technical_13: [[User:Lowercase sigmabot III]] modified [[User talk:Technical 13]] (minor edit, bot edit Archiving 2 discussion(s) to [[User talk:Technical 13/2014/4]]) (bot ) ▶ https://en.wikipedia.org/w/index.php?diff=596714887 [01:58:00] Technical_13: [[User:Lowercase sigmabot III]] modified [[User talk:Technical 13/2014/4]] (minor edit, bot edit Archiving 2 discussion(s) from [[User talk:Technical 13]]) (bot ) ▶ https://en.wikipedia.org/w/index.php?diff=596714893 [02:14:16] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [-390] Update table (2 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596716588 [04:36:09] Technical_13: [[User:Nick-D]] modified [[User talk:Technical 13]] ( /* Wikipedia:Articles for deletion/Skilled Group */ new section ) ▶ https://en.wikipedia.org/w/index.php?diff=596728728 [05:41:01] Technical_13: [[User:CAWylie]] modified [[User:Technical 13/Drafts/Caroline Strong]] ( /* Television */ dab fix. ) ▶ https://en.wikipedia.org/w/index.php?diff=596734270 [05:49:29] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [+341] Update table (3 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596734834 [07:04:58] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/PERTable]] ( [+392] Update table (2 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596740340 [10:38:01] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [+391] Update table (4 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596756460 [13:02:21] Technical_13: [[User:Technical 13]] modified [[User talk:Technical 13]] ( /* Wikipedia:Articles for deletion/Skilled Group */ Email please. ) ▶ https://en.wikipedia.org/w/index.php?diff=596768386 [13:08:21] Technical_13: [[User:Technical 13]] modified [[User talk:Technical 13]] ( /* includeonly */ re ) ▶ https://en.wikipedia.org/w/index.php?diff=596768852 [13:22:12] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [-405] Update table (3 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596770020 [13:43:49] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/TPERTable]] ( [-391] Update table (2 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596771884 [14:20:49] Technical_13: [[User:DrKiernan]] modified [[User talk:Technical 13]] ( /* Template:Marriage */ new section ) ▶ https://en.wikipedia.org/w/index.php?diff=596775539 [14:48:17] Technical_13: [[User:Technical 13]] modified [[User:Technical 13/Logs/CSD]] ( Logging speedy deletion nomination of [[Template:Marriage/sandbox2]]. ([[WP:TW|TW]]) ) ▶ https://en.wikipedia.org/w/index.php?diff=596778214 [14:48:26] Technical_13: [[User:Technical 13]] modified [[User:Technical 13/Logs/CSD]] ( Logging speedy deletion nomination of [[Template:Marriage/sandbox3]]. ([[WP:TW|TW]]) ) ▶ https://en.wikipedia.org/w/index.php?diff=596778228 [14:48:35] Technical_13: [[User:Technical 13]] modified [[User:Technical 13/Logs/CSD]] ( Logging speedy deletion nomination of [[Template:Marriage/sandbox4]]. ([[WP:TW|TW]]) ) ▶ https://en.wikipedia.org/w/index.php?diff=596778254 [19:11:39] jackmcbarn: you arround? [19:11:44] yeah [19:11:48] I have a Lua question [19:11:56] http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Articles_for_creation/Participants/Message [19:12:33] bit busy. will look in a bit [19:12:41] Can a Lua module placed at the top of the page turn all of the grey "(Inzctive since: ...)" red if the date is greater than 1 year ago? [19:13:10] and can Lua modules get user blockinfo? [19:35:45] lua modules can't affect text that they didn't directly output, so unless the module itself outputs the inactive text, it can't control what color it is. there won't be a way to do that ever added either, since it would be equivalent to Extension:Variables [19:36:01] also, they can't currently tell if a user is blocked, but that may be added at some point [19:36:47] Technical_13: [[User:AnomieBOT]] modified [[User:AnomieBOT/PERTable]] ( [+391] Update table (3 requests) ) ▶ https://en.wikipedia.org/w/index.php?diff=596811399 [19:38:33] So Lua can't change span.inactive-old to color:red;? Meh, okay, thanks, I can do it with js that I can see (and anyone that loads the script), but I was hoping for a more eligant solution anyone could see. [19:44:55] Technical_13: it can't unless you use it to output it. though you could pass the whole page as a param to your module [19:45:14] or where the inactive since text is, use the logic that the g13 detection uses [19:45:14] HTML builder/scraper? [19:45:24] what do you mean? [19:45:53] or even just use logic like {{birth date and age}}. that's the easiest way [19:46:12] add css for span.inactive-old{color: #F00;} [19:46:21] to the page itself [19:46:35] can't add css like that [19:46:44] I can make the template add the class. [19:46:45] you can only add css via the style= tag to individual elements [19:47:00] you'd have to convince someone to add the css for the class to MediaWiki:common.css [19:47:50] so could I scrape the page for span.inactive-old, and add style="color: #F00;" to those elements? [19:48:33] I really know little about Lua... [19:48:42] if you're already adding inactive-old, then just add the css inline where you do that! [19:49:30] Yeah... I can.. Was just hoping to not have to define "-old" as one year in the template or use a parameter. [19:49:43] I'll figure it out. [19:49:59] hold on. i'll do something [19:50:07] don't edit Template:Mailing list member or you'll ec [19:55:04] no problem, if you can get an edit to go through.. [19:57:58] got the first part through, working on the second [20:10:50] Technical_13: done [20:11:01] (as of right now, every user listed as inactive has been inactive at least a year) [20:11:26] (almost every) [20:14:04] Yeah, I could have done that. one year seems to be the consensus for AfC... I'm just wondering about if other projects decide to use it for their mailing lists and want say 6 months, or two years, or none at all... [20:14:33] wrapper templates [20:15:10] That's why I wanted a Lua option so that they could at the top of the page add {{#invoke:Mailing list inactive|duration=1 year}} or what-have-you... [20:15:52] It'll work for now, my idea is kind of a proposed solution is search of a problem at this point. [20:31:43] your idea won't work, because it makes wikitext dependent on other wikitext [20:32:01] parse(a) concat parse(b) needs to be the same output as parse(a concat b) in general, which that would break [20:35:44] huh? [20:40:06] jackmcbarn: are you talking about my Lua idea or the subsequent edits I've been making to the template? [20:48:42] your idea [20:50:05] kk [20:56:28] by the way, you should try to write more readable code [20:57:08] actually, this is complicated enough it should really be in lua [21:15:05] ?? [21:15:27] You want to rewrite the template in Lua? [21:16:11] jackmcbarn: ? [21:16:18] working on it now [21:17:32] lol okay [21:19:17] jackmcbarn: http://en.wikipedia.org/w/index.php?title=Template_talk:WikiProject_Japan&diff=prev&oldid=596769612 [21:19:38] then see next edit.. [21:19:52] known bug in parsoid. should be fixed soon, nothing i can do about it [21:21:00] hence why i said to look over the edits :p [21:23:17] Not a problem.. [21:23:24] Just wanted to point it out... [21:46:37] Doing this as a module, could a "configuration" table be set at the top of the page to define minimum threshold for inactive, maximum threshold for inactive where the user should be removed, and possibly other stuff in the future jackmcbarn ? [21:46:46] Technical_13: [[User:Nick-D]] modified [[User talk:Technical 13]] ( /* Wikipedia:Articles for deletion/Skilled Group */ reply ) ▶ https://en.wikipedia.org/w/index.php?diff=596825520 [21:48:20] Technical_13: [[User:Nick-D]] modified [[User talk:Technical 13]] ( /* Wikipedia:Articles for deletion/Skilled Group */ add ) ▶ https://en.wikipedia.org/w/index.php?diff=596825709 [21:50:10] Technical_13: [[User:Technical 13]] modified [[User talk:Technical 13]] ( /* Wikipedia:Articles for deletion/Skilled Group */ re ) ▶ https://en.wikipedia.org/w/index.php?diff=596825914 [22:26:58] !ping [22:26:58] !ping $* [22:26:58] Pong. [22:26:59] * Helpmebot pings $* as it was told. [22:27:25] just making sure I wasn't DCed... [22:39:31] Technical_13: not exactly. i have a better idea [22:41:06] * Technical_13 waits... :) [22:41:40] not saying it. you'll see when it's done [22:43:00] * Technical_13 tries to remember the "shortcut" for turning 9x^3 + 3x^2 - 27x back into (#x + X)(#x - #x)... [22:43:20] been almost two years... [22:43:41] first factor out a 3x [22:46:33] Technical_13: [[User:Sta13ths17]] modified [[User talk:Technical 13]] ( Barnstar ) ▶ https://en.wikipedia.org/w/index.php?diff=596832837 [22:48:03] lol [22:49:38] There's a shortcut, that is stupid obvious, and I'll find it in just a minute... lol (digs through his Algebra 2 notebook) [22:49:58] yes, but it doesn't work until you factor out the 3x [23:13:54] Technical_13: done, have a look [23:17:21] The link to Special:Contributions isn't need on anything over the minimum threshold as Template:User already includes a "contribs" link. [23:17:35] http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Articles_for_creation/Participants/Message [23:18:00] didn't your template display it on all inactive users? [23:18:21] Nope. [23:18:35] * jackmcbarn looks [23:18:37] 31556952 isn't "1 year" either [23:19:09] yes it is [23:19:10] seconds in a year [23:19:14] 265.2425 * 86400 [23:19:17] 365* [23:19:58] there are 31536000 seconds in 3/4 years and 31622400 seconds in the leap year... [23:20:09] only 97 leap years every 400 years [23:20:54] I'm guessing Lua doesn't have the ability to know what "-1 year" is like PHP parser functions do? [23:21:03] it does, but it would slow it down unnecessarily [23:21:12] why call back into the parser when i know the value? [23:21:29] :p [23:21:32] but it's not accurate... [23:22:13] yes it is [23:22:16] what's inaccurate about it? [23:22:20] I guess the use case would be an edge case.. [23:22:29] multiply my number by 400 and you'll get the number of seconds in 400 years, exactly [23:22:46] We're not working with 400 years. [23:22:54] there's no reason to be inaccurate [23:23:05] We're working with 1-10 years [23:23:13] google for 31556952 [23:23:15] or, 1-3 [23:24:09] I'd rather see it inclusive. [23:24:19] inclusive in what way? [23:25:43] So, I would use 31536000 for the minInactive and 31622400 for the maxInaxtive or the opposite (I'm not clear headed. The range is 1-2 years marked in grey, and it should make sure that no-one that is in that 1-2 range is marked in anything other than grey. [23:26:20] maxInactive is 2 years [23:26:24] anyway, i redid that completely [23:27:03] Have you written up the /doc yet? (I barely follow Lua coding) [23:27:35] not yet [23:28:06] I'm not seeing how the outter limits are being set (just can't follow the code well enough) [23:28:29] which outer limits? [23:29:02] 1-2 year limits for Inactive... lol [23:29:07] ok [23:29:18] less than 1 year, they're green and have a contribs link and still get messages [23:29:25] 1-2 years, they're black and don't get messages [23:29:31] more than 2 years, they're red and don't get messages [23:29:54] notargetInactive controls whether they get messages and a contribs link [23:30:03] minInactive and maxInactive just control colors [23:30:13] What if a project wants their limits set to 6 - 12 months? [23:30:24] this is the good part [23:30:25] return frame:expandTemplate{title = 'Userblocked', args = { pargs.user }} .. (mismatched brakets?) [23:30:29] no [23:30:39] Nope, I see it now. [23:30:45] go ahead with the good part. [23:30:52] look at https://en.wikipedia.org/w/index.php?title=Template:Mailing_list_member&action=edit [23:31:22] they just fork that template and carry on, and still use the same module [23:31:50] Okay, so the template is SUBST: only and they change the values? [23:32:04] no [23:32:06] not subst only [23:32:10] lua can see two sets of parameters [23:32:23] it sees the set that the template passes to #invoke, and the set that the page passes to the template [23:32:39] (in my code, args is the former, pargs is the latter) [23:33:11] Set up a testcases with 6-12 months using the template, maybe I'll understand.. [23:33:17] kk [23:33:37] You can use Technical_13, Technical-13, and ShoeMaker as test users if you want (all mine) [23:37:04] Technical_13: https://en.wikipedia.org/wiki/Template:Mailing_list_member/testcases [23:37:13] i have the sandbox using a different cutoff than the main template [23:37:23] note the may and september 2012 entries [23:40:12] So, it requires a separate template for each set of limits? [23:40:15] right [23:40:26] i see [[Template:Mailing list member/AFC]] or whatever getting made [23:40:37] but i won't bother with that unless another project is interested and wants different cutoffs [23:41:28] Let me make some adjustments to the sandbox, I'd rather just have one template and be able to set the cutoffs on the template call on the page. [23:41:41] that's a maintenance nightmare [23:41:49] i set it up on purpose to not do that [23:41:59] because at that point, you might as well just say whether or not to target in the template [23:42:31] I expect hundreds of wikiprojects to set up massmessage mailing lists with this template, and would rather there wasn't hundreds of templates for the same thing... [23:43:17] My understanding is that once a table is set in Lua on a page, any subsequent call can use that table, so the limits should only need to be set once. [23:43:33] not fo every call. [23:43:34] not the case [23:43:44] if you set a table in one call, it's gone in the next call [23:43:50] everything is cleared between #invoke's [23:44:16] the reason for that is what i said earlier. parse(a) concat parse(b) needs to be the same output as parse(a concat b) in general [23:44:16] Hrmm, I'm almost certain there is a "page global" table available for just this thing. [23:44:41] there is not, because then parse(code to set page global) concat parse(rest of page) would be different than parse(code to set page global concat rest of page) [23:45:00] Let me ask around, maybe we can both learn something. :) [23:45:16] remember the reflist variables thing i built? [23:45:34] will you be upset if I say no? [23:45:44] a little, since it was about 2 weeks ago [23:45:50] * Technical_13 doesn't remember lunch 4 hours ago... [23:45:58] sigh [23:46:23] https://bugzilla.wikimedia.org/show_bug.cgi?id=61268 [23:46:32] the reason that's a bug and needs to be fixed was because it allowed passing information between #invoke's [23:47:11] i talked with anomie about this a while ago. no such functionality should exist and any that can be found will be removed/broken, because it messes up parsoid [23:47:29] Well... that ticket is still "NEW" and there is no patch, so it is still possible. [23:47:34] right [23:47:43] but if anyone caught you using that, they'd skin you alive [23:47:47] And Brad isn't in -dev... I was going to ask him about it... lol [23:49:22] What if the template was used to set the min and max and put a hidden comment in the html and then the other calls could read that comment? [23:49:38] I know it slows it down a little. [23:49:50] reading/writting html always does. [23:50:15] performance isn't the concern [23:50:27] the concern is that parsing the page in pieces wouldn't work anymore [23:52:41] actually..... [23:52:46] i do have a solution. [23:55:05] it will make it even more complicated, though. i'm going to hold off on it unless another group does want it with different parameters