[00:23:12] Hi, there is any short way to write in wikitext: "if (a) or (b): do..."? [00:23:52] 'a' and 'b' in this case are checks whether some (different) params exists in the current template context [00:28:49] Found a hacky way: {{#if: {{{a|}}}{{{b|}}}| yes |no }} [11:01:47] hi [11:04:39] anyone [13:34:07] Hello [13:37:14] How can I publish the wiki? [13:38:29] What do you mean by publish? [13:39:45] Make it be a website [13:40:08] Where is your wiki hosted? [13:41:15] I don't know. When I dowmloaded the .tar file, it doesn't redirect to localhost/wiki [13:41:54] What is it? [13:42:01] Have you setup a webserver? [13:42:07] No [13:42:30] !install [13:42:30] Installing MediaWiki takes between 10 and 30 minutes, and involves uploading/copying files and running the installer script to configure the software. Full instructions can be found in the INSTALL file supplied in the distribution archive. An installation manual can also be found at . See also: !download [13:51:08] What do I need to do after installing the .tar [13:52:45] install a webserver, php, possibly mysql [13:52:54] Put the tar stuff into a web accessible directory [13:53:00] Go to the webserver on your browser.... [13:53:07] It's all in the instruction manual linked above [14:36:42] im a proud to be an american Sikeeeee Fuck donald trump yeh fuck donald trump [14:44:29] MW 1.34.2 Playing around with MW and desiring to import WP pages. Lua challenges abound. Would it be wiser to reinstall and import templates from MW such as Infobox as opposed to the complex WP interactions? Thanx [14:50:19] Or is there a different convention that I am not seeing. Example: https://digitalmatrixgroup.com/index.php/Template:US_state_navigation_box looks nothing like its WP companion I imported [14:51:32] You're probably missing site CSS and/or dependant templates [14:52:04] I pulled the MW CSS and Common over [14:52:13] site JS too? [14:53:43] Would need a link but I presume so ... so many so far. I make sure I tick all three boxes when I export [14:54:09] Yeah, Special:Export won't necessarily get site/skin js and css [14:57:20] Yeah imported the JS. Thanks I'll keep plodding around and asking questions periodically. Appreciate the feedback! [14:58:33] Unfortunately there's quite a bit of dynamic-ness in there that makes it a bit awkward [14:59:33] All good Rome wasn't built in a day (y) [15:19:58] Moved on to pushing Wikibase into play via composer to alleviate Lua errors. Get Fatal exception of type "Wikimedia\Rdbms\DBQueryError" [15:21:30] !debug [15:21:30] For information on debugging (including viewing errors), see https://mediawiki.org/wiki/Manual:How_to_debug . A list of related configuration variables is at https://mediawiki.org/wiki/Manual:Configuration_settings#Debug.2Flogging Also see https://mediawiki.org/wiki/Manual:Errors_and_symptoms [15:21:46] DB query error is most likely missing DB tables [15:22:16] Ah, will purse. thx [15:23:54] When I run the link to populate I get: This script must be run from the command line. I am on shared hosting can I run this via Composer? [15:24:26] No [15:24:35] composer is basically a package manager, it's not a script runner [15:26:19] I have something called Terminal. Can I do something in there to force it to run the maintenance (triggers a 403 error from the web) or the populate? [15:27:27] Seems likely, yeah [16:48:47] @Reedy So, got it all installed. Will probably put a paragraph up on MW Talk section about how I did it for Shared Hosting. Triggers new errors, though, SMH ;) [16:48:58] What are they [16:49:44] Interesting thing only issues are on Infobox company. All other infoboxes rocking. Lua error in Module:Wd at line 196: attempt to call field 'getGlobalSiteId' (a nil value). [16:50:24] https://digitalmatrixgroup.com/index.php/Caliber_Home_Loans [16:51:59] mw or mw.wikibase is nil [16:53:58] >Wikibase Client provides a Lua Scribunto interface that implements functions to access data from the Wikibase repository, if the Wikibase Client configuration enables allowDataTransclusion [16:54:00] https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua [16:54:37] triggered all the scrips from https://www.mediawiki.org/wiki/Wikibase/Installation to intall repository and client. Triggered composer and had host trigger the maint, update, populate ... going there thx [17:02:16] says Extension but I don't see anywhere to download/install? [17:03:10] Scribunto installed already ... have a call in localsettings to both repo & client/ExampleSettings.php for Wikibase do I need to build that out into something? [17:06:52] https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/client/config/WikibaseClient.example.php [17:07:00] That doesn't enable allowDataTransclusion though [17:07:41] ExampleSettings doesn't do very much either, as it's guarded with if ( false ) [17:08:21] Ah, let me go dig around and thanx! [17:15:40] $wgWBClientSettings['allowDataTransclusion'] = true; [17:15:53] after loading the extension should in theory do it (based on the docs) [17:22:31] Hi, we created a wiki and were wondering if it is possible to get some metrics for the wiki [17:26:19] What sort of metrics? [17:27:15] For example how many times certain files were accessed [17:31:03] Don't have any specific answers... But things like https://www.mediawiki.org/wiki/Extension:HitCounters or stuff from https://www.mediawiki.org/wiki/Category:Web_Analytics_extensions [17:34:03] I see. Thank you! [18:48:07] Hi, I am unable to locally setup wikipedia API locally. Has anyone been able to do that? [18:51:43] nice, wait 80 seconds [19:42:47] please help with JS question about mw.loader.load() https://www.mediawiki.org/wiki/Topic:Vsx8vcdw5z7zg8p5