[01:54:06] hi, is there a way how to make a wiki link to Special:AllPages with option not to show redirects? [01:55:38] hi [01:55:44] i have a similar issue [01:56:12] you can add a css but i am having a bug as related to the css hack [01:57:40] css hack for this? I don't understand [01:57:41] trying to find the info [01:58:35] .page-Main_Page #contentSub { display: none } [01:58:44] in MediaWiki:Common.css [01:59:07] where Main_Page is the page you want it to effect [01:59:30] but when i install this hack it only works after you reload the page but not when you first load the page... [01:59:56] see also http://stackoverflow.com/questions/10942281/how-to-remove-text-redirected-from-main-page-in-mediawiki [02:01:26] snowkidind: you mean I should create redirect for sth like index.php?title=Special%3AAllPages&from=&to=&namespace=0&hideredirects=1 ? [02:02:12] snowkidind: otherwise I really don't understand how is it related to my question [02:02:48] I mean how to create a wiki link to a special page with some options chosen, wiki link I mean [[Special:AllPages#some options|link]] [02:03:30] sorry i thought you meant something else i am still learning [02:06:43] snowkidind: found this by accident: https://commons.wikimedia.org/wiki/Special:AllPages?hideredirects=1 [02:06:53] oops, wrong person [02:06:56] auvajs: ^ [02:08:41] auvajs: https://commons.wikimedia.org/wiki/Special:AllPages?hideredirects=1&from=foo+bar&to=bar+foo&namespace=5 [02:08:51] If you use inspect element, you can find the ID's of the various form fields on the page [02:08:57] you can use those in the URL as querystrings [02:11:05] GEOFBOT: {{fullurl:Special:AllPages|hideredirects=1}} seems to work but that isn't a wiki link but URL link [02:12:29] auvajs: WIkilinks can't have querystrings, but there's a template for it https://en.wikipedia.org/wiki/Template:Querylink [02:13:37] AFAICT all it does is disguise a url with querystring as a wikilink so it isn't marked as external [02:14:59] yup, I'll copy the code to my website, tnx [02:18:09] where is the class plainlinks defined? Can't find it in MediaWiki:Common.css on en.wikipedia [07:29:29] Hello, my mediawiki supports both https and hppt. How to make Google know and prefer only https? [07:29:35] *http [07:29:39] sorry for the mistype [07:53:26] legoktm: how is the vendor autoload supposed to be done with extension registration: re https://www.mediawiki.org/wiki/Manual:External_libraries [08:11:29] gleki: https://www.mediawiki.org/wiki/Manual:$wgCanonicalServer [08:12:58] gleki: but note that even for wikipedia, google sometimes still lists http results... we aren't entirely sure how that all works on the google side. [08:48:03] I am getting this error when I try to ssh into gerrit. "ssh: Could not resolve hostname gerrit.wikimedia.org: Name or service not known". Can someone help? [09:06:56] anmolkalia: why are you ssh-ing into gerrit? [10:05:40] Reedy: It is required as mentioned in https://www.mediawiki.org/wiki/Wikimedia_Apps/Team/Wikipedia_Android_app_hacking [10:26:31] anmolkalia: Not exactly it isn't [10:26:34] What command are you running? [10:27:11] git clone ssh://@gerrit.wikimedia.org:29418/apps/android/wikipedia [10:27:19] well, that's not exactly sshing in :) [10:27:27] Can you visit the web interface in your browser ok? [10:28:14] I think so. [10:28:43] Well, you need to have done that and added your ssh key... [10:29:08] I have added the ssh key [10:29:46] in your terminal, what does nslookup gerrit.wikimedia.org [10:29:47] say? [10:31:10] Server: 127.0.1.1 [10:31:10] Address: 127.0.1.1#53 [10:31:11] ** server can't find gerrit.wikimedia.org: SERVFAIL [10:31:27] that's intriguing [10:31:33] Are you behind a proxy or something? [10:31:37] Yes. [10:31:51] University proxy [10:32:00] Ah, that's probably it then [10:32:17] I believe you will need to clone over HTTPS and set a password [10:32:54] well, generate one [10:32:54] https://gerrit.wikimedia.org/r/#/settings/http-password [10:34:02] Alright. I'll try that. Thanks a lot :) [10:41:52] This how one clones over https, right? git clone https://@gerrit.wikimedia.org:29418/apps/android/wikipedia [10:42:42] no [10:43:22] Oops. Got a lot to learn in that case. [10:44:01] git clone https://@gerrit.wikimedia.org/r/apps/android/wikipedia [10:47:48] Looks like it worked. Thanks a lot :) [10:48:12] woo :) [11:27:35] hi, is there some way how to disable api? my site is attacked by some weird bots who try to edit all the time, it's slowing the server down a lot [11:38:39] auvajs, https://www.mediawiki.org/wiki/API:Restricting_API_usage [11:41:50] andre__: cool, load average got sinked from 6.5 to 0.1 after I set up $wgEnableWriteAPI = false; :-) [11:42:16] *just sinked [12:37:46] heh quite a pity :) [12:38:19] perhaps we should surrender and note that config on https://www.mediawiki.org/wiki/Manual:Combating_spam [13:50:19] File search with Special:Filelist doesn't work for me if the query string contains the first character of the file name. Maybe this is related to auto-capitalization during the upload. Any ideas how to resolve this? [14:00:01] sfr_: since when Special:Filelist does "search"? [14:01:20] Ok I see it on https://translatewiki.net/wiki/Special:ListFiles , we should probably document this special page somewhere :) [14:02:04] wfm https://translatewiki.net/wiki/Special:ListFiles?limit=500&ilsearch=Wiki&user= [14:02:28] I think it's more likely that the search uses whatever search backend you use for Special:Search, and yours is too dumb. :) [14:02:46] If you're using MySQL search (the default), try exact word matches, not just random first characters [14:03:12] It really seems to be related to the first character. [14:05:19] Occurs on several (private) wikis running 1.23 and newer. [14:09:14] Do you mean it's case sensitive? [14:09:34] let's say the file is called "Abc.png", the searching for "bc" gives the correct result, searching for "Abc" does not [14:10:53] I get correct results when using any substring that does not contain the first character. [14:21:05] Standard search for "File:Abc*" works perfectly fine. [14:41:51] my conclusion was wrong, it's due to the capital letters (which typically happen to be the first ones...). everything is fine when using substrings that don't contain any capital letters, even if they are contained in the actual file name (!) [14:57:43] In other words it's doing a case-sensitive search but all titles have been normalised to lowercase [14:58:18] sfr_: definitely worth filing, but needs accurate details on your database and MediaWiki configuration [14:58:47] I wonder how long this has been wrong https://www.mediawiki.org/w/index.php?title=Profiler&redirect=no [15:03:17] yeah, that would be an explanation. btw, translatewiki.net is not using the standard (mysql) backend, isn't it? this issue doesn't appear there. [15:40:20] indeed: Query wiki (31) (slave): SELECT /* IndexPager::buildQueryInfo (ImageListPager) ... FROM ... WHERE (LOWER(img_name) LIKE '%SEARCHSTRING%' ) [15:41:02] standard? [15:41:10] I think they're using mariadb, which is a derivative [15:41:18] And a lot of people are using it now [15:41:31] standard [15:42:43] still, i don't get the reason of LOWER(img_name) [15:43:28] some sort of normalisation [15:45:53] maria is the red hat 7 standard version of mysql now even [15:46:19] only running debian stable [15:48:48] https://downloads.mariadb.org/mariadb/repositories/#mirror=coreix&distro=Debian&version=10.0&distro_release=jessie--jessie [16:13:38] https://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html [16:20:09] it seems that choosing binary encoding during the installation of mediawiki breaks the search on Special:Filelist. this is because of LIKE in the sql-statement above becomes case sensitive, which is horrible in conjunction with LOWER... [16:20:43] i'm out for today. [16:22:43] Nemo_bis: https://www.mediawiki.org/w/index.php?title=Manual%3AHow_to_debug&type=revision&diff=997068&oldid=956554 [16:28:45] hi, there's somethin strange for me. my wiki is quite fast when $wgServer is "http://1.2.3.4" - that being my ip address, but when I change it to http://www.mydomain.com the sites turn extremely slow, every page loads 20-30 seconds [16:29:05] what's the big deal? [16:44:31] legoktm: thanks; https://www.mediawiki.org/w/index.php?title=Manual:Profiling&diff=1852571&oldid=1432107 [17:08:37] hi legoktm [17:08:41] can you take a look at https://gerrit.wikimedia.org/r/#/c/232033/ ? [17:09:09] Is it still need to write a hook to send wg variables to the frontend, or can it be done using some extension.json trick? [17:11:36] aharoni: you need a hook, mainly because there are multiple ways to send variables to the frontend ;) [17:13:46] legoktm: funny... it might remain the only php code in that extension. [17:14:13] :P [17:30:16] phedenskog: hey! :) [23:03:23] Heya! I'm looking for a way to change the background colour of a cell in a wikitable template, based on the content of a variable within the template. The variable in question would be an integer number. Anyone know if it's possible, and if so, of a good method of accomplishing it? [23:10:05] RemusPanter: You could use parser functions [23:10:16] Similar to https://en.wikipedia.org/wiki/Wikipedia:Conditional_tables [23:11:15] GEOFBOT: I've been trying, but I can't seem to get the syntax down. What I have so far is this: | bgcolor={{{{{#ifeq: {{{stressphysical}}}>4 | #000000 | #FFFFFF}}}}} | [23:11:52] stressphysical being the variable in question. [23:13:18] RemusPanter: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifeq [23:14:22] You could do something like {{#ifeq| {{#expr: {{{stressphysical-4}}} }}|0| Subtracting 4 from the variable and testing if it is equal to '0' [23:15:18] Would that work if it's a negative value, though? The variable can be 1, 2, 3, or 4. [23:15:42] ...aaaaand, I just realized I was using "greater than", not "less than." [23:15:48] One sec. [23:17:09] RemusPanter: Turns out you can use {{#expr: 1 > {{{stressphysical}}} }} (a lot easier) [23:17:14] or something like that [23:17:30] Thanks! I'll give it a try. [23:17:41] RemusPanter: Actually.. [23:17:46] ? [23:17:55] even better : https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#.23ifexpr [23:18:00] Does everything you want [23:18:18] * RemusPanter facedesks [23:18:28] How did I miss that. [23:18:38] Thanks, GEOFBOT! [23:18:40] Happens to me too :) [23:18:45] I shoulda read the whole page [23:18:50] Have fun