[00:16:54] Nahiyan: see https://wikitech.wikimedia.org/wiki/IRCD#How_to_do_it_on_your_own_server [00:37:05] What is the editor we use on media wiki [00:37:35] it's mediawiki editor :) [00:37:55] you're probably refering to the Visual Editor [00:38:01] there's also the older editor [00:38:28] Yes Platonides the visual editor [00:51:16] Can we add any other visual editors [00:53:15] what editors do you want to add to mediawiki? [00:53:48] Ck dditor [00:55:35] why not use the existing one? [00:55:41] !e VisualEditor [00:55:41] https://www.mediawiki.org/wiki/Extension:VisualEditor [00:55:59] satdav: CK editor is not a good fit for MediaWiki, sadly. :-( [00:56:39] Is that a good one Skizzerz and James_F why is that drupal uses it [00:56:59] CKEditor works with HTML [00:57:16] MediaWiki does not use HTML however (or more accurately, only uses a subset of it), the rest being wiki markup [00:57:25] Yes oh thats not good for WordPress [00:57:35] satdav: Drupal didn't make many of the mistakes we made with MediaWiki. It made different ones, sure. But they didn't use markup. [00:57:39] thus any editor would need to support wiki markup, which is what the VisualEditor extension I linked (and that you found on wikipedia/mediawiki.org uses) [00:58:17] you could theoretically use CKEditor, but then you'd need to add in a way to transform things to wiki markup, or support raw html on pages [00:58:30] Skizzerz: is there not a external one for media wiki [00:58:34] either way, it isn't a plug-and-play solution [00:58:35] There is an old extension for MediaWiki that did that. [00:58:43] I don't think it works with MW since 1.20, however. [00:58:52] And it's abandonned, due to chronic issues. [00:59:04] This is why we had to build a from-scratch replacement, sadly. :-( [00:59:06] https://www.mediawiki.org/wiki/Extension:VisualEditor is your best (and possibly only) bet for a WYSIWYG editor for MediaWiki [00:59:13] (I'm co-lead of VisualEditor, FWIW.) [00:59:55] James_F: why use that one compared to the built in one [01:00:05] satdav: What built-in one? [01:00:07] the built in editor is not visual [01:00:13] you edit the raw wiki markup [01:00:49] Skizzerz: can we get to choose what one we want to use [01:01:03] sure, you can use the non-visual editor if you want [01:01:06] it's a user preference [01:01:28] so power users can edit the raw wiki markup, and other users could use the visual editor [01:10:57] Skizzerz: put a bug in for the company to add it [01:12:23] ? [01:12:25] I don't understand [01:24:42] Is anyone here using the chameleon skin or another bootstrap variant? [01:35:43] How would I create a toolbar area similar to the way that VE does it? [01:37:19] Negative24: https://www.mediawiki.org/wiki/OOjs_UI is the library we made for that. [01:37:54] James_F: Well yes. The living style guide doesn't mention the toolbar in it. [01:38:07] Negative24: Tell Design. [01:38:30] Do you have any files that sets it up in VE? [01:39:39] Negative24: Look at ViewPageTarget. [01:40:55] James_F: Thats ve.init.mw.ViewPageTarget.js in modules? [01:41:57] Negative24: Yeah. [01:42:00] Negative24: Well, no. [01:42:26] ? [01:42:31] Negative24: The main stuff is in lib/ve/src/init/ve.init.Target.js [01:42:41] The ViewPageTarget stuff is the MW-specific additions. [01:42:57] Ah. So its setup by the actual VE component [01:48:36] James_F: Thanks for the help. [01:49:17] Any suggestions for how to go about implementing mw's TOC with afflix and scrollspy functionality? [01:53:02] is there someway to call the mediawiki code that generates the TOC so I can generate it it somewhere else? [01:53:13] aclonedsheep: It's a mess of HTML, I believe. [01:56:07] James_F, hmm. WAs hoping there'd be a nifty function generateTOC I could use in my skin so I can put it somewhere besides the maincontent and implement those jquery/bootstrap features [01:56:35] aclonedsheep: I don't know much more, sorry. [01:58:17] appreciate the thought though. hopefully i can figure this out. There's a skin out there that moves the TOC to a jquery dropdown so its code may be a decent starting point [02:29:00] James_F, I found this comment particularly hillarious as I tracked down the TOC code... " # Ugh .. the TOC should have neat indentation levels which can be [02:29:00] passed to the skin functions." [02:34:58] aclonedsheep: Ha. :-) [02:56:22] Hello All! Quick question I was hoping someone could help me with. I just installed and configured Mediawiki, and then made a group called "Overwatch" with access to all the perms I saw for revision deletion (oversight) but the usergroup apparently does not have access to view the suppression log. [03:01:49] NDKilla, did you give them the suppressionlog right? [03:28:40] Nevermind :3 figured it out [05:02:58] I'm looking for the code which does the conversion of [[links]] to article URLs (https://www.mediawiki.org/wiki/Help:Links), specifically for Wikipedia. I don't know if it diverges from Mediawiki in this regard. [11:22:03] If someone with Lua templates skills wishes to help: https://www.mediawiki.org/wiki/Template_talk:Wikimedia_engineering_project_information#Categories [12:32:15] hi! [12:32:52] what is the proper way of customizing user-visible namespaces' names? [12:33:04] I want to change "User" to something else. [12:33:40] well, strictly speaking, I want to change my localized version of user ("Użytkownik") to sth else. [12:34:26] I edited languages/messages/MessagesPL.php, but I doubt it is a proper solution. [12:34:56] I guess this file will be overwritten when upgrading to newer version of Mediawiki. [12:35:36] I use 1.23.8 (LTS). [12:37:14] BartlomiejB: https://www.mediawiki.org/wiki/Help:System_message#Overriding_messages_on-wiki [12:38:09] it requires you to have https://www.mediawiki.org/wiki/Manual:$wgUseDatabaseMessages set to true [12:39:04] Vulpix: thanks. [13:36:15] Is it possible to use markdown to make mediawiki pages? Is that what it uses anyway? [13:36:40] I can't find any IRC channel related to markdown.. [13:48:33] pi-: it uses mediawiki syntax by default [13:48:48] there *might* be an extension to use markdown, but I'm not sure [13:49:33] pi-: https://www.mediawiki.org/wiki/Category:Markdown_extensions [13:51:11] pi-: https://www.mediawiki.org/wiki/Extension:MarkdownExtraGeshiSyntax adds a tag, https://www.mediawiki.org/wiki/Extension:MarkdownExtraParser#Conflicts allows you to sort-of mix both syntaxes [13:53:49] Hi, I've added the following to Mediawiki:Common.css at http://pastebin.com/LKCY8s6B [13:54:22] I don't want the visited color to change [13:54:41] but don't seem able to override the default in vector [13:55:35] Vulpix: could you tell me what is the key (string name) of User namespace in Special::AllMessages? I can't find it there. [13:57:01] quick: that css only changes the link color in div.portal ul li [13:58:47] Vulpix: well, I guess I'll have to stick to edit-MessagesPl.php solution... :( [13:58:52] valhallasw: Hi, yes I'm trying to customise the sidebar [13:59:08] tx valhallasw`cloud [14:01:27] Actually I'm trying to get a black sidebar down the whole of the left page [14:01:51] but not sure that can be done with a vector skin? [14:04:00] quick: I think the background is just the page background [14:04:19] so that would also change the background color on the top bar [14:06:05] Thanks I thought that might be the case [14:11:25] Do you know which skin would be best to use to create a look and feel like the one here http://forum.piwik.org/ ? [14:15:07] if you want to integrate it there, you're better off creating a new skin [14:15:37] otherwise, look for a list of MW skins with screenshots [14:15:40] not sure if it exists [14:17:02] I struggle a bit with the frontend development. Is creating skins difficult? [14:19:11] yes, it is (or at least if you want to create one that looks very good) [14:20:57] What is the going rate to pay someone write one? :) [14:21:13] depends on what you want to do. modifying an existing one is probably not very difficult, creating one from scratch is worse [14:22:02] quick: https://www.mediawiki.org/wiki/Skin:Erudite looks a bit like that forum. [14:22:37] (more skins here: https://www.mediawiki.org/wiki/Category:All_skins) [14:22:56] Thanks I will take a look [14:43:01] Vulpix: OK, I think I found solution of my problem: I used $wgExtraNamespaces and $wgExtraGenderNamespaces in LocalSettings.php, with keys NS_USER and NS_USER_TALK, effectively overriding defaults in MessagesPL.php (which I reverted to original version). it seems to work... [14:48:47] BartlomiejB: I think that redefining it there could cause you troubles [14:49:15] Vulpix: why? and what is the proper solution, then? [14:53:32] from https://www.mediawiki.org/wiki/Manual:$wgExtraNamespaces: "$wgExtraNamespaces is used to configure additional, custom namespaces for a wiki. __It can also be used to rename the default namespaces.__" [14:54:49] I guess it can be problematic when changing namespace name of existing wiki with content. but I configure freshly installed mediawiki instance. [14:54:51] I wasn't aware of that [14:55:14] That advice is probably from before the gender namespaces though [14:55:45] yeah, but there is also https://www.mediawiki.org/wiki/Manual:$wgExtraGenderNamespaces [14:55:46] You may want to add a note on talk page that it seems to work for gender namespaces as well [15:36:18] Morning. [15:52:20] I don't know if this channel or #wikipedia is the best place to ask. I'm trying to replicate exactly the conversion of [[internal links]] to the article names they link to. It looks like Sanitizer::decodeCharReferencesAndNormalize() does most of the heavy lifting. What I'd like to know is if links stored at Wikipedia get some treatment/cleanup themselves after submission, or if I have to do all the work this function does [15:52:21] to convert them properly. [15:53:42] In other words, should I expect ill formatted [[links]] in wikipedia's data dumps, or are they converted to a cleaner format themselves before being stored? [15:59:54] adrian_1908: I don't think MediaWiki changes the source text of pages, including their internal links. [16:00:03] You can make invalid links [16:00:25] adrian_1908: the data dumps both contain the text, as well as a table with the actual page<->page mapping [16:01:24] cgt: thanks. [16:02:26] valhallasw`cloud: If you're talking about article-to-article links, they seem to be integer to string unfortunately, not int to int. [16:02:40] cgt: what are you trying to do? [16:02:53] Betacommand: help [16:03:01] wait,,, that should be directed at adrian_1908 [16:03:06] :-) [16:03:22] Betacommand: I'm trying to extract article-article relationships to visualize them. [16:03:41] adrian_1908: you dont need to parse the database dumps [16:03:45] adrian_1908: give me a sec [16:03:51] !api ? [16:03:51] The MediaWiki API provides direct, high-level access to the data contained in the MediaWiki databases. Client programs should be able to use the API to login, get data, and post changes. Find out more at < https://www.mediawiki.org/wiki/API >. For client libraries in various languages, see < https://www.mediawiki.org/wiki/API:Client_Code >. [16:03:56] Vulpix: No [16:04:03] !dumps [16:04:04] For information on how to get dumps from Wikimedia Wikis, see http://meta.wikimedia.org/wiki/Data_dumps . For a how-to on importing dumps, see https://www.mediawiki.org/wiki/Manual:Importing_XML_dumps . [16:04:14] adrian_1908: well, yeah, they are int<->string, but it is 'cleaned up' in the sense that the page titles are normalized [16:04:41] adrian_1908: is this for enwiki? [16:04:58] but getting Betacommand to run it as sql query is an even better idea ;-) [16:05:01] valhallasw`cloud: exactly, and I cannot match the [[links]] to titles, unless I apply the same conversion they undergo in Mediawiki. [16:05:21] valhallasw`cloud: actually the page links table is dumped already [16:05:35] adrian_1908: I'm still confused. The pagelinks tables provides the page title /after/ what you call 'conversion' [16:05:38] Im just trying to dig up a link [16:05:53] valhallasw`cloud: hes using the wikitext dump [16:06:21] adrian_1908: your looking for http://dumps.wikimedia.org/enwiki/20150205/enwiki-20150205-pagelinks.sql.gz [16:06:32] Betacommand: and seems to be aware of the pagelinks dumps, decribing them as 'int->string' :-p [16:07:24] adrian_1908: why dont your combine the pagelinks and page dumps in sql and just use that? [16:07:29] Hehe, well I looked at the sql dumps a while ago and it seemed to me that they exhibit the same problem as the xml dumbs, but I might be wrong. [16:07:48] adrian_1908: http://dumps.wikimedia.org/enwiki/20150205/enwiki-20150205-page.sql.gz [16:08:22] Betacommand: Is that doable in reasonable time? I need to do it for the whole english wikipedia? [16:08:26] adrian_1908: as I said; page titles in the pagelinks dumps have been normalized (i.e. [[blah boo|something]] -> (ns 0, title 'Blah_boo'). The only thing left is checking for redirects [16:08:41] adrian_1908: its a hell of a lot faster than parsing a database dump [16:09:23] Betacommand: I see, I'll have a look at that again. [16:09:26] for page in pages: [16:11:17] select * from pagelinks where pl_title = page_title and pl_from_namespace= page_namespace [16:11:41] throw in redirects and your good [16:12:00] and you can get those from http://dumps.wikimedia.org/enwiki/20150205/enwiki-20150205-redirect.sql.gz [16:12:25] Betacommand: thanks, I'll see if that takes me where I want to go! [16:13:13] adrian_1908: it should be a LOT faster and easier than trying to parse wikitext, because you have templates and a whole host of other things that can make wikitext ugly [16:13:40] adrian_1908: are you parsing the full database or just a subset" [16:13:55] Need some help guys. I'm getting a MWExcetion Fatal Error involving file uploads. Specifically [3a9c03ba] 2015-02-15 15:37:53: Fatal exception of type MWException. Any thoughts? [16:14:14] !debug | ElmerG [16:14:14] ElmerG: For information on debugging (including viewing errors), see http://www.mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://www.mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging [16:14:23] Betacommand: Just the regular article- and category pages of en.wikipedia.org [16:14:33] so namespaces 0 and 14 I think. [16:15:00] adrian_1908: keep in mind that category links are separate from page links [16:16:32] Betacommand: ok. [16:17:39] Betacommand: I might even ignore them, they're not that interesting but since they were part of the xml dump, I though I might as well include them. If if it's easier to not include them in the sql query, I don't really need them. [16:19:17] Ok, so before I dive into this. I can really get an article->article (as in id->id) relationship via an sql query, yes? [16:20:45] I'm looking to end up with two data sets, one id->id, the other id=title [16:21:20] id=title is easy of course [16:29:49] hello [16:29:51] anyone can help? [16:30:17] !ask [16:30:17] 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. :) [16:31:22] ok, can I actually use this extension on Wikipedia ? https://www.mediawiki.org/wiki/Extension:Translate [16:31:40] not on my own mediawiki installation [16:35:48] mox: It's enable on Commons ( https://commons.wikimedia.org/wiki/Special:Translate ) and some other multilingual wiki's. I don't think it's enabled on any Wikipedia atm [16:36:25] mox: you can use something similar https://www.mediawiki.org/wiki/Content_translation [16:37:06] multichill is there a way to use it as a userscript? i'm not expert in this [16:37:15] ?? [16:37:37] Nemo_bis: i checked "content translation" earlier, but even this i dont know how to enable it on my wikipedia [16:37:42] What are you trying to do [16:37:50] mox: what's your wikipedia [16:38:03] i want to translate from en.wikipedia to ar.wikipedia [16:38:55] all i need is a split screen with the english version on one side, and the arabic version im writing on the other side. while keeping the wikipedia formatting. [16:39:28] looks like it's not enabled on ar.wiki yet [16:39:48] just like this https://www.mediawiki.org/wiki/File:Content-Translation-Warning.png [16:40:03] well i cant find it on english wikipedia [16:40:16] should i do another user registration [16:40:17] ? [16:41:02] mox: https://www.mediawiki.org/wiki/Content_translation Looks like it's not enabled yet for ar [16:41:48] is there a lesser tool that i could use? [16:41:57] mox: you can try it here though ar.wikipedia.beta.wmflabs.org/wiki/special:preferences#mw-prefsection-betafeatures [16:41:57] regardless of the output language [16:43:06] mox, what nemo says, you can test at http://ar.wikipedia.beta.wmflabs.org/wiki/special:preferences#mw-prefsection-betafeatures [16:43:27] ok let me check [16:43:59] You can just play around there and when you're done, copy the result. [16:45:01] The language selector doesn't work, but if you select a random language and then change the URL it seems to work [16:45:04] e.g. http://ar.wikipedia.beta.wmflabs.org/w/index.php?title=%D8%AE%D8%A7%D8%B5:%D8%AA%D8%B1%D8%AC%D9%85%D8%A9_%D8%A7%D9%84%D9%85%D8%AD%D8%AA%D9%88%D9%89&page=What%27d+I+Say&from=en&to=ar&targettitle=What%27d+I+Say [16:45:49] Well, the page loads. Whether it's working or not I can't tell :) [16:49:20] Thanks again for the help guys, bye! :) [16:53:39] ok this is great multichill and Nemo_bis ... i changed the two instances to "ar". at least it is turning paragraphs and tables into "right-to-left" alignment. it doesnt suggest machine translation to arabic, but it's good! i'll try it and see if it will show me the source code. [16:55:47] great [17:26:06] multichill Nemo_bis well when uchoose to publish it gives an error. that's basically cause we're on .beta.wmflabs.org [17:26:24] and there iis no way to extract the code to keep the wikipedia soure format [17:26:24] source* [17:26:55] mox: what error? [17:27:15] "could not publish: there was an error" [17:27:32] does it tell you anything more if you press F12 first? [17:28:05] nope [17:28:14] You might try and do the same on the other domain http://en.wikipedia.beta.wmflabs.org/wiki/Special:Preferences#mw-prefsection-betafeatures [17:28:37] i think ill just use https://translate.google.com/toolkit and publish the content using the wikipedia article wizard [17:28:44] The unpublished pages seem to be available on all wikis [17:28:46] ok let me check [22:26:56] whats the page that lists all the variables like MediaWiki:Helplogin-url ? [22:27:20] MediaWiki:All_something .. ? [22:31:06] Basically, the issue is that the cc-by-sa notice in the footer has disappeared and the new contribution have no license. Referring to http://wiki.scribus.net [22:32:19] Kunda: http://wiki.scribus.net/canvas/Special:AllMessages [22:43:01] I guess after the latest upgrade (1.23.1) we lost the footer that displays license info [22:43:08] valhallasw`cloud, thanks btw :) [22:43:20] Kunda: you're welcome! [22:49:34] anyone ? (re: lost license footer) [22:50:36] Kunda: what was your version before the upgrade? [22:51:27] Nemo_bis, lemme ask [22:51:53] Kunda: doesn't need to be precise, is it like from 1 or 5 years ago? :) [22:52:22] 1 year ago [22:52:51] it's kept relatively up to date [22:53:41] yea.. 1.22 [22:53:43] uh, why blank page http://wiki.scribus.net/wiki/api.php [22:53:57] no clue.. [22:54:03] what should be there ? [22:54:03] James_F: Hi Mozilla is looking at your editor for mediawiki but its still not stable [22:54:25] satdav: What is "stable" in your terms? [22:54:38] well a release version [22:54:46] satdav: (Also, #mediawiki-visualeditor might be better.) [22:55:15] There's a production deployment of VisualEditor every week, with releases going back two years. What do you mean? [22:55:34] Nemo_bis, what should be there ? [22:56:07] Kunda: I can't check what yoou have now, but please ensure you set https://www.mediawiki.org/wiki/Manual:$wgRightsUrl and friends correctly [22:56:24] That page should contain something like https://www.mediawiki.org/w/api.php [22:57:41] If you didn't disable it intentionally, perhaps you have some leftovers from the older version? The advice is always to remove old files completely and move the new files over [23:02:50] Nemo_bis: https://www.mediawiki.org/wiki/Manual:$wgRightsUrl and friends correctly <--- is that in LocalSettings or is that in Special:AllMessages (I can't find it in there) [23:06:59] Kunda: LocalSettings [23:39:14] Did mox succeed in that translation [23:39:43] only time can tell [23:39:48] or mox could tell [23:40:21] Probably not http://en.wikipedia.beta.wmflabs.org/wiki/Special:Contributions/Moxy