[06:54:20] Hey everyone, I would like to contribute to mediawiki codebase but I kind of seem lost, I have a XAMPP setup and the source code from the github mirror available. Could someone guide me through the next steps [08:40:06] Hello? [08:43:06] hello [08:43:14] Can you hear me? [08:46:10] !ask | nemanja [08:46:10] nemanja: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [08:52:39] hallo [08:52:59] !ask | p858snake|_ [08:53:00] p858snake|_: Please feel free to ask your question: if anybody who knows the answer is around, they will surely reply. Don't ask for help or for attention before actually asking your question, that's just a waste of time – both yours and everybody else's. :) [08:53:34] How can i contact admin to remove flag, warning from my article? [08:55:02] nemanja: this channel is for the MediaWiki package, you will need to contact the individual wiki installs if you have issues with their content [09:00:02] I would but their IRC channels,aka admins of pages are inactive [09:05:49] nemanja: we don't have some super key to break into 3rd party wikis, sorry :) [09:06:57] To bad that some wikis have like less than 300.000 articles, and just few Admins, who are never active on IRC or wiki itself [09:30:05] nemanja: oh, you're talking about some Wikimedia wiki? [09:30:11] that wasn't clear [09:30:23] yes [09:30:27] sr.wikipedia.org [09:31:00] still, local admins are the ones to contact... [10:32:02] yo [10:33:01] just found a rce on a wiki subs [10:33:05] *sub [11:25:50] hi, i get this error message "- Could not find gem 'mediawiki-vagrant (= 0.14.0)' in any of the gem sources listed in your Gemfile or available on this machine." [11:26:18] due ./setup.sh in a fresh mediawiki vagrant clone [11:26:49] i am using ubuntu 16.04 [11:35:01] hi, i get this error message "- Could not find gem 'mediawiki-vagrant (= 0.14.0)' in any of the gem sources listed in your Gemfile or available on this machine." [11:35:01] due ./setup.sh in a fresh mediawiki vagrant clone [11:35:02] i am using ubuntu 16.04 [12:08:41] c? I cannot sending to you a mp [14:20:47] leave [14:20:54] anyone on? [14:21:24] leave() [14:54:28] Hello people [14:54:36] Got a hard question I think :P [14:54:51] Im using this syntax: ;Test :SomeTestDescription [14:54:57] to create a glossary [14:55:54] Now I wanted to add an attribute to the generated HTML [14:56:00] I did that by hooking into function getFullDefinitionAsTooltip [14:56:05] and adding $spanTerm->setAttribute('id', $this->mDefinitions[0][0]); [14:56:33] Now the content inside the generated
has the id attribute, which is correct [14:56:43] but the content inside the generated
has the id attribute too which is incorrect [14:56:45] How can I solve that? :O [14:57:42] You can create an extension with a new syntax to parse, to offer a glossary, with as output the code you want. [14:57:48] [14:57:58] (then the code in the format the more logical you think) [14:58:00] [14:59:19] So I cannt solve this by using the standard extension [14:59:21] "Lingo" [14:59:22] You need to cehck if it's still a best practice, it's possible this "tag" syntax is deprecated in favour of {{#glossary:something}}, but it's probably more clean tags in your case. [14:59:25] (LingoParser.php) [14:59:44] ah you're alreadying using an extension ok [15:00:13] Yea thats some default extension from mediawiki [15:00:19] suggest to the extension authors to implement your id solution, it's a probably standard and a good idea [15:00:20] To create such a list I guess [15:00:32] Yea but I gotta implemen tit now. [15:00:33] :D [15:00:34] implement it* [15:00:45] https://phabricator.wikimedia.org/maniphest/task/edit/form/1/?projects=MediaWiki-extensions-Lingo [15:00:52] ok [15:01:02] But this is obviously not as standard mediawiki feature as i thought [15:01:02] ^^ [15:01:10] I thought everybody uses that. [15:01:14] (lingo isn't standard) [15:01:17] Oh ok [15:01:19] (I discovered it today) [15:01:21] I didnt set this up, im pretty new to this stuff [15:01:33] Just looking through the code and thinking wow this is bad [15:01:33] xd [15:01:40] in what file did you edit the code as described abovez? [15:01:45] Sec [15:02:03] Element.php [15:02:18] Lingo/src/Element.php [15:03:50] getFullDefinitionAsTooltip [15:03:55] that function [15:04:34] you should apply the id to the dt, instead of the span inside, shouldn't you? [15:04:39] Exactly [15:04:50] But the dt is created somewhere else. [15:04:53] And I dont know where at all [15:05:11] Something like
foo
metasyntaxical variable
...
would be more expected. [15:05:20] yea that would be a good solution [15:05:25] But I dont rly know where it creates the dt [15:05:36] theres no createElement('dt') atleast [15:08:07] I think the ; and : is standard syntax from mediawiki to create dl and dt and dd tags [15:08:07] probably in Tree.php [15:08:13] oh [15:08:15] and the lingo extension generates the span [15:08:17] ok [15:08:22] that would make sense [15:08:27] with the tooltip [15:08:45] okay so Tree is only internal to know what definitions are [15:08:51] Think so. [15:08:51] and not used for rendering purpose [15:38:10] Can i use umlauts in an id tag in mediawiki [15:38:10] :d [15:38:29] What is an "id tag"? [15:39:04] Wow I got kicked out [15:39:09] If you wrote something - again please. [15:39:11] What is an "id tag"? [15:39:15] [15:39:30] no, you can't [15:39:30] In which situations do you manually set id tags? [15:39:40] I have to set an anchor. [15:39:46] ah. [15:39:47] So people from other pages can link to an article directly. [15:39:54] The is disallowed in mediawiki [15:40:06] It recommends to use but I cannot use umlauts there so im basically trolled 4 life. [15:40:12] Vulpix: thanks [15:40:21] Vulpix: Is there any workaround to make it work tho? :D [15:40:25] Xatenev: but you can use {{anchorencode:}} https://www.mediawiki.org/wiki/Help:Magic_words#anchorencode [15:40:32] So when the url has #testäö it goes to #testaeoe [15:40:58] that works better if you use a template for that [15:40:59] Vulpix: That is exactly what happens right now. [15:41:09] tbh that's a bug now that we emit HTML 5 [15:41:17] When I type in [15:41:23] it generates C3.A1 or something like that. [15:41:34] umlauts are allowable characters in HTML ids now [15:41:54] Skizzerz: is there some fast core hack to make it work with umlauts? [15:41:58] so it doesnt anchorencode the ids [15:41:58] that's consistent if you reference this anchor from wikicode like [[#ä]] [15:42:01] Or would that break important stuff? [15:42:17] But I dont reference it from wikicode [15:42:19] Xatenev: probably, would need to dig to find it [15:42:24] I reference it from another external page [15:42:31] That i have no control over [15:43:14] And it links like myPage#Ä [15:43:43] I rly need some fast core hack or anything like that for this ://^^ [15:43:59] I will search maybe i find something [15:44:55] unicode adoption hasn't been fast... even python needs special syntax to deal with unicode characters... [15:45:39] some devs probably don't know there are more characters beyond ASCII :) [15:48:49] I solved it i think [15:48:51] but maybe i break the half page [15:48:52] xD [15:49:04] Nevermind i didnt solve it [15:51:49] Xatenev: you don't need to edit core at all [15:51:54] How do I solve it then :( [15:52:00] set $wgExperimentalHtmlIds = true; in your LocalSettings.php [15:52:22] THANKS [15:52:24] so easy [15:53:02] thanks a lot mate [15:57:30] jdlrobson: Hey, what else this patch needs in order to be merged? https://gerrit.wikimedia.org/r/#/c/307077/ [15:57:49] If you have some time, it would be fantastic [15:57:58] Amir1: plan it to a review hour [15:58:10] hmm [15:58:22] I completely forgot about code review hours [16:27:18] oh wow, enwiki uca is actually happening [17:22:53] bawolff: It's almost 30% done. :) [17:23:09] Niharika: I was just looking. Seems to be in the C's [17:23:48] bawolff: There are supposed to be ~100 mil rows and it's done about 30 mil. How did you find out that it's in the C's? [17:24:04] By looking at categories? [17:24:20] yeah [17:24:22] select cl_from, cl_to, cl_type, cl_collation from categorylinks where cl_to like "Cu%" limit 10; [17:24:28] gives a bunch of things with uppercase [17:24:33] but Co has the new collation [17:25:13] Nice. [17:25:20] The numbers seem a bit weird. [17:25:30] It's in the Cs and it's already done 30 mil. [17:25:39] And there are 100 mil. [17:25:57] I guess a lot of misc stuff comes before the A's too. [17:26:00] alphabet isn't really evenly distributed though [17:40:53] Niharika: I just checked, there are 30 million entries for letters >= C [17:41:00] err, <= [17:41:59] bawolff: Ah. I guess it includes all of !,#,& etc. [17:42:05] I've been trying to make https://www.mediawiki.org/wiki/Extension:RSS work with Google News feeds, e.g. http://news.google.com/news?pz=1&cf=all&ned=fr&hl=fr&q=iphone&output=rss but it appears a bit broken. Could that be in Google's end or just that RSS extension a bit buggy? Years ago, I had working RSS feeds but since Google appears unwilling to share XML news feeds, or at least... [17:42:06] ...they're making it as complicated as possible for whatever money making reason. [17:42:27] yeah, but anything with an accent is after Z, so it is kind of surprising [17:42:33] Sorry in case this subject isn't all relevant here. [17:43:04] Tuxedo: Everything involving MediaWiki, including extensions, is relavent here [17:44:10] Ok :-) [17:44:20] That said, I don't know the answer :( [17:47:21] No problem. Anyway, I think the Google feeds may be fixable with some of the template options (https://www.mediawiki.org/wiki/Extension:RSS#Templates_for_channel_subelements_and_styling_the_RSS_Feed). [18:29:36] Niharika: woo, we're on to D's [18:29:58] Yay. [18:30:12] I guess it'll finish by Friday or so. [18:30:27] Or maybe not. [18:35:24] I figured out why there are so many rows early in the alphabet [18:35:46] There are a bunch of huge categories starting with the word All (~6 million rows worth [18:38:16] And also about 4 million rows from categories starting with Articles_ [18:44:26] Aha. That makes sense. [19:26:18] hello im having a bit hard time setting up visualeditor and parsoid [19:27:26] though parsoid looks like it is running with in its log [19:28:28] i recieve a error loading data from server: http 200. would you like to retry [20:14:19] I add < span id="welcome" / > to a wiki article at my MediaWiki installation - it works. [20:14:36] At Wikipedia it works fine. On my MediaWiki it doesn't. [20:16:00] wikipedia uses tidy, most other mediawiki installs don't. Might be related to that [20:16:07] I'd also ask, what are you expecting it to do? [20:16:15] Are you just using it as a link target? [20:22:29] I have an article with a lot of local refs (#like_this sorry I forgot correct name of them), like this page: https://wikimediafoundation.org/wiki/Privacy_policy [20:24:06] Can you link to your wiki? [20:25:54] http://autowiki.xyz/wiki/Autowiki:Privacy_policy [20:28:28] Well I'll try to play with tidy. [20:30:39]

<span id="welcome" /> [20:30:39]

[20:30:39] Hahaha! [20:31:31] thanks for sharing your thoughts bawolff [20:32:58] Nirvanchik: There was some talk about no longer allowing self-closing tags (e.g. you would need to do instead, but I didn't think that happened yet [20:37:10] Oh yeah! it works! Thank you! And I made wrong assumptions about template transclusioning and didn't notice that working item was with a closing tag. [20:39:57] so this happened, haha) [20:57:25] I successfully installed mediawiki and enabled a few of the extensions. I want the "Warning" icon, "info" icon templates. What extension is this? [20:59:05] Like this icon: https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/Attention_niels_epting.svg/18px-Attention_niels_epting.svg.png [20:59:13] Where can I get them? [20:59:45] I have a weird issue. I transfered my wiki to a new server and now my images won't show up. The links to all of the image data do and the metadata shows up too. It has to be something dumb on my end [21:00:28] I have all of my images in /var/lib/mediawiki/images [21:01:57] I chowned it to www-data and chmoded to 755 [21:47:26] Having reviewed various mobile skins and plugins I settled for the excellent "MobileFrontend". I can see by the talk page this is a very popular solution. For some minor branding purposes, I would like to add some HTML in the mobile menu, below the Home, Random, Watchist. Settings and Log in links. Maybe there is no configuration method. [21:48:30] In case anyone here happens to know, in which place/file can this be done? [21:55:45] The MW version I have is 1.27.1 and the MobileFrontend is the current version 1.0.0. [22:01:10] Tuxedo: let me tell you that's an excellent phrased question [22:01:26] althoug I don't know about mobilefrontend [22:01:35] there may be a mediawiki message exposing it [22:01:50] not sure if it respects MediaWiki:sidebar [22:02:16] and even with that, for raw html you'd need an (small) extension [22:05:10] There are many files in the MobileFrontend directory and sub-directories. [22:06:00] There must be a place to simply stick in an image for example, even if it's a hack. [22:06:13] !sidebar | Tuxedo [22:06:13] Tuxedo: To edit the navigation menu on the left, edit page [[MediaWiki:Sidebar]] on your wiki using its special syntax (see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar for details). If you need more control, you can use the SkinBuildSidebar hook (https://www.mediawiki.org/wiki/Manual:Hooks/SkinBuildSidebar). [22:06:19] try first if it works [22:06:27] as this is designed for mobile views, I'm unsure though [22:09:32] I'm familiar with MediaWiki:Sidebar and how to change it for the regular skin or desktop view. I will have a look at the other links and manuals. Thanks for these tips. [22:12:26] ALVARO MOLINA.. XQ ERES TAN IDIOTA Y PIERDES TU TIEMPO ASIENDO ESTO ?? NO TIENES OTRO PANODAMA A PARTE DE ARRUINAR MI VIDA Y ACUSARME CON LOS BIBLICOS ?? SI EN 24 HORAS NO AVANDONAS IRC O WIKIMEDIA .. TE HARE MIERDA . Q TE KEDE CLARO HIJO DE PERRA [22:35:53] !sidebar [22:35:53] To edit the navigation menu on the left, edit page [[MediaWiki:Sidebar]] on your wiki using its special syntax (see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar for details). If you need more control, you can use the SkinBuildSidebar hook (https://www.mediawiki.org/wiki/Manual:Hooks/SkinBuildSidebar). [22:38:13] L72g5sSq> what exactly do you need. those icons or templates with those icons? [22:40:23] I transfered my wiki to a new server and now my images won't show up. The data is there but the image cannot be found. I have it in the right directory. [22:42:05] how did you copy the db? [22:42:31] You also need to copy the images directory too, not just the db. [22:43:51] I copied the full image directory to the new system [22:43:54] Hello...can i disable "redirect to https" in mediawiki ? [22:44:09] I also did the dumpUploads.php [22:44:49] i copied the db using mysqldump [22:45:24] everything seems to work, but it cannot find the images [22:45:44] diverdude: sure [22:45:55] Platonides, how? [22:46:00] actually you must have inadvertedly enabled it… [22:46:43] !wg Server | diverdude [22:46:43] diverdude: https://www.mediawiki.org/wiki/Manual:%24wgServer [22:46:51] what do you have set there? [22:47:04] Platonides, me? [22:47:08] yes [22:47:16] what's the value of $wgServer in you LocalSettings ? [22:48:14] Platonides, i have in LocalSettings.php: $wgServer = "http://wiki.mydomain.io"; [22:48:34] and it redirects you to https: ?? [22:48:58] Platonides, yeah [22:49:32] I guess it's not eg. httpseverywhere doing it from your browser… [22:49:59] maybe $wgServer is being overwritten later? [22:50:28] Platonides, where would that be? I have only just installed the system and thats it [22:51:26] It's really weird /var/lib/mediawiki/images has all of my images, but I cannot see them. When I click on the Image name, it says /var/lib/mediawiki/images/[image-name] cannot be found [22:52:21] directly [image name] ? [22:52:30] not eg. /var/lib/mediawiki/images/f/fa/[image-name] ? [22:52:39] Did you set the permissions correctly [22:52:47] not /f/fa [22:52:59] those would change [22:53:08] that stopped when I disabled the hashing... I think [22:53:14] but the default is to use hashing [22:53:17] ah, ok [22:53:28] I chowned to www-data [22:53:32] how did you copy the db? [22:53:36] and chmodded 755 [22:53:42] mysqldump [22:53:59] are the entries in the image table? [22:54:08] hmm [22:54:09] hmmmmmm [22:54:19] they should be if it goes to the filesystem to look for them [22:54:47] * Platonides scratches his head [22:54:59] I believe so [22:55:10] file case differences? [22:55:20] nope [22:55:48] I re-uploaded the same images incase something got whacked, but nada [22:56:16] what's your configuration for uploads? [22:56:30] I am curious the error states "The requested URL /var/lib/mediawiki/images/Store25_after2.JPG was not found on this server." could the lack of server IP be the issue? [22:56:47] Looks like it is an error [22:56:51] that image wont exist [22:56:58] pretty much stock. I do the changes listed on the tutorial. 20MB added a few more file types [22:57:06] since it is in the example path Platonides gave [22:57:12] emax: you removed upload hashing [22:57:21] You could we add the images through your gui if you want [22:57:25] I don't know if you toched anything else that could b erelevant [22:57:52] you may try running rebuildImages.php [22:57:58] but you shouldn't need that [22:58:04] It didn't work through the GUI either [22:58:36] oh [22:58:45] could you be using a cached dns record pointing to the old server? [22:58:57] Maybe reinstall mw over your current install, make sure you save a backup [22:59:06] then re run the update script [22:59:10] good idea, I though I cleared the cache [22:59:33] there are many caching layers for dns [22:59:34] also what do you have set in localsettings.php, please exclude all personal data including passwords [22:59:48] it can be hard to ensure you get the right one [23:00:07] perhaps, adding the right one to /etc/hosts is the best one [23:01:57] I am just using IP, I was mainly hoping the web data wasn't cahced. http://192.168.xxx.xxx/var/lib/mediawiki/images/picture.PNG [23:02:24] what? [23:02:33] but is says picture.png doesn't exist, when I "ls" images it has it [23:02:45] emax: that's the wrong url [23:03:02] you would access it from a url like eg. http://192.168.xxx.xxx/w/images/picture.PNG [23:03:29] how did you configure mediawiki uploads?? [23:03:36] is that url generated by mediawiki? [23:05:03] $wgUploadPath = "/var/lib/mediawiki/images"; [23:07:02] @Platonides I can enable hashing, but it didn't work when it was enabled [23:08:19] !wg UploadPath [23:08:19] https://www.mediawiki.org/wiki/Manual:%24wgUploadPath [23:08:30] that's wrong [23:08:49] you wanted $wgUploadDirectory = "/var/lib/mediawiki/images"; [23:09:05] one is the url where images are published [23:09:15] the other the directory where they are saved in the filesystem [23:09:23] ooooohhhhhh [23:10:54] YYYYEEEEESSSSSS [23:12:30] It seems [23:12:35] Platonides ^^ [23:12:38] I saw [23:12:40] Ok [23:13:03] the bot detected the shouting as evil [23:13:13] Oh [23:14:54] hi eddie [23:15:02] Hey I don't know why I was banned, but thank you very much Platonides [23:15:16] 23:12:52 <@Platonides> the bot detected the shouting as evil [23:15:20] sorry [23:15:33] oh, sorry [23:15:48] i was pumped. I have been looking at that for like 2 days [23:16:35] * BanBot apologises [23:16:46] thanks BanBot [23:16:57] I am only a dumb bot, you know [23:17:23] I was freaking out. I need this channel [23:17:27] $wgUploadPath and $wgUploaddirectory are easy to confuse [23:17:31] lol [23:18:47] Again, thank you guys for the help. I am sure I will be back [23:28:23] you are welcome, emax