[00:47:42] Hi all, I have absolutely no idea how Wikibase (and Wikidata) works on the back end. Can someone help me right a SQL query that would fetch all pages where property P123 is equal to 5678? [02:31:51] niso you can do this using javascript, when a mediawiki page loads [02:32:01] sorry he already quit [04:16:06] I'd like to make a timeline using the Graphs extension. As an example the timeline should spread from 1st of March til the 7th of March and only show one event which happened yesterday at 6pm. I tried simplifying the example provided in the demo https://www.mediawiki.org/wiki/Extension:Graph/Demo but it became blank and names of the parameters are not obvious. I want to remove the 'people' for a start and only leave [04:16:07] everything else. https://www.mediawiki.org/wiki/User:Gryllida/sandbox [08:15:16] I've downloaded an existing installation, set up the database with the dump, all in a vagrant box. Yet, all I get when I try to access the 192.168.7.7, as described in https://github.com/rlerdorf/php7dev, I get a phpinfo page. [08:17:13] It's 1.23.9; I'm interested in making an upgrade, but just want to test things first. [08:40:01] Hello everyone [08:45:52] hexmode: [08:45:59] hello [08:56:12] I was looking for a way to imitate Wikia's/FANDOM's image-within-tabber-for-Infoboxes in VAnilla Mediawiki, but I already began writing a Lua module for that [09:19:32] https://ways-of-darkness.sonck.nl/Module:Image_tabber I wonder what must I be doing wrong [09:23:43] madsj: maybe you want to look for PHP or vagrant, not mediawiki? [09:24:09] madsj: the information you provided had no error messages or anything, it is impossible to help you debug your problem, when no one knows what it is [09:25:04] metalhead33: what does 'image tabber' do? [09:25:05] It seems to me that it doesn't recognize the arguments [09:25:24] It takes the image parameters - just like Image Array would - and puts them within a tabber. [09:25:44] what is a tabber? [09:25:55] https://www.mediawiki.org/wiki/Extension:Tabber [09:26:34] http://suki-clan.wikia.com/wiki/Template:CursedCharacter#Human something like this [09:29:04] Aha, found the issue - it reports zero imagecount for some reason. [09:30:24] right, can't you make that happen with css and javascript [09:30:30] what do you need lua for? [09:31:11] I need Lua to dynamically take the arguments. Putting the tabber straight into the infobox would be just cumbersome. [09:31:23] There's a reason we prefer using templates, after all. [09:31:59] right, how about you just put all the images in the template, and then hide all of them but one with css, then make the buttons change the image that is displayed? [09:32:10] well, maybe using that extension makes it more manageable everywhere [09:32:44] Meh.... I might just use a bunch of {{#if}}s then, create a maximum of 4-6 tabs conditionally [09:40:16] https://hastebin.com/zohezarari.lua meh, close enough [09:43:04] Yeah, good enough. [11:01:26] harmaahylje: I got something working when I upgraded to mediawiki 1.30; the existing installation runs on PHP 5.5.9 and the 5.5 branch in that box is 5.5.38 [12:33:38] Hi :) Is there any way to include codes such as ""@context":"http://schema.org"" on media wiki? [13:06:50] giby giby [15:03:04] Does anyone know how do I render parser hooks within Lua? [15:11:01] nvm, solved it [15:52:21] Hi there--when running refreshImageMetadata.php I keep getting "PHP Warning: Missing img_description_text and img_description_data fields in row with MIGRATION_OLD" as a warning. What does this mean? [16:04:20] https://pastebin.com/v6vZ3Q96 <- however, I can access the site with index.php?title=..., but not with the ip address from the virtual box [16:07:17] Blackwire: is your database schema up to date? [16:08:04] I would guess, that you are missing some fields from your database, otherwise that warning doesn't make sense [16:08:13] harmaahylje: Inasmuch as I've run update.php, yes, but that's it. [16:08:21] https://doc.wikimedia.org/mediawiki-core/master/php/group__Constants.html#gad1fdda37b105a13569d6af3ef59289a8 [16:09:01] (Unless there's something else I should be doing to get things aligned...) [16:09:59] I'd expect update.php to take care of that [16:11:25] I can try adding those two fields as columns to the images table; is there a schema somewhere that shows what theoretically should be in that table? [16:12:20] I wouldn't advice you doing that [16:12:38] (I am a mediawiki noob btw, so take my advice with a grain of salt) [16:12:52] anyway, it is only a Warning [16:13:05] perhaps try running update.php again? [16:13:25] Tried that before even showing up in IRC, haha [16:18:18] https://doc.wikimedia.org/mediawiki-core/master/php/refreshImageMetadata_8php_source.html [16:18:30] so it doesn't come directly from the script [16:18:35] where does it come from then [16:19:16] https://github.com/wikimedia/mediawiki/blob/dcee65673b531ebe39a093ee0c021a926ea74ad9/tests/phpunit/includes/CommentStoreTest.php#L277 [16:19:39] CommentStoreTest [16:19:56] the name doesn't really seem like it should have anything to do with that, huh? [16:20:34] Blackwire: which version of mediawiki do you havE? [16:20:48] 1.30 [16:23:00] https://github.com/wikimedia/mediawiki/blob/409e870719b66cdbfd8cc34667f99fafb9755c7b/includes/CommentStore.php#L273 [16:23:25] seems like CommentStore.php is outputting the error [16:25:33] looks like mediawiki schema manager has failed you then [16:25:42] unless you have manually altered your database, which you already admitted to! [16:34:50] Eh, I manually changed my prefixes instead of using the maintenance script [16:34:56] That's not exactly hardcore manipulation [17:16:04] Blackwire: well yeah... mediawiki migrations just might keep a migrations table though.. [17:16:16] (which usually happens with migration systems) [17:16:34] so maybe that is now out of sync, good luck fixing it [17:17:18] if anyone actually knows, would be nice to hear if mediawiki keeps a migration history [20:25:54] Hi :) Is there any way to include codes such as ""@context":"http://schema.org"" on media wiki?