[00:05:36] Anyone who have a suggestion on how to only allow user creation from known email hosts like @gmail.com or @hotmail.com MediaWiki 1.30.0 [00:36:41] artag: after installing php-mysql you need to restart apache [00:42:36] legoktm: thanks, still the same result though [00:55:25] i seemed to have lots of different bits of php - php5, php7. Removed them all and let apt-get install mediawiki and dependencies and it works again [00:55:53] ah [00:56:07] apache was probably using php5 still [00:56:07] great :D [00:56:37] thanks for pushing me in the direction of php anyway :) [01:39:04] is there a way in mediawiki to see wikitext template parses into without rendering it into html? [01:40:06] Special:ExpandTemplates perhaps? [01:40:19] SMalyshev: ^ [01:42:07] Skizzerz: this may work, thanks! [01:46:08] hmm now I need to figure out why #if adds newline to the result when expression starts with # character [01:47:02] welcome to the parser [01:47:21] newlines are added around block-level wikitext like # and * [01:47:49] is there a way to make it not do that? in that context it's not wikitext, it's part of the url... [01:48:14] there is, forgot it offhand so need to look it up [01:48:40] easiest way is to have #if generate the full url instead of only returning the fragment [01:48:43] I'm doing something like this: [http://example.com{{#if: fragment|#fragment|}} URL] [01:48:49] so that the return doesn't start with # [01:49:24] and it adds newline:( [01:54:25] SMalyshev: workaround is to make it so that the output of the if doesn't start with # [01:54:31] so add the full URL in both branches [01:57:04] Skizzerz: ok, thanks... that'd be annoying since URL is also composite... but I guess no choice [02:00:18] you COULD try to make it so that the if has an empty in front of the # [02:00:23] but I think that'll break the link parsing [02:01:09] yeah tried that, it doesn't work [22:21:00] Hello. Is there a redirect to the article namespace? Similar to Project: redirects to the project namespace which is usually by a different name [22:21:31] http://enwp.org/Redirect:Foo -> http://enwp.org/Foo Something like this [22:21:34] if it worked [22:23:36] Henstepl: do you mean the "main" namespace? It's empty, there's no need to create a fake namespace for that. The canonical form of that namespace is empty [22:23:52] Maybe you could create an "alias" for the main namespace, but that would be weird [22:24:12] But there is not even a very obscure existing alias? Believe it or not I have a reason [22:25:11] We are working on a template repository over at templates.wikia.com unfortunately rather Wikia-centered but getting quite good [22:25:27] What's the reason? [22:26:01] You can certainly create an alias for main namespace, but there's none built in by default [22:26:11] except you can do just a colon in some cases [22:26:24] We have a custom Documentation template we did not program to be copied to the end user's wiki [22:26:28] e.g. https://en.wikipedia.org/wiki/:Main_Page [22:26:40] or the local interwiki [22:26:59] https://en.wikipedia.org/wiki/en:Main_Page [22:27:04] https://en.wikipedia.org/wiki/w:Main_Page [22:27:11] (Which will be different for every wiki) [22:28:55] I did a URL trick on another wiki that I was hoping to do on this one [22:29:03] But I guess it might not happen [22:30:08] I don't really understand the reason you need this. Perhaps if we understood the reasoning, we might be able to suggest an alternative [22:33:23] alright I got a ResourceLoader question [22:33:30] related to gadget defs [22:33:51] I had a non-project namespace as Project: once. I just moved it over the name of that redirect, and then it didn't redirect to the actual project namespace. If there was, suppose, a [[Redirect:Foo]] that redirected to [[Foo]], then I should be able to move another namespace over that, modifying it on only one wiki, yet leaving its functionality unchanged on every wiki it may be copied to [22:35:44] Could I change [[:Foo]] to redirect to [[Project:Foo]]? That couldn't be done, could it? [22:37:01] I don't quite understand what it is you're trying to accomplish [22:37:24] you cannot redirect the main ns to a different ns, but you could make [[Foo]] itself a redirect page if you wish [22:39:08] When I add a dependency in MediaWiki:Gadgets-definition, do I need to also specify submodules? [22:39:33] For example, does dependencies=mediawiki.api also load mediawiki.api.categories? [22:43:04] enterprisey: I'm pretty sure that it does [22:43:10] Skizzerz: thanks [22:43:20] I'm trying to configure a enwiki gadget [22:43:45] (specifically, https://en.wikipedia.org/wiki/MediaWiki:Gadgets-definition#editing - "afchelper") [22:43:58] the code uses mediawiki.api.categories methods, but they're failing unexpectedly [23:39:06] What's the best way to create a sample page/layout to create pages off of? [23:39:24] I don't want to create a page that says "Sample coin page" to copy paste code off of every time I want to create a new coin, it seems choppy. [23:39:28] Are there any alternatives?