[00:42:48] hi i was checking to upgrade parserfunctions but the readme on git says 1.40 how do i know about latest version? [03:26:30] Join [03:27:02] Open [04:13:36] Hi biberao. [04:13:55] biberao: If anything says "MediaWiki version 1.40", it's probably a typo? [12:42:12] Ursula: 1.4.0 sorry [13:49:01] Ah. [14:59:30] Is there any way to determine how many users have contributed to a mediawiki install other than running select count(*) from user where `user_editcount` > 0? [15:06:22] to be fair that should be quick enough for a one-off thing [15:06:39] on an enwiki replica that took me 41.48 sec [15:06:49] 10,300,597 users [15:08:23] mine ran.. just a BIT quicker. But that's a fairly accurate estimate without going all forensic on stuff? [15:19:25] Ulfr: seems fine if all you're after is an estimate [15:20:30] I'm about 80% sure that user_editcount is not decremented if an edit is deleted, so that figure will include users who contributed to the site but their contributions were subsequently deleted (e.g. spambots) [15:21:25] hi [15:22:57] i have a template giving none results because that page doesnt exist... its a none link...how can i have like an if result = replace it with the name [15:23:14] its a template that gets a name transforms it into a link [15:23:42] so instead of getting the link it would give me like the fullname with a red color nonexist or the name itself [15:24:43] please [15:39:22] Hi, is there a way i can chnage a files owner (as in the File:) not the backend? [15:45:25] your question makes no sense to me [15:45:51] mediawiki has no concept of an "owner" of a page [15:46:58] Skizzerz: please ideas? [15:46:58] :D [15:47:34] biberao: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##ifexist [15:48:44] (or the other functions on that page, note you'll need to have the ParserFunctions extension installed) [15:52:39] still couldnt make it work [15:52:39] damn [15:56:47] Skizzerz hmm, i mean the file uploader (ie the person who uploaded the image) [15:57:44] paladox: you'll need an extension or to modify the db manually [15:57:56] ah ok, do you know the db command? [15:58:01] not offhand [15:58:05] oh ok [15:58:13] it'd be a fairly straightforward UPDATE statement [16:01:43] {{team|{{{team}}}|rightshortlinked}}}} <- non existent teams it gives [[none]] <- a link called "none" [16:01:59] tried this {{#vardefine:team_attempt|{{team|{{{team}}}|rightshortlinked}}}} [16:02:00] {{#ifeq:{{#var:team_attempt}}|none|{{#vardefine:team_attempt|[[{{{team|}}}]]}}}}{{#var:team_attempt}} [16:02:22] maybe i could replace it with a ifexist [16:02:30] but none wont clear the none [16:03:06] none is not the same as [[none]] [16:03:37] I recommend not generating links until the very end, dealing only with the page name itself before then [16:04:04] explain [16:04:05] please [16:04:39] is there an option for me? [16:04:48] yes, rewrite your template [16:05:12] how so [16:05:23] I can't help more than that because I don't know what you're trying to accomplish and I don't have the time to spend writing templates for other people [16:05:51] like theres a template called team that has that |rightshortlinke option [16:06:24] so we get the team and put on that weird again template to rewrite and then display [16:06:33] but 1) you probably don't need vardefine/var at all, and 2) returning random links for error conditions is usually not a good idea [16:06:53] i tried with if [16:07:03] i managed to return names at the end [16:07:22] but was trying to return the image and name linked if yes and a red link if not [16:10:24] ideas? [16:15:32] why do you need an if then? [16:15:41] providing a red link if it doesn't exist is the default... [16:17:35] because if it goes through the team template again [16:17:45] theres an image and link with rightshortlinked [16:43:48] hello. Are some JS or jQuery experts around? I have a problem with handling events on a wiki page. [16:45:42] I have a script which makes certain DHTML modifications, but I don’t know how to make it run after updates in the new Special:Watchlist. [16:46:32] I found no hooks related to Watchlist in https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/mw.hook [16:48:10] Skizzerz i think i found the 2 tables, but even updating them, it's still showing the wrong user (127.0.0.1) [16:50:24] Of course, I could redefine the action on the [↻ latest changes] button, but it is a poor design and anyway will not work with automatic updates. [16:50:26] im not sure why though [17:57:59] is this IRC channel defunct? [17:58:49] no but patience is a virtue :P [18:01:16] qq[IrcCity]: Why should it be?