[09:57:57] *sigh* https://en.wikipedia.org/w/index.php?title=Special:Log/block&page=User%3A47.202.163.52 shows a block but https://en.wikipedia.org/w/api.php?action=query&list=blocks&bkip=47.202.163.52 doesn't, what am I doing wrong? [10:15:22] enterprisey: First link displays *block logs* for a user or IP. The second link displays *current blocks* for a user or IP. Note that those blocks have expired [10:15:26] hey I need some help understanding working of startup script in mediawiki [10:16:43] I was looking at a wikipedia page and it has some collapsible tables these tables don't have a show button with link in their html directly but this button is rendered by the startup script [10:17:29] Vulpix: so list=blocks only gets current blocks? is there an API call for past blocks? [10:18:02] ...please tell me that's not list=logevents [10:19:09] I can't understand how this startup script actually does that I saw something called mw.loader.register registering some modules how do you import those modules and are they present in all starter script or it is different for different pages as per their needs and how can I fetch those scripts called by startup script [10:19:32] can anyone help me with that? [10:21:19] disregard, I can just set letitle. thanks for the tip, though [10:21:39] manan: they probably did it by writing JavaScript in the MediaWiki:Common.js page [10:21:56] https://en.wikipedia.org/wiki/MediaWiki:Common.js#L-92 [10:23:06] enterprisey: thanks [10:27:28] enterprisey: I have one more question when I open wikipedia and try to look for mediaWiki:common.js I can't see it in source basically how are they loading Mediawiki:common.js through another js? and if so then how? I might have a guess but still need confirmation sorry if it's a stupid ques. still a rookie in mediawiki and wikipedia domain [10:27:41] MediaWiki:Common.js is automatically loaded [10:28:04] there are no stupid questions! [10:28:06] ok thanks [10:31:37] but if it is automatically loaded why can't I see it in sources? [10:32:37] I don't know for sure, but perhaps ResourceLoader combines it together with a bunch of other scripts [10:32:44] then it'll show up under load.php, I think [10:34:18] should be somewhere I can see it right?.....actually I was trying to scrape these pages and I am scrapping all the load.php scripts linked to it but still that particular function for collapsing is not imported I was trying to find where it is being imported inside a script so that I can automatically fetch it if present I want it to be automated you might get my point here [10:35:23] oh, there's a parameter that makes resourceloader give you unminified js [10:35:49] yup, it's debug=1 [10:35:53] that may help [10:36:02] so visit any page with the URL parameter debug=1 [10:36:14] oh ok thanks will try that [10:36:36] I would suggest looking at the event handler in inspect element for the show/hide button [10:37:03] at least that's where we put it in enwiki [10:37:11] ok let me try thank you so much you are great [10:37:35] np [10:38:06] having a really, really bad sleep schedule does have its occasional benefits, I guess [10:39:54] haha true [10:49:48] enterprisey: no change in script :( -> https://ru.wikipedia.org/w/load.php?lang=ru&modules=startup&only=scripts&raw=1&skin=vector without debug and -> https://ru.wikipedia.org/w/load.php?lang=ru&modules=startup&only=scripts&raw=1&skin=vector&debug=1 it's still minified am I doing something wrong? [10:50:39] it's debug=true for that second page, I think [10:50:41] oops [10:51:11] oh right right worked thanks [10:51:29] funny how that works [10:51:41] I got that from https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php, by the way [10:52:42] alright, good night and good luck [10:53:10] thanks amd good night [16:20:50] hey can anyone tell me where mw.hook comes from in a wikipedia page I have been trying to fund out from where it appears no load.php file seems to have this can anyone help? [16:21:01] *find [16:24:36] I was trying to scrape a wikipedia page and all other resources related to it I am able to get all resources mentioned under script tag in html but this mw.hook function seems to be missing from there all other mw related functions are present in startup script loaded from resource loader but not this hook can anyone help [17:53:57] Nikerabbit: good news: https://redmine.documentfoundation.org/issues/3440#change-21081 [18:50:32] buovjaga: nice! [18:51:41] (And I'm happy to see this channel was not overrun with spam despite letting buovjaga in!) [18:52:11] (Let's see how long our luck lasts.) [18:55:43] Hello, I am installing Wikimedia (still setting up stuff). For the Options page during installation/configuration, there are email settings. What do I put for the "Return email address"? Is this the email address that sends notifications to users? [18:56:44] Merrick919: it's the address that will be in the "From" header, most likely [18:57:08] So I can choose any domain as long as it does not already exist? [18:57:15] So you may want to make sure it's authorised to send mail, especially if your domain has SPF or DMARC enabled [18:57:25] It can be anything [18:57:33] ok, thank you [18:58:25] What really matters is the SMTP configuration https://www.mediawiki.org/wiki/Manual:$wgSMTP [18:58:52] You probably want them to agree though, otherwise nowadays spam filters will crush your email confirmation messages [19:01:19] ok, thanks again [19:16:29] I tested the import of xml in another wiki before delete and not imported all pages of the old wiki [19:18:04] How import all of the old wiki? Using alerts this: PHP Notice: Undefined index: storeDirectory in /var/www/wiki/w/includes/cache/localisation/LocalisationCache.php on line 205 [19:18:56] using dumpBackup.php* [19:23:16] Galahad: Looks like a bad configured https://www.mediawiki.org/wiki/Manual:$wgLocalisationCacheConf (missing storeDirectory) [19:23:40] A notice is not an error. You probably want to hide notices on production [19:29:42] buovjaga: I think you need to wait for 1.36 for the real fix to be released [20:47:36] hey I was trying to scrape wikipedia pages and did scrape the html and extracted resources like js and css from it and scrapped them all as well but a function named mw.hook is not scraped all other mw related functions are present in startup script loaded using load.php but not this function where does this come from and how can I get it can [20:47:36] anyone help me with that [21:03:46] manan: https://gerrit.wikimedia.org/g/mediawiki/core/+/3ecd04487af3278bd38b84b3824b6eebe4d7d955/resources/src/mediawiki.base/mediawiki.base.js#468 [21:06:48] why isn't it linked to any page how is it loaded on it's own? [21:07:45] legoktm any idea? [21:09:35] it should have been called and added to html page somewhere right? [21:09:45] also thanks for this info [21:10:45] I see it in https://en.wikipedia.org/w/load.php?lang=en&modules=ext.centralNotice.choiceData%2Cdisplay%2CgeoIP%2CkvStore%2CstartUp%7Cext.centralauth.centralautologin%7Cext.cx.eventlogging.campaigns%7Cext.eventLogging%2CnavigationTiming%2Cpopups%2CwikimediaEvents%7Cext.uls.interface%2Cpreferences%2Cwebfonts%7Cjquery%2Coojs%2Coojs-router%2Csite%7Cjquery.client%2Ccookie%2CtextSelection%7Cmediawiki.String%2CTitle%2CUri%2Capi%2Cbase%2Ccldr%2Ccookie% [21:10:45] 2Cexperiments%2CjqueryMsg%2Clanguage%2Cstorage%2Cuser%2Cutil%7Cmediawiki.editfont.styles%7Cmediawiki.libs.pluralruleparser%7Cmediawiki.page.ready%7Cmediawiki.ui.button%2Cicon%7Cmmv.bootstrap%2Chead%7Cmmv.bootstrap.autostart%7Cskins.vector.legacy.js%7Cuser.defaults&skin=vector&version=1rn1l [21:11:19] I searched for "mw.hook=" across all the minified JavaScript [21:19:14] consider this -> https://ru.wikipedia.org/wiki/%D0%A2%D0%B0%D1%80%D0%B0%D0%BD%D1%82%D0%B8%D0%BD%D0%BE,_%D0%9A%D0%B2%D0%B5%D0%BD%D1%82%D0%B8%D0%BD#%D0%A0%D0%B5%D0%B6%D0%B8%D1%81%D1%81%D1%91%D1%80%D1%81%D0%BA%D0%B8%D0%B9_%D0%BF%D0%BE%D1%87%D0%B5%D1%80%D0%BA [21:19:15] looking at source I can find only 2 js files in source one is the startup script and it has some refrence to mediawiki.base can you please help and explain me how mediawiki.base is added in these and how is it being called? so that I can automate this scrapping process [21:31:59] legoktm it would be a real help if you could do that been stuck at it for 2-3 days now might have seen my earlier comments as well on this channel [23:40:09] legoktm: (I know manan left), for what it's worth mw.hook is most likely just the first of thousands of similar errors they would have encountered. I think the question isnt how to get mw.hook, but rather how to make sure whatever they did get (which calls mw.hook + then some) is also not received. [23:40:13] less instead of more.