[07:33:10] hi every i would like to participate in outreach 2015 winter [07:33:32] could anyone point me where should i start ? [07:34:50] Nessa05: Take a look at https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker and also get on #wikimedia-dev, not just this channel. [07:36:09] okay polybuildr Thank you i am going through the link :) [09:25:16] Hi, I need to make a small tweak to a php file, but I am not sure how to do what I require? [09:25:18] The line of code sets it to exclude ALL pages within the "Special" namespace [09:25:19] However I would like to exclude all pages in the "Special" namespace EXCEPT "Special:WikiForum" [09:25:21] I have found the relevant line, but I am not sure what I need to replace it with? [09:25:22] && strpos( $parser->getTitle()->getPrefixedText(), 'Special:' ) === false [09:25:24] && $parser->getTitle()->getNamespace() !== 8 [09:25:25] Can someone please help me? [09:25:27] Thanks. [09:32:48] hi , how do I download sq.wikipedia for offline use. this one doesn't seem to be available from https://dumps.wikimedia.org/ [09:58:28] (Already replied on #wikimedia-tech.) [12:48:02] I'm trying to get an extension to work with a specific page, but in an excluded namespace [12:48:03] I have found the relevant line in the php file, but I am not sure what I need to replace it with? [12:48:05] && strpos( $parser->getTitle()->getPrefixedText(), 'Special:' ) === false [12:48:06] So I would like to exclude all pages in the "Special" namespace EXCEPT "Special:WikiForum" [12:48:08] What do I need to change this with, please? [12:49:42] Well, I think this would work only on English wikis. That's not the smartest way to check if it's a special page [12:49:48] !class Title [12:49:48] See https://doc.wikimedia.org/mediawiki-core/master/php/html/classTitle.html [12:50:56] $parser->getTitle()->getNamespace() !== NS_SPECIAL would be better and will work for all languages [12:52:28] $parser->getTitle()->isSpecialPage() even [12:56:35] It's not my code/extension, and tbh I don't really understand php. [12:56:37] I just figured out that I need to disable it for a specific set of pages so that it parses what it needs to. :/ [12:57:06] BradLee_: for your question, I think it should be: && ( !$parser->getTitle()->isSpecialPage() || $parser->getTitle()->isSpecial( 'WikiForum' ) ) [12:57:33] I'm not sure if you should pass WikiForum, wikiforum or Wikiforum to the isSpecial() function, though [12:58:00] that would be true for non-special pages, and Special:WikiForum [12:59:20] Ok thanks. I will try that. :) [13:08:50] @Vulpix: it's not working. :/ [13:08:52] Do you want to see the full php, so you can see it's context? [13:08:54] It's posted publicly here: https://www.mediawiki.org/wiki/Extension:Emoticons [13:10:41] it uses "strpos( $parser->getTitle()->getPrefixedText(), 'Special:' )" AND "$parser->getTitle()->getNamespace() !== 8" on the same condition... [13:10:46] * Vulpix cries [13:12:04] also... global $action; WTF [13:13:15] not *my* code [13:13:41] bad is it? [13:17:19] bad code, if it at least works... [13:19:31] Oh, it works [13:19:33] I just need it to work in the excluded namespace [13:19:34] And if I comment the line out, then it works in Special:WikiForum [13:19:36] But can potentially break other special pages [13:19:37] Hence why I guess it was excluded in the first place? [13:21:55] I would've shoved it under the nose of one of my coders to fix for me, but unfortunately they are all booked up :/ [13:29:47] @Vulpix: Nevermind if it is not a quick fix though. I don't want to put you out. [13:31:23] BradLee_: so it didn't work? weird [13:37:14] actually i take that back [13:37:15] i think it *is* working [13:37:17] i just needed to clear the browser cache [13:38:40] ah, good [13:39:32] thanks :) [13:39:53] I think the isSpecial arg should be 'Wikiforum', not WikiForum, at least when I've tested it with another special page [13:42:21] WikiForum seems to be working for me. [13:43:31] ok, eave that as it is, then [13:43:35] *leave [13:44:16] Yeah, will do. [13:52:12] @Vulpix: Thanks again. I really appreciate it. ;) [13:52:21] yw :)