[00:08:50] works like a charm, thank you Platonides! [00:09:47] you are welcome :) [00:10:02] https://www.mediawiki.org/wiki/Help:Templates [00:58:13] Hey guys, so I've set up MobileFrontend on my website [00:58:24] But for some reason the mobile version looks extremely different to Wikipedia's [00:58:29] Any ideas why? [00:58:59] Also, how can I find out specifically which plugins/templates/whatever Wikipedia is using? [00:59:07] so that I can install that on my site too [01:07:51] Ivy, maybe you're around? ^_^ [02:24:50] How do I use: #ifexpr: {{LOCALHOUR}} = [[21|22|23]] ? [02:44:03] Hi DeepChill. [02:44:21] DeepChill: The wiki page "Special:Version" will tell which extensions are installed. [02:44:29] Hi David_Hedlund. [02:44:54] Ivy: Hi there. [02:44:57] David_Hedlund: Do you have the ParserFunctions extension installed? [02:45:03] Ivy: Yes. [02:45:07] #ifexpr: comes from the ParserFunctions extension. [02:45:23] LOCALHOUR may not be a magic word. [02:45:25] !magicwords [02:45:25] For more information about creating magic words and their inner workings, see . For a list of magic words, please see . [02:45:39] Oh, guess it is. [02:45:39] Ivy: LOCALHOUR works for me. [02:45:46] Cool. [02:46:01] Ivy: This too: {{#ifexpr: {{LOCALHOUR}} = 12 | The meeting is active }} [02:46:18] Ivy: But the meeting are these hours: 12, 13, 14 [02:46:21] You're asking how to do multiple hours? [02:46:27] Ivy: Exactly. [02:46:28] You could probably do a range? [02:46:39] Ivy: Even better. [02:46:47] {{#ifexpr: {{LOCALHOUR}} > 21 and {{LOCALHOUR}} < 23}} might work. [02:46:48] 12-14 [02:46:54] I forget if AND is supported. [02:46:58] !parserfunctions [02:46:58] "Parser functions" are a way to extend the wiki syntax. ParserFunctions is an extension that provides the basic set of parser functions (you have to install it separately!). For help using parser functions, please see . For details about the extension, see . [02:47:46] Otherwise, you can follow the else branches. [02:48:33] Like {{#ifexpr: {{LOCALHOUR}} = 21 | true | {{#ifexpr: {{LOCALHOUR}} = 22 | other true | false }} }} [02:52:10] Ivy: Thank you very much! [02:59:42] you could probably do a #switch i guess [03:01:40] {{#switch: {{LOCALHOUR}} | 12 = Da be a meeting | 13 = Meeting in progress | #default = purple people eaters}} [03:01:43] not tested etc [03:02:00] also page caches etc may break with {{LOCALHOUR}} [03:02:48] p858snake, Ivy: How do I use equal to or less/more? [03:02:58] Like => [03:03:43] I'd like to change {{#ifeq: {{LOCALDOW}} | 5 | {{#ifexpr: {{LOCALHOUR}} > 11 and {{LOCALHOUR}} < 15 | green | black}} }} to this: {{#ifeq: {{LOCALDOW}} | 5 | {{#ifexpr: {{LOCALHOUR}} => 12 and {{LOCALHOUR}} < 15 | green | black}} }} [03:03:54] See the "=> 12" part [03:08:41] => did work by the way. [03:08:56] Sorry, I'm a bit tired. [03:10:06] p858snake: What did you mean with: 'also page caches etc may break with {{LOCALHOUR}}' ? [04:18:44] Why do I get this error at https://directory.fsf.org/wiki/Template:IRCBox: Expression error: Unrecognized punctuation character "{". [04:19:08] It works fine in https://directory.fsf.org/wiki/Template:Sandbox2 [04:20:05] I'm trying to indicate the when the meetings are active for people who want to attend to the Free Software Directory meetings so any help is useful. [04:20:38] Ivy, p858snake: Still awake? [04:34:30] David_Hedlund: when there is no start_time parameter, {{{start_time}}} will be replaced by the literal string '{{{start_time}}}' and #ifexpr's expression parser doesn't like that [04:35:18] re: your earlier question, when you use {{LOCALHOUR}} cache expiry of the page will be reduced to 1 hour [04:35:56] tgr: Ok, so how do I use start_time [04:36:08] what do you want to do? [04:38:55] tgr: https://directory.fsf.org/wiki/Template:Sandbox2 shows a green border, that is exactly what I want. But https://directory.fsf.org/wiki/Template:IRCBox trows an error (see https://directory.fsf.org/wiki?title=Template:IRCBox&action=edit) [04:39:23] I mean, what do you want to do when the start_time parameter is not supplied [04:39:45] tgt: add black border [04:40:13] you could just use {{{start_time|0}}} [04:40:43] that will default to zero, and probably the page is not viewed much at midnight [04:42:03] if you want it to be less hacky then you need to do something like {{#ifexpr: {{{start_time|-1}}} != -1 and {{LOCALHOUR}} >= {{{start_time|0}}} and... [04:43:04] tgr: {{start_time|0}}} worked like a charm. [04:43:43] tgr: What's the benefit of using start_time|-1 ? [04:44:31] the border won't change to green when start_time parameter is not supplied and someone looks at the page between 0 AM and 1 AM [04:59:58] tgr: Thanks! [05:17:37] tgr: The box is not green any more: https://directory.fsf.org/wiki/Template:Sandbox2 [05:18:48] tgr: LOCALHOUR is "00", and I've set start_time=00 in https://directory.fsf.org/wiki/Template:Sandbox2 [05:19:16] not Friday though? [05:19:47] * David_Hedlund face palm [05:20:46] tgr: I'll ad an option to choose day. [07:01:32] is it possible to transclude only the first section if the section name is a variable? [07:58:04] Hi, I tried storing data in my template by #cargo_store but my table seems to be unaffected even after executing #cargo_store the code is {{#cargo_store:_table=Authors|Country={{{Country|}}} }} where Authors is my database table can anyone help me [08:30:42] The above problem is arising because the code inside is not executing but can't understand why they are not executing ? [09:03:09] hi there, I just tried to add a custom namepsace into my mediawiki without success I think [09:03:24] I followed the process on https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Creating_a_custom_namespace [09:03:52] but when I try to create a page : Foo:Test, I reach a Foo:Test name... Shouldn't it be something else ? [09:04:42] do I have to do some update ? [10:18:49] A weird bug report, and I can't reproduce. T186399 [10:18:49] T186399: User reports that "Watch this page" does not work during editing - https://phabricator.wikimedia.org/T186399 [10:19:22] Anyone with an idea what this can be? How to track it down? [10:29:19] Hiya. I want to / need to set up SUL on Consumerium.org. I hear Extension:CentralAuth is difficult to install and configure but I hope that having only one wiki now so there is no need to deal with any merges makes it considerably easier [10:30:07] Then I'm thinking of setting up the installation as a "Wiki family" in order to add the 2nd wiki (and 3rd and 4th etc.) [10:30:24] Then I need a way to let the wikis tap into Wikidata's body of knowledge [10:30:42] and last step is to set up Wikibase repo & client for Consumerium-specific data [10:31:08] Does this sound reasonable? Any help anyone can offer? [10:41:13] jubo2: look at doing shared user tables [10:41:45] p858snake: but I totally want the single login to all the wikis [10:42:41] Now there is only one user database so CentralAuth should not be super-complicated I hope [10:43:27] jubo2: https://www.mediawiki.org/wiki/Manual:Shared_database [10:43:53] you essentially share the usertable between all the wikis, so its single login [10:44:24] p858snake: oh so it seems [10:47:33] p858snake: do I understand right that if the user-table is shared between the wikis then logging into one wiki will log the user into all the wikis? [10:48:05] you can share the session table by looks (further down on that page) [11:42:14] I just tried to add a custom namepsace into my mediawiki without success I think [11:42:25] I followed the process on https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Creating_a_custom_namespace [11:42:28] but when I try to create a page : Foo:Test, I reach a Foo:Test name... Shouldn't it be something else ? [11:44:01] Hi all! :D [11:45:12] In the ReplaceText extension (more precisely in Special:ReplaceText page) does the "Original text" field require line breaks represented as "\n" in order for a match such as "\n*" to work? [11:59:29] Found it: [[.newline.]]* [12:26:02] Agh.... jobs are not run in my copy it seems... :S [12:26:14] Wel well, gonna do the mas replace manually. [13:00:13] Hello! Please I am trying to run maintainance/update.php and I get errors like: Error: Missing one or more required components of PHP. [13:00:13] You are missing a required extension to PHP that MediaWiki needs. Please install: * mbstring → WhitePhosphorus joined (~whitephos@wikipedia/WhitePhosphorus) [13:02:13] I have installed mbstring and have restarted apache server but I still get the error [13:02:14] any help? [13:11:31] noela: you maybe have to activate it ? [13:11:39] in some php.ini file ? [13:11:47] you should ask in a php channel ;o) [13:11:59] Ok! thanks [15:32:46] Hiya and Big Thanks, Thanks, Thanks for the awesome wiki software [15:34:47] I want to practice making a wiki family (consisting of 2 wikis). I currently have one wiki. I want both of the wikis to share the user database with http://www.mediawiki.org/wiki/Manual:Shared_database but I think I want to move the user database to the English language implementation stage wiki when we get to that point [15:38:16] So I'm thinking .. when it is time to put the first implementation stage wiki out I can grab the users table and insert it into otherwise empty wiki and switch the other wikis in the wiki family to use that database as their source of user information. Does this sound ok? [16:42:00] how can i cahnge default main menu? [16:42:42] change default main page, sorry :D [17:48:04] Hi punkgeek. [17:48:05] !mainpage [17:48:05] To change which page is the "main page" of your wiki, edit MediaWiki:Mainpage. [17:48:30] You can move the existing main page with the "Special:MovePage" feature to preserve the page history. [21:32:28] hello? [21:34:23] Where is everyone? [21:51:19] Hi, bye.