[00:36:13] Hello [00:36:26] I cannot get Lua to work to save my life [00:36:51] My goal is to be able to display a template: refimprove banner at teh top of a page [00:37:07] can anyone point me towards a solution? [00:37:37] http://wiki.marylandshallissue.org/index.php?title=Special:Version [00:37:54] http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [00:38:23] Sigh [00:46:35] cypherpnk: what am i suposed to notice about those pages? [00:46:41] i see that scribunto is indeed set up from the first [00:47:10] i see the refimprove banner [00:47:20] Any idea why I cant get a frame around the template: refimprove at the top of the page? [00:47:26] Is it becuase Lua isnt working? [00:47:38] Or am I missing somethign else? [00:47:45] i don't see a frame [00:47:58] right [00:48:02] I'd like a frame [00:48:27] The banner at teh top of this page should have a frame: http://wiki.marylandshallissue.org/index.php?title=Maryland_Handgun_Permit [00:49:04] you just need to modify the template to include one [00:49:08] lua is working properly [00:50:40] Can you point me to a url with some docuemntation? [00:51:02] I exported all of Wikipedia's template infrastructure - so I thought he fram would be automagic? [00:51:51] Im trying to get the banner to look like this... [00:51:51] https://en.wikipedia.org/wiki/Template%3ARefimprove [00:53:00] cypherpnk: the templates / modules produce HTML elements with predictable class names, and English Wikipedia styles those with CSS in https://en.wikipedia.org/wiki/MediaWiki:Common.css [00:53:13] if you copy the content of https://en.wikipedia.org/wiki/MediaWiki:Common.css to MediaWiki:Common.css on your wiki it should look the same [00:53:23] Awsome! [00:53:29] Im off to give that a try [00:53:41] Thank you very much for the pointer [00:53:47] no problem, good luck. [00:54:11] in general, people do monitor this channel, but they're not necessarily staring at it at all times, so if you ask a question and no one seems to respond, wait a while and don't despair :) [00:56:36] Where is MediaWiki:Common.css? [00:57:07] cypherpnk: http://wiki.marylandshallissue.org/index.php?title=MediaWiki:Common.css [00:58:23] * cypherpnk does the happy dance [00:59:02] :) [00:59:43] ori, can you field one more? [00:59:46] http://wiki.marylandshallissue.org/index.php?title=Template:Refimprove [00:59:57] How do I get rid of the "50px" [01:00:04] I cant find the source anywhere [01:00:14] I think its nestled tempaltes [01:02:47] cypherpnk: you can either upload https://en.wikipedia.org/wiki/File:Test_Template_Info-Icon_-_Version_(2).svg to your wiki [01:02:58] or *I think* enabling instantcommons should do it too [01:03:17] try adding $wgUseInstantCommons = true; to your localsettings.php [01:05:13] Done! [01:05:22] Thanks again ori! [01:05:58] Hello. Does somebody know what codes should I put to be able to use "Format" and "Insert" too? http://s9.postimg.org/xqhpytptr/missing.png [01:06:04] Last question - can you point me to the best url to help me secure my wiki? [01:06:15] or the best reference doc? [01:07:07] cypherpnk: https://www.mediawiki.org/wiki/Manual:Security [01:07:55] OK, thanks a whole lot. Have a good evening everyone. Im off to learn about mediawiki security [01:26:31] Does somebody know what codes should I put to be able to use "Format" and "Insert" too? http://s9.postimg.org/xqhpytptr/missing.png [08:10:26] I am using git clone https://@gerrit.wikimedia.org/apps/android/wikipedia and getting "fatal: repository not found". Can someone please help [08:30:37] I guess they found their missing r/ [09:33:55] Gradle sync in failing on the wikipedia app with the following errors http://i.imgur.com/l4mOpAJ.png. I am behind a proxy but have made the requisite changes to the gradle. properties. Can someone please help. [14:07:37] @seen polybuildr [14:07:37] Niharika: Last time I saw polybuildr they were quitting the network with reason: no reason was given N/A at 8/19/2015 6:47:30 PM (1d19h20m6s ago) [14:07:38] Bah. [14:07:47] Okay, thanks wm-bot. [14:07:48] Hey Niharika, you are welcome! [15:36:46] How to change "Xinput" section from header 1 to header 2 on page:https://wiki.gamepaduniverse.com/wiki/Region [15:39:44] It pulls that over from List Of Regions By Technology#Xinput on for that page [15:39:59] Hi sneezel [15:40:16] hello kind sir! [15:41:11] sneezel: You'd need to change the template [15:42:39] sneezel: You *might* be able to do something clever like changing the header level depending on a template parameter [15:42:44] But I doubt that's worthwhile [15:42:53] Better to just fix the template so it does what you need [15:43:15] marktraceur: The issue I am running into is that it a section on another page. So since the Xinput header on that page is level 1 which is right for that page, but I need it be to be 2 on the Region page [15:43:55] OK, so do something clever with template params [15:44:07] I want to assume that it's possible, let me do some sandboxing [15:44:41] I am guessing then that I could construct a parameter that would state that if its the current page be header level 1 otherwise if not use a different header level? [15:46:28] Mark, I am also a little bit confused if certain template methodologies have been deprecated aka using TemplateDate extension versus saying copying the See also template and working off that code structure [15:47:29] trying to follow various examples on adding custom buttons to the classic editor toolbar... [15:47:35] and I'm getting this in the console: [15:47:36] Error: Unknown dependency: mediawiki.toolbar [15:48:00] sneezel: I did this silly bullshit and it worked: {{#switch:{{{1}}}|1 = =|2 = ==|3 = ===|4 = ====}}Test{{#switch:{{{1}}}|1 = =|2 = ==|3 = ===|4 = ====|=}} [15:48:26] sneezel: I don't think we've ever deprecated...anything. In wikitext. Ever. [15:48:35] Maybe extensions, but that's pretty rare too [15:49:24] well is there a preferred way to make templates [15:49:54] wikipedia has this -> http://pastie.org/10366595 <- in their Common.js/edit.js [15:50:07] but it throws an error on line 2 for me. [15:50:20] it seems like the templateData extension produces a different kind of code structure than what I copyed from mediawiki Template:See also for instance [15:53:11] is mediawiki.toolbar new to 1.25 ? [15:53:39] marktraceur: We removed the old way of invoking templates introduced in MW 1.2 in MW 1.3 [15:53:59] marktraceur: But other than that (and the UseMod -> MediaWiki switchover) I think that's it. [15:54:14] mark i don't get where i am suppose to insert this code in? [15:54:42] its not really a template in the sense that page does not start with "Template:" [15:54:50] it's just a normal page [15:55:09] yes it is, and cool it works now, so, never mind [15:55:22] Mark you live in the Twin Cities??? [16:34:24] marktraceur: not true, some things were deprecated in 2008 :) https://meta.wikimedia.org/wiki/Migration_to_the_new_preprocessor [17:10:47] Need a little help with wikitext for https://www.mediawiki.org/wiki/Extension:SmiteSpam [17:10:53] I've added two screenshots to the page [17:10:59] but they float to the right and look out of place [17:11:09] I have no idea how to fix them, suggestions please? [19:06:45] I am trying to install on cloud but still showing some errors.I have a digital ocean droplet on which I tried to install using vagrant. Whenever I ran 'vagrant up ' it is showing following error:"The guest machine entered an invalid state while waiting for itto boot. Valid states are 'starting, running'. The machine is in the'gurumeditation' state. Please verify everything is configuredproperly an [19:06:47] d try again.If the provider you're using has a GUI that comes with it,it is often helpful to open that and watch the machine, since theGUI often has more helpful error messages than Vagrant can retrieve.For example, if you're using VirtualBox, run `vagrant up` while theVirtualBox GUI is open."I tried two solutions from the link (https://www.digitalocean.com/community/questions/vagrant-and-virtualb [19:06:48] ox-gurumeditation-problem) , But both the solutions didn't work.Now I am confused that how should I proceed? [19:17:14] Can anyone help? [19:20:13] adisha_: checked the log? http://www.fixedbyvonnie.com/2014/09/heck-virtualbox-guru-meditation-error/ [20:06:20] Hello. I am trying to move my mediawiki install from mysql to postgresql. What I did so far was take an xml dump, then remove the wiki install, reinstall using postgres and import the xml dump. [20:06:36] Everything looks fine now, but when I check the database that I setup for the wiki, it appears empty? [20:07:57] For instance, the main page and other pages appear populated when I open them from the web, but when I use psql to look at the new postgres database, it doesn't even have tables [20:09:03] php importDump.php --conf ../LocalSettings.php /path_to/dumpfile.xml wikidb [20:09:10] this is what I used to import [20:09:51] does the xml data not get put in the database, or did I inadvertently add this somewhere else? [20:14:08] I guess the database was created elsewhere [20:14:26] are you sure you selected postgres as the database engine? [20:14:52] see $wgDBtype [20:20:17] Vulpix: no the database was not created elsewhere, and "postgres" is the value in that var in LocalSettings [20:20:20] it is very strange [20:20:29] everything appears fine, unless I look at the db [20:21:15] well, LocalSettings.php contains the database connection settings, see if it's pointing to the right server (localhost instead of a server on another host, etc) [20:24:10] it's pointing to localhost [20:24:18] which is the right host [20:26:18] cordovafan8: What psql command are you running to check the database? [20:26:22] Vulpix: do you know what the argument (wikidb) means in the importDump.php ? [20:26:32] That's the database name. [20:26:39] marktraceur: psql -U wiki_user -d wiki_db; \dt [20:26:48] So maybe it's the wrong database [20:26:59] marktraceur: it doesn't seem to have any effect (the argument) [20:27:09] What database name did you use in the setup? (clearly wikidb and not wiki_db because it's actually working) [20:27:10] if I provide the correct or incorrect database, the result is the same [20:27:23] I did not use wikidb in the install process [20:27:24] Well, the import is already complete [20:27:36] OK...hm [20:27:36] that database doesn't even exist [20:27:41] which is super strange [20:27:46] I have a mysql wikidb [20:27:48] but... [20:27:50] cordovafan8: Try going to Special:Version and make sure it's using postgres [20:28:47] marktraceur: postgres is listed in installed software [20:29:00] OK fair enough, definitely postgres [20:29:37] cordovafan8: OK, can you pastebin the database session where you query for, but don't find, data in your wiki_db database? [20:29:50] uh, sure? there's not much to see [20:30:08] I would imagine not, but it's good to have all the information [20:30:14] And I haven't been struck with genius yet [20:32:43] marktraceur: http://pastebin.com/GGBjjMPU [20:32:53] not sure if that's what you want? [20:36:48] cordovafan8: https://www.mediawiki.org/wiki/Manual:$wgDBmwschema ? [20:37:51] Vulpix: I didn't change the schema from the installer, it should be 'mediawiki' [20:38:47] although I did create a new user and db [20:40:05] be sure you're using the same user to connect from MediaWiki and command line. If not, maybe it doesn't display tables because the user doesn't have permission to see them [20:40:41] Vulpix: nice, I guess \dt was not selecting from that schema since it's not 'public'. My bad! [20:40:56] I see the tables now at least [20:43:36] going to redo the whole process just in case [20:56:19] How might I change the main page of my wiki? The instructions state to (as admin) go to Mediawiki:Mainpage and change some setting, but this doesn't appear for me? I can't find the admin settings page either [20:57:56] You need to edit the page called "Mediawiki:Mainpage" [20:58:46] edit it how? All it contains is the string 'Main Page' [20:58:47] there's no admin settings page on MediaWiki, you can fond some Special Pages that are only enabled for admins, but not a centralized page with all settings [20:59:15] it contains the name of the page that will act as the "main page" of the wiki [20:59:19] cordovafan8: click on the edit tab while logged into an admin account [20:59:24] change it to something else, hit save [20:59:41] Skizzerz: I'm an admin, all I get is the standard edit box [20:59:53] yes, change the text in the edit box to something else [20:59:54] then hit save [21:00:04] whatever you change it to will be the new main page of the wiki [21:00:45] so if you change it to My Wiki, then the My Wiki page is the main page. If you change it to Blah, then Blah is the main page, etc. [21:00:58] there we go, got it [21:01:00] thanks guys [21:01:03] gotta run to catch the bus