[04:21:01] i'm trying to update a very old extension to work with modern mediawiki. it had a form which posts to a custom php entry point which manually loaded includes/user/User.php - this approach doesn't seem to work anymore for many reasons. what's the best strategy for replacing this? [05:33:05] yar: maybe you don't need to use the custom entry oint? change it to an API endpoint? [05:33:23] then you'll be inside mediawiki proper, and can use everything normally [09:27:24] How can I insert code snippets into a wiki article? I couldn't find it via google [09:29:53] All I find is things like this https://www.mediawiki.org/wiki/Snippets or this https://www.mediawiki.org/wiki/Manual:Code [09:30:06] I just want to have a source code listing in the article [09:31:46] i.e. that does not wrap long lines but makes a scroll box [09:31:53] you know what I mean? [09:33:28] hello, is anyone here using Polyglot extension in their site? [09:45:19] Im so lost. I ended up here while trying to commit on apache can anyone advise? [10:36:38] I don't think there is anyone here who can help [11:06:12] what does this mean with "magic redirect": iw_local: whether the wiki is local, and the "magic redirect" mechanism should apply. Defaults to false. [13:23:46] what does this mean with "magic redirect": iw_local: whether the wiki is local, and the "magic redirect" mechanism should apply. Defaults to false. [14:18:00] Hi. I need some help about DjVu thumbnails not being generated, instead the DjVu "logo" appears. I've checked the logs and I don't see anything indicating an error, so I'm not sure how to proceed [15:27:09] Hi! Is there a way to give bureaucrat rights to a user without using another bureaucrat user? Through Localsettings.php or another setting file? [15:28:20] SirLouen: if you have a redirect page to an interwiki link where iw_local is set, then you will actually be redirected (via HTTP 302) to the other site [15:28:39] if iw_local is not set, then it will just display the redirect page (as if redirect=no was specified in the URL) [15:29:05] stormi: the createAndPromote.php maintenance script is what you'd be after [15:29:26] Skizzerz: thanks [15:29:27] see https://www.mediawiki.org/wiki/Manual:CreateAndPromote.php for more details [15:29:42] (despite the name, it can be used to give sysop/bcrat to an existing account) [15:29:57] Skizzerz: you mean a REDIRECT tag in the page? [15:30:03] SirLouen: yes [15:30:29] but why it says "magic redirect" [15:30:49] because normal wiki redirects don't send you off to completely different sites [15:31:10] ok, i see now [15:32:12] so with if iw_local it just permits the redirect to outside interwiki pages [15:32:31] it also works with external links TO the wiki [15:32:44] e.g. if you visit a page name yourwiki.example/wiki/iw:Page [15:32:49] where iw is an interwiki prefix [15:32:51] it will redirect you [15:33:47] if iw is interwiki.com and you go to yourwiki.example/iw:Page then it will redirect to interwiki.com/Page [15:34:03] sure [15:34:16] in case iw_local is not set then it will send you where? [15:34:37] it'll try to resolve iw: as a namespace [15:34:40] to a page called iw:Page ? [15:34:45] or failing that a page named iw:Page in the main namespace [15:36:03] so in this case interwiki > namespace > page [15:36:49] Skizzerz: have you used Polyglot ? [15:36:53] nope [15:36:56] sorry [15:37:25] ok, it looks confusing [15:37:54] i'm thinking if it's a better idea to use a wiki farm instead of that extension [15:38:08] farms are complicated too :) [15:38:26] for multiple language wiki (not translations) [15:38:47] but if you want to try, go for it [15:42:21] it's difficult to decide, because as far as i've read as you say, it's difficult also to maintain [16:58:19] how can I delete a page which doesn't exist? It's listed in AllPages with an underscore at the end of the url, which does a 301 redirect to a the url without an underscore which loads a not yet created page. [16:59:44] get the page id from the database? [16:59:57] or from the api [16:59:58] Reedy: ok, and what do I do with it? [17:00:21] The API can delete by page id [17:00:52] Reedy: ok. thanks. will do that. [17:01:09] backstory: some spammer created it. [17:03:03] I'm not sure if it would work, but you may try loading index.php?curid=99999&action=delete (where 99999 is the page id) [17:04:34] sadly nukePage.php seems to accept only a title and not a page id [17:05:04] heh, that might work [17:05:09] But the api sandbox makes it relatively easy [17:38:22] Hey, I was in here yesterday and bawolff codezee and Vuplix helped me by suggesting wfShellExec and wfEscapeShellArg to trigger script execution from the wiki on IIS. [17:39:16] I wanted to let you know I was able to test it out and it works great on IIS 8 with Mediawiki 1.26.3 [17:42:05] The only issue I did run into was the delay while the script was executing and Windows doesn't like to cooperate with detaching processes, at least in python. So I was able to create and event and trigger another script from task manager on that event. [17:42:09] It works great. [17:42:10] Thanks! [17:43:15] cool [17:54:03] Vulpix: the index url works, thx [17:56:43] Vulpix: actaually, didn't work. [18:26:13] hi [18:26:41] There are Russian speakers? [22:24:40] mooeypoo: Hi