[12:34:39] Hi. I am a novice at Mediawiki and got a question about templates. I have a number of pages that have tables that are subject to change. I have an excel file that can generate the tables in wiki format easily, but changing them on the actual Wiki is a lot of manual labor. I would like to copy paste all the tables into a template and give them [12:34:40] parameter names such as table A, table B, table C, and then in the articles using the tables I want to just do something like {{Tables, table A}} so I can change the template with all the tables instead of each article [12:35:17] Is this possible? I can't seem to figure it out from reading about templates [12:37:42] You can probably do it with template parameters [12:38:14] But for ease, I'd probably make the template call sub templates... rather than surrounding template syntax with conditionals and ending up with a rather messy all in one template [12:39:10] Are sub-templates located in the main template article? If so that sounds ideal. If they have individual articles that need editing I'm no better off [12:41:23] "sub templates" are just other templates [12:43:53] Dang, then I would have to edit each of those individually to update the tables, which isn't much better. I realize the template will be messy and unreadable with template parameters, but no one is gonna be allowed to touch it except me anyway, haha. I guess I will look more into that [12:45:48] You could look at using a bot [12:47:40] Yes, thank you! I'll check that out right now [12:48:21] It might be way beyond my skill level though [13:36:44] In case anyone is interested: The way I solved the problem I asked before was this: Create one template for each table, call that template in the relevant articles. Then I use small R script to generate a .txt file for each table and use importTextFiles.php to overwrite the templates with the new tables [14:58:50] In mediawiki is there a more technical or correct term for the main namespace. IE the actual pages. [14:59:00] wikipedia calls them articals [14:59:03] content? [14:59:10] i suppose is is dependent on each project? [14:59:18] content is a good one. [14:59:35] But indeed, it can and does vary between projects [14:59:37] articles [14:59:40] ** [14:59:41] right heh [14:59:42] Not all content is in NS 0 for all projects [14:59:53] I can see that. [15:00:03] I just wanted to avoid using main. [15:00:37] i was thinking just calling them something generic like page, but I was wondering if this would confuse things more., [15:00:54] page and article get mostly used interchangeably [15:01:17] thanks [15:01:20] bbl [15:01:31] if anyone has any other ideas I will read when I get back. [15:11:15] does anyone know of an extension that would allow users to fill in an input box, click submit, and have an article created with the title they typed, with a template substituted in, *without* going through the edit stage? [15:12:15] https://www.mediawiki.org/wiki/Extension:InputBox [15:12:21] I don't know if that has the edit stage.. [15:12:30] it does [15:20:40] Extension:PageForms maybe? I have zero experience with it but it sounds promising [15:28:38] page forms looks extremely complicated for what I want to use it for lol, but I'll look at it, ty [15:55:56] Is there anyway, by default, to configure mediawiki to display subpages if they exist? [16:06:19] is there a way to edit the new page template MAIN [16:36:49] I found the sub page template [16:36:54] https://www.mediawiki.org/wiki/Extension:SubPageList [16:37:03] is the exention that I am looking at now [16:37:31] does anyone know if this can supplement the TOC that is auto generated, or can i edit the TO. [16:37:53] TOC of media wiki to include the subpages template that i have installed [16:37:57] the auto-generated TOC isn't editable [16:38:06] Roger. [16:38:41] Is there any method available to insert something,like a template, under it? [16:39:10] without editing php code. [16:44:52] neoweb: you can put __TOC__ onto a page in wiki markup to control where the TOC appears in that page [16:45:24] by doing that, you can wrap it in extra
s, put content immediately around it, etc. [16:45:32] (this can be done via template as well if __TOC__ appears in the template) [16:50:43] thanks! [16:51:19] So one last thing for now. [16:51:43] When I do 'special' index lists. [16:52:01] the list after a certian number of entries start going horizontal. [16:52:21] best way to keep that in a normal bulleted vertical list? [16:52:29] Thanks Skizzerz [17:04:40] mw-prefixindex-list [17:06:43] you want to keep that to be 1 column always? [17:12:56] I would rather embed it into the Template [17:13:16] but
neoweb: My recommendation would be to introduce a new wrapping div, e.g.
{{Special:PrefixIndex/Foo}}
. Then in site CSS or TemplateStyles you can have ".single-column .mw-prefixindex-body { /* styles to override the default 3 column CSS */ }" [17:13:35] https://usercontent.irccloud-cdn.com/file/k0m37mxW/image.png [17:13:54] the zeros were 1's heh [17:13:55] sorry [17:14:07] yep, have to do it via CSS selectors; inline styles won't work [17:14:47] Thanks! [17:15:45] note that the built-in 3 column style is for mw-prefixindex-body, not mw-prefixindex-list [17:16:03] so just make sure you're overriding the correct class; what I wrote above should work :) [17:18:21] Thanks Thanks Thanks! [18:01:34] Hi I wonder if any can help me, I'm quite new to mediawiki, have been setting up a server and using a specific group for editors rather than have all users edit, and I've come across an issue when users are adding in external hyperlinks. [18:02:25] I wondering if there are any extra permissions needed or problems that I might not be aware of when adding external hyperlinks into a document, as a 'normal user' because as admin, I don't have a problem. [18:07:12] I'm running mediawiki v1.33 on a linux server with Apche 2.4.39, php 7.2.21 & mysql 5.7.23-23 [18:10:01] what is the issue? [18:11:52] when a user edits the page and puts in a hyperlink, to an external site, either by using the pop-up box or direct typing the code eg [https://mediawiki.org MediaWiki] when submit is hit the page errors out with a 500 error [18:12:59] with the hosting provider, at the moment, I'm struggling to find my apache error logs, which doesn't help matters, but I just wanted to check that it wasn't an actual bug. as I can't find anything online about it. [18:13:39] the admin account doesn't have any such problem. which made me think it might be a premission issue. [18:19:50] Arctellion: you'll want those error logs [18:20:02] yea :S [18:20:10] it's possible you have an extension enabled which is causing the issue [18:23:34] i lied [18:23:38] not the last thing for today [18:25:11] I installed visual editor, and I have been using media wiki for years. edit, and edit source is available and work fine...but i keep clicking edit instead of edit source when I just need to do something fast. Any way to change the order of that. [18:26:00] Well I've found int he root directory an error_log which looks like it's a php error log, repleat with stacktrace :D [18:28:34] it's reporting PHP Fatal Error: OOUI\Exception: OOUI\Theme::singleton was called with no singleton theme set. in /vendor/oojs/oojs-ui/php/Theme.php:31 followed by a 6 line stack trace [18:30:13] Arctellion: Does it still happen if you disable all extensions? [18:30:36] This error can sometimes happen if OOUI is not initialized properly, i think [18:30:49] what everysingle one? or just the ones that didn't come with mediawiki [18:30:51] This may be caused by an incompatible version of ConfirmEdit [18:31:28] Oh right, forgot about that. I think that was fixed in MediaWiki 1.33.1 [18:32:39] I've got 1.33.0. [18:33:10] Download 1.33.1 instead [18:33:11] is the upgrade to the minor revision version straightforward or more involved :D [18:33:26] Just basically replace all the files with the new version [18:33:36] Best practise is to still run update.php, but its not really needed [18:33:43] it should be really easy [18:33:44] cool, I'll try that. [18:34:09] *crosses fingers and hopes that's all that's needed* [20:37:54] thanks bawolff sorted the problem :D \o/ [21:21:11] hi everyone ! [21:21:15] im looking for a link [21:21:22] to a proposal for coding a javascript gadget (or something similar) that adds a textbox to talk pages [21:21:28] a sort of workaround for making current talk pages more user-friendly without redoing everything like Flow does [21:21:33] im sure i saw that proposal somewhere but can't find it [21:21:39] anyone knows ?