[02:13:28] {{Special:Contributions/name}} shows the person's contributions anywhere where I put this markup. How do I achieve the same for page history? [02:17:00] Sveta: not possible, sorry [02:17:12] you'll need an extension [02:18:16] er wait [02:18:39] when did [[Special:History]] get added [02:19:19] anyway, not transcludable [02:19:23] so yeah, not possible [04:29:15] Special:History is clunky. Does not work well when there is many, many edits. [04:29:29] Although fixing that up with some css is possibly trivial. [04:29:46] Thanks for pointing it out, by the way. [08:16:15] how can i check if a particular extension is installed or not without going to 'Special:Version' pages [08:23:07] nikhilnk[m]: I don't really understand the question...what's wrong with checking Special:Version? [08:24:46] actually i'm trying to use this in a function [08:25:19] oh [08:25:35] ExtensionRegistry::getInstance()->isLoaded( 'ExtensionName' ); [08:25:36] i.e. i am trying to write a function which will do something after checking if a particular extension is installed or not [08:25:49] thanks [08:25:57] hello [08:26:28] i want to setup a faq, but i want a saas solution, could you please suggest me something? [09:09:24] How can one access a variable from one page in the "template language"? [09:09:37] from another page [09:56:59] Hi guys [09:57:04] I migrated to a new server [09:57:14] anyone knows why this can happen on discussion pages? [09:57:15] https://www.wikirio.com.br/Usu%C3%A1rio_Discuss%C3%A3o:Biantez [10:21:27] hmm. perhaps my problem was that I did not refresh semantic wiki. 93000 objects for just one site and I got multiple. great. seems like this is taking hoooours :S [10:23:10] legoktm: hey, [10:24:14] Anyone here using Semantic Mediawiki? Does one need to run rebuildData.php often? [10:25:29] class_exists( 'ReplaceTextHooks') is giving true and i have loaded the replace text extension in localsettings.php using wfloadextension but ExtensionRegistry::getInstance()->isLoaded( 'ReplaceText' ); is giving false. what could be the reason [10:29:04] am i doing something wrong? [10:29:24] http://wikimedia.7.x6.nabble.com/When-is-it-required-to-run-rebuildData-php-tc5074165.html [10:29:41] so every time I change some property I need to run the full rebuild? really? [10:30:36] while doing dev work I can't wait 2 hours for each site to rebuild if I test if things work by changing one property, that's insane [10:55:59] WikiBrazil: can't really read Portuguese, so hard to say anything about your issue [10:56:52] nikhilnk[m]: are you loading ReplaceText specifically? [10:57:58] harmaahylje: what do you mean by loading replaceText specifically? [11:03:54] harma, it's not displaying the html code. it's showing the actual html code partially. [11:04:05] not the page. [12:56:56] harma, it's not displaying the html code. it's showing the actual html code partially. [12:56:57] not the page. [12:57:03] (got disconnected) [13:13:36] nikhilnk[m]: I meant that are you loading the correct extension [13:14:14] WikiBrazil: in some comments? [13:14:29] I'd think that it is dangerous to render html in comments, if that is the case [13:14:34] mediawiki probably defaults for not doing so [13:26:07] harmaahylje the problem is only on the user discussion pages [13:26:36] everything was fine, but i migrates the site. only the discussion shows the actual html partially [13:26:38] https://www.wikirio.com.br/Usu%C3%A1rio_Discuss%C3%A3o:Biantez [13:29:43] WikiBrazil: I don't see any html on that page [13:33:28] I am trying to run wfErrorLog function for Mediawiki debugging, I created a file log file and also given its address, I followed the https://www.mediawiki.org/wiki/Manual:How_to_debug I am using Mediawiki 1.30 version but I am not getting any values in my log file Can you please help me Thank's in advance. [13:35:35] I also tried by running my localhost page but also I am not getting any values in my log file [13:35:39] wfErrorLog is generally deprecated for logging (although it should in theory still work) [13:36:00] Check that mediawiki has permission to write to the log file [13:36:41] bawolff: Yes I also gave permission acess but still not working [13:42:44] Gopa______: so the web server can now write to the file? [13:43:57] harmaahylje: Sorry I did not catch your point can you explain me in better way [13:48:06] Gopa______: you said that you gave permissions to the file, what kind of permissions? Did you give permissions to the web server user? [13:49:29] I gave permissions by using chown -R command [13:49:43] <_joe_> what's the best way to run mediawiki unit tests locally? Docker? [13:50:40] harmaahylje: the extension is working on localhost properly. But ExtensionRegistry::getInstance()->isLoaded( 'ReplaceText' ) is returning false. [13:50:51] i don't know why this is happening [13:51:18] nikhilnk[m]: is the extension loaded ReplaceText [13:51:22] or Replace1235Text [13:51:26] ReplaceMyText [13:51:46] it is ReplaceText [13:53:00] Maybe there is a way to print the whole extensionregistry [13:53:01] try that [13:55:19] Can you say me another best method for mediawiki debugging [13:55:56] Gopa______: depends on what you want to debug [13:57:39] @bawolff want to print the values in an Navigation dropdown menu in Refreshed wiki skin [13:57:54] If this is just local, quick and dirty way is [13:58:03] var_dump( $variableInQuestion ); die(); [13:59:14] bawolff: Thank's I will check method once [14:00:38] bawolff: Where those values will be dumped? [14:00:42] Otherwise, I would probably use wfDebug() (along $wgDebugToolbar = true ) or wfDebugLog() with an appropriate setting in $wgDebugLogGroups [14:00:50] Gopa______: They will be dumped in the current page [14:01:04] The page will not render, and instead you will see just the variable you are dumping [14:01:17] if you see a normal page, then that means the die() did not get executed [14:01:56] bawolff: Ya I saw a normal page [14:02:25] So maybe the page is currently cached and the code doesn't execute Or for some other reason the code is not executing [14:02:38] this may be the same reason why your previous attempt with wfErrorLog() didn't work [14:02:50] Gopa______: First thing, try hard refereshing the page (ctrl+r) [14:02:59] if that doesn't work, try doing ?action=purge to the page [14:03:26] If this is skin code though, i'd expect it to be run on every view, so hard referesh is probably the best bet [14:04:34] bawolff: Thanks I will check it once [14:35:50] hi [14:36:59] I have installed 2 extensions on my local mediaW but I cant access to them [14:37:07] How do you do so? [14:37:51] bam_: have you loaded them in localsettings.php [14:38:01] yes [14:38:11] of course [14:38:31] I can even see them if I do Special:Version [14:39:08] so what's the problem? [14:39:17] i don't understand [14:39:55] nikhilnk[m]: Are you the same as Nikhil-nk on gerrit? [14:40:24] bam_: Are you sure you understand how the extensions are supposed to be accessed? Which extensions are we talking about [14:40:29] if i access this URL http://localhost/core/index.php/Special:Version I see them on installed extension [14:40:31] yes [14:40:58] I dont know how to access locally [14:41:32] thats why I ask [14:41:34] nikhilnk[m]: For the patch - There are lots of MediaWiki extensions, so extensions are not supposed to touch the MediaWiki core files - otherwise there would be too much content in them [14:41:58] nikhilnk[m]: So what you are trying to accomplish must be done solely by editing the ReplaceText extension - not mediawiki core [14:42:00] did that make sense? [14:42:30] bawolff: yeah, i think so. [14:42:47] but i want to modify one extension and see my changes before i push my patch [14:43:17] bam_: Which extension is this? [14:43:25] Page Forms [14:43:31] for GSoC 2018 [14:44:13] bam_: So page forms is a big extension, it depends which part you modified [14:44:29] bam_: But you can go to pages like Special:CreateForm on your wiki [14:45:15] bam_: Have you read https://www.mediawiki.org/wiki/Extension:Page_Forms/Quick_start_guide [14:45:35] As an aside, looks like yaron is winning the popularity contest today ;) [14:45:57] bawolff: thank you so much [14:46:07] no problem :) [14:46:26] in short, if i install an extention how do I access on it? [14:46:36] or I have to read the doc [14:51:45] It depends on the extension [14:51:53] generally you have to at least skim their docs [14:52:11] extensions do all sorts of different things. Many are very different from each other [14:52:33] For extensions that add special pages, the page Special:Specialpages will list all special pages [14:53:00] ok [14:53:10] I want to test this https://phabricator.wikimedia.org/T187114 [14:54:17] i mean to set coordinates to see what it gives and from there to improve as asked in this task [14:54:44] while the ticket does have the exact syntax you need to add to a Form: page [14:58:03] add what to Form:? [14:59:41] my real matter is to access/see the googlemaps input as mentionned in the task [15:00:17] sorry, I have to go. Feel free to ask questions on the ticket if nobody else here answers [15:02:52] bawolff: you said that what i was trying to do must be done solely by editing the Replacetext Extension-not mediawiki core [15:02:54] But what i'm trying to do has nothing to do with replaceText extension(other than checking if it is installed or not). after every regular page move. i just need to show the link of ReplaceText Page at the end of result. For that(i.e. to capture the result) i need to access SpecialMovePage.php. [15:02:54] Right? [15:14:11] Sorry, Now i understand. [16:27:11] Hi guys! On mediawiki upgrade from 1.27 to 1.30, should I FTP the files from 1.30 on top of 1.27, or make a clean upload and just fix htaccess and localsettings file? [16:34:31] Does anybody authenticate with CAS? [16:34:40] I can't find a modern extension [16:37:58] I use CAS but not with MediaWiki [16:38:03] does the existing extension not work? [16:40:42] https://www.mediawiki.org/wiki/Extension:Auth_remoteuser theoretically can do CAS, but it doesn't offer much guidance on how to configure it [16:40:46] walnut_burl: ^ [16:44:09] Let me take a look [19:43:09] do mediawiki template provide an if directive that checks for page belonging to a category? or does lua do that? [19:50:33] Sveta: there are extensions which accomplish that [19:51:56] Sveta: https://www.mediawiki.org/wiki/Extension:PageInCat or https://www.mediawiki.org/wiki/Extension:CategoryTests depending on your needs [20:25:14] Skizzerz: are any of these two possible to add to a wikimedia project wiki how do you think? [20:27:17] both would likely need extensive cleanup before being added to a WMF project [20:27:56] if this is for WMF, then lua is pretty much your only option, assuming lua lets you get at that info [20:30:01] I wrote the PageInCat one [20:30:12] Its not going to be enabled on Wikimedia wikis [20:30:32] (and I wrote the CategoryTests one :P) [20:30:50] and it similarly won't without some major overhauls [20:30:56] for one, I don't mark any of those as expensive functions [20:31:08] there's also the whole desync issue [20:31:24] My really hacky work around to make it work with current revision no longer works [20:31:37] which is kind of sad. [20:32:15] Main issue I believe is visual editor people do not want any features of wikitext that cause non-local side effects [20:32:15] if I cared I could dig into parser internals which might make it work (do a pre-save transform, parse that out, check for what cats it has) [20:32:44] So both implementations will be vetoed on that ground [20:33:08] Of course, what the kids are doing now is using lua to load the wikitext of the current page, and then regexing the stuff they want to know... [20:33:32] the only non-local side effect I can think of is conditionally including categories, and you can do that with plain old #if [20:34:40] I mean having one part of wikitext effecting the other [20:34:54] They don't want people to be able to reinvent Extension:Variables basically [20:35:36] so they don't want anything like "[[category:foo]].....some other text {{#ifpageincat:Foo|do something}}" as text prior to the parser function is effecting the parser function execution [20:36:03] worse, you could have the category *later* in the text and still effect the execution :P [20:37:10] but yeah I can see how that would throw VE for a loop [20:37:23] ofc the correct fix is one that will never happen, which is moving article metadata outside of the article body [21:07:23] Hi guys! On mediawiki upgrade from 1.27 to 1.30, should I FTP the files from 1.30 on top of 1.27, or make a clean upload and just fix htaccess and localsettings file? [21:15:13] better to make a clean upload [21:15:30] making sure to copy over the images directory and the extensions (and localsettings and htaccess) [21:25:19] WikiBrazil: clean upload is preferred. Overwriting files means you may leave behind orphans, which could break your wiki -- if a file was removed between 1.27 and 1.30, your FTP won't delete it, and it'll still be there. Due to how mediawiki works, that file may still end up being loaded despite it not existing in 1.30, and therefore cause issues [23:40:52] Skizzerz: tracking master via Git fixes that, no? [23:41:11] Skizzerz: or not master, but the latest release