[00:08:22] quiddity what if you have an actual newline in the text content of the tag ? [00:09:02] so foo[type your return key here]bar [00:20:00] 0.0 [00:24:30] Alphos, I've passed along the suggestion, just in case they hadn't already tried. ty. [08:49:42] Hi [08:52:41] Any idea why passing (5)A as argument to a template which uses it as {{{2|{{{center|}}}}}} would make fail the evaluation? [08:52:56] See https://fr.wikisource.org/wiki/Mod%C3%A8le:Nr [08:53:15] I'm trying to pass {{nr||(5)A}} [08:53:59] In fact I would like to pass [09:32:26] Hello [09:32:50] I wanna disable the functionality of the "Table of contents - Hide" [09:33:07] the table of contents should always be visible [09:35:56] But I cant find any info on that ._. [09:37:34] Xatenev it's in a ;-) [09:38:45] Yea but what happens to the users that disabled that before? [09:39:00] Probably the table of contents is still invisible for them and they cannot change it back for some time. [09:39:11] When I just hide the link via CSS @Alph [09:39:12] Alphos* [09:41:30] Yay, upgrading to 1.27 went smoothly. [09:41:43] hm... [09:41:44] Took a few day of preparation, but the actual upgrade took only a minute or so. [09:41:50] s/day/days [09:43:14] Alphos: Maybe I can workaround this by setting #toc ul { display:block !important; } :O [09:43:27] Then it works atleast and list is always shown^^ [09:43:42] worth a try [09:44:07] Yea that works atleast. [10:19:31] Hello [10:20:17] Hi. [10:24:36] Please help me, I am applying for a media-wiki hackathon, they asked for local instance of mediawiki, i submitted this image http://imgur.com/a/bT5WF , but they mentioned it's wrong, [10:24:47] can anyone help me, what went wrong [10:25:27] are you just viewing the html instead of installing the mediawiki [10:26:50] itspr: if you need more help, please reply to the person asking them to elaborate on their request [10:27:21] itspr: but also note, MediaWiki 1.16.X is a fairly old release that is no longer maintained [10:28:10] my organizer asked for image of "Running local instance of mediawiki in your machine " [10:29:10] please reply to them asking to elaborate why that image isn't acceptable, at the moment we could all be guessing [10:29:32] but do you think, my local instance image is right? [10:29:49] Why would they make you show an image of having a local mediawiki instance? [10:30:00] That's a fairly ridiculous requirement [10:30:06] i know, they are crazy [10:30:26] https://docs.google.com/forms/d/e/1FAIpQLSe_2UMPbHy_6BCAtinB3MFifltu7bga9nSYWOhXrB16n85EDg/viewform?fbzx=7083358423637617000 [10:30:29] in this link [10:32:49] hmm, I guess they want to be sure that people already know enough to install mediawiki [10:35:34] itspr: your example is weirdly missing some interface elements [10:35:47] and is in monobook instead of vector [10:35:59] Maybe try with latest version of MediaWiki [12:09:21] darn, i missed bawolff :-( [12:34:20] Nemo_bis : ping [13:12:12] hello [13:12:23] Hi lbertolotti. [13:13:14] Debra, I think I can solve this problem https://phabricator.wikimedia.org/T120238 [13:14:58] to do that, I need to edit some templates [13:15:40] lbertolotti: Is there anything preventing you from making those edits? [13:17:30] not really [13:17:40] the page is semi-protected [13:18:05] so thought I should let people here know [13:32:56] Meneth and Debra, I've fixed the problem by changing the coding for the template to make it friendly to mobile view [13:37:49] I'm going to use the same procedure to fix the selected biography template too [14:45:18] hello [14:50:07] in lua coding, it's possible to create a table that the header can detect different word, something like (.addheader = Biological classification, Physical characteristics, Sociocultural characteristics) and the other row could be like (.addrow = stuffs, stuffs, stuffs)? [14:51:54] and when we use the template, the css will automatically detect certains words related to these .addheader and .addrow so, that way, i don't have to add the style code since it will be the CSS who do for me [14:57:37] is that possible? [15:00:20] it was for creating that modulee [15:42:26] hello [15:42:36] what is the best channel to talk about the wikipedia app? [15:43:03] hmm, #wikimedia-mobile probably [15:49:31] yep [15:57:39] how do i test that module https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#table i know it's {#invoke:test}} but it doesn't seem to work because i need to add function name... [15:58:09] also, when i type {{#test|t}} it didn't work either [16:05:08] all i get is "script error: the module returned a nil value. it is supposed to return an export table." [16:05:29] Got a link to the script? [16:05:50] that is when i typed {{#invoke:test|bar}} [16:06:10] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#table it's in that link [16:06:40] in the box that say "-- Create table...." [16:07:15] with the t = {} and the t2 = { [16:07:19] you realise table is a just a data structure? [16:08:33] ah? that is because i haven't created any data? [16:08:42] that would explain why [16:08:52] well, depends what code you've added [16:08:59] wait [16:09:59] here what i used as module: https://dpaste.de/GDTr [16:11:04] my intention is to create a table which will be used for different template and that can detect header, row and cel based on keywords [16:14:06] with a simple wikicode like {|Species | Name species | Designation = Sentient | physical characteristics | average height = 1 meters |and so on |} [16:15:45] and the header will detect these word "species", "name species" and "physical characteristics" the row will detect the words before that = designation [16:15:58] the rest will be cel [16:16:25] and beside, it will be styled automatically by the CSS file [16:16:36] that is what i'm trying to do [16:18:29] i was hoping it's that code i found in the scribunto/lua reference [16:23:45] do you know a solution about it? [16:27:58] wb [16:40:55] seriously, why couldn't i get a reply to my problem? it's been 2 weeks i struggle finding the right information about that stupid lua script that will create a proper table as an infobox, not only that, i can't even use that module from wikipedia because it's full of code that i don't even know what i need for my infobox pffff.... [16:41:34] oh yes, their documentations are too confusing and lack of actual example... [16:54:03] the infobox module i'm talking is this one: https://en.wikipedia.org/wiki/Module:Infobox as you might noticed, it's way too many code line and hard to clean them up to simpler module :/ [16:56:21] so, i'm been hunting down the right lua code for what i need [16:57:59] i'm trying to get something like this: http://vignette1.wikia.nocookie.net/central/images/1/1a/Infobox-mlp.png [17:29:00] It looks like a lot of users here, but I haven't found any forums or subreddits or anything for help for us newbs new to the Wiki world... [17:29:14] You can always ask questions here. [17:29:21] ^ [17:29:24] We were all new once. [17:29:39] it's basically the real problem at the moment pffff [17:31:34] MWNo0b: There's mediawiki.org which you could misuse as a forum, but really the big community is here, on Phabricator, and on Gerrit. [17:32:06] Responses on here are pretty quick most of the time. Especially during American or European primetime. [17:32:48] of the right now, it's 7:32pm at my place [17:33:41] it's normally the primetime... [17:39:19] Well, then I'll fav this channel and will probably be a common member for awhile! The first question I have is Infoboxes. For the life of me, I can't figure out how to make an infobox! I did see there are TONS of them for Person, Building, Church, etc... [17:40:26] The Wiki help pages show you the calling code for the box with the parameters, but apparently, there has to be a page made called Template:Infobox_person for example, but what in the world goes in the Template page!? That's what I can't figure out [17:41:26] ^ that is my current situation too [17:41:42] been 2 weeks [17:42:04] No youtube vids, no reddits, no nothing on how to set up Infoboxes. It's like the help pages give you half the info... very confusing [17:42:19] indeed [18:03:05] MWNo0b: On a wiki of your own, I assume you mean? [18:04:01] MWNo0b: Here's the rather simple one I use on my wikis: http://www.eu4wiki.com/index.php?title=Template:Infobox&action=edit [18:04:51] Yes, on my own install [18:05:36] General rule of thumb is to have a basic one like that, and then if you need more to have more specific ones that build on top of it. [18:05:55] E.G., on that wiki, http://www.eu4wiki.com/index.php?title=Template:Country&action=edit builds upon that Infobox template. [18:06:07] I'm hoping to create a massive database for a whole town's history, so i could see using infoboxes for people, locations, buildings, churches, schools, politicians, etc so If I can figure out what goes on these Template pages for each, I can try to make them. The code to call the infobox isn't hard to understand. [18:06:08] I'll look at your link real quick. [18:10:17] Meneth: So you have to have a "root" template before you can make "sub" templates? [18:11:01] So I can't have only one single "Template:Infobox_newsachor" without having "Template:Infobox"? [18:14:29] MWNo0b: Unless it is completely stand-alone, yeah. [18:14:50] But I don't know why you'd want that; if you want things to look consistent, you pretty much need a base template, or you'll be doing a ton of pointless duplication. [18:40:10] back [18:41:25] at the moment, i need to know how to create a module infobox because like i said early, it's very annoying to see a big load of code lines that is related to various infobox system which wikipedia used at the moment... [18:43:46] i need something as simple as this one: http://vignette1.wikia.nocookie.net/central/images/1/1a/Infobox-mlp.png [18:46:10] allaze-eroler: Did you take a look at the infobox template I linked? [18:46:21] true [18:46:34] but that is not module, you have template only [18:47:02] I'm not sure what you mean by module in this context. [18:47:03] what i mean is that i need simplified module that i can use for my mediawiki [18:47:56] take a look at this link : https://en.wikipedia.org/wiki/Module:Infobox and you will understand why i'm frustrating at the moment [18:49:06] Looks like basically just a fancy way to make a template? [18:49:32] Meneth, give me a sec, got called away. I'm looking at links now. [18:50:09] indeed, the reason why they use lua is for relieving the cpu work considering how heavy wikipedia is, especially for trafic [18:50:48] So why not just make a simple template for your wiki? [18:50:48] and don't forget they have around 480 000 templates alone [18:52:14] all i'm trying to do is simplify it to simple thing i need [18:52:19] Meneth, so a "Template:" page has coding for how to display the infobox, and the {{Infobox}} code in a page is the data for it. Correct? [18:52:45] MWNo0b: Sounds about right. [18:53:08] yep [18:53:21] In its simplest incarnation, you'd just invoke {{Infobox|header=blah|content=blah}} [18:54:06] On a site like wikipedia it would be more complex with the code spread out through multiple pages (esp module:infobox) [18:54:23] OK, so you linked me to yours, but I keep reading "Just go to Wikipedia and copy theirs". So it's easy enough for the invoking code b/c they have it plain and simple. But how do I find their Template coding? [18:54:24] yep [18:54:51] MWNo0b: Template:Whatever. [18:55:20] https://en.wikipedia.org/w/index.php?title=Template:Infobox&action=edit [18:55:24] my wiki i have is pretty empty it only have 10% filled with my information related to my universe (book and comics) [18:55:25] !wptemplates [18:55:25] To copy templates from Wikipedia, use Special:Export and check the "Include templates" option to get all the sub-templates, then upload the file with Special:Import on your wiki. You'll also likely have to install the ParserFunctions extension, Scribunto extension and install/enable HTML tidy. You also might need some CSS from Wikipedia's Common.css. You'll also need a lot of... [18:55:47] which it's here: www.allaze-eroler.com/w/ [18:56:08] That above will definitely do the trick if you want to copy Wikipedia. [18:56:10] i already done that and to be honest, it messed up my wiki [18:56:18] Though a lot of their templates are far more complicated than you're likely to need. [18:56:40] that is why i'm looking for simpler version [18:56:58] Very simple infobox: http://www.eu4wiki.com/Template:Infobox [18:57:07] The link I sent you was too simple, it doesn't even have any code in it lol., I'll copy yours and try it. [18:57:30] what you gave me is not lua code... [18:57:37] Why do you need lua? [18:57:47] Most templates are simply plain wikitext. [18:57:57] With maybe some parser functions. [19:00:07] Meneth, I'm on your Template:Building page, if I View Source, copy that CSS type code and make a Template:Building page on my MW, Then it should make an infobox? [19:01:00] lua is useful to create table automatically without getting something like this : https://upload.wikimedia.org/wikipedia/commons/6/60/Excerpt_from_the_core_of_the_Citation_template.png [19:01:01] MWNo0b: Assuming you copy Template:Infobox first, yes. [19:01:27] OK, the "parent" I assume? [19:01:50] I guess? [19:02:28] as you can see, it have many {} stuffs that make the code very hard to read [19:02:56] If you're trying to handle an absolute ton of shit at once that tends to happen, yeah. [19:03:27] Considering your wiki is guaranteed to be more limited in scope than Wikipedia though, it is likely easier to just avoid handling so much different stuff at once ;) [19:03:42] i know [19:03:54] Basically no templates on my wikis look like that despite the first of my wikis being 4 years old now, and having served many millions of pageviews. [19:04:39] the reason is that i want to keep my wiki as light as easy to create like wikia apparently managed to do it [19:05:11] unfortunately, wikia have a really different system compared to scribunto [19:06:11] it's a shame that wikia is well documented on how to create module compared to scribunto:/ [19:07:51] Meneth: What's the class=" for? Should I remove that or change it to something? [19:08:22] MWNo0b: It's so that sub-templates can specify a CSS class if they want different styling. [19:08:30] If you don't need it, you can simply remove it. [19:14:12] the only one i found is this: http://wiki.industrial-craft.net/index.php?title=Module:Infobox [19:14:24] that is something very simple to use [19:14:43] but found out that it create expanded template [19:21:31] Wikipedia's Template:Infobox source page doesn't show any real source it shows: [19:21:40] {{#invoke:Infobox|infobox}} [19:23:05] and I appreciate your help Meneth, and I've made some sense, but you didn't have a person infobox, so I'm trying to learn how to make them from templates on Wikipedia b/c I'll have to keep referring to it for various types of Infoboxes I'll need in the future. [19:23:37] Best of luck, MWNo0b. [19:25:10] What is this code saying exactly? {{#invoke:Infobox|infobox}} [19:25:29] That's calling that Module code allaze-eroler linked earlier, I think. [19:25:51] geez, OK [19:27:07] hi everyone. going through mediawiki's documentation to find how (if possible at all) to restrict certain user groups to certain files. ideally, an editor would be able to upload a file and pick the user group(s) allowed to download this file. can someone point me in the right direction? [19:29:11] hello vulpix [19:29:25] yashafromrussia: you can't restrict file downloading this way [19:29:26] hi [19:29:48] NSFileRepo extension maybe [19:30:03] at most, you could restrict that files can only be viewed by people with access to the wiki [19:30:19] combined with a custom extension for per file restrictions [19:30:21] bawolff: I don't think there's any extension that would allow to do so out of the box [19:31:16] Probably not [19:32:50] allaze-eroler: You made a page called Module:Infobox from WIki's with he crazy long code? [19:33:37] i did a week ago, it make thing messy, i had to hunt down some page that is not needed but ended up reinstalling my wiki [19:34:08] thanks Platonides & bawolff. ill take a look at Extension:NSFileRepo and what i can do with it. might have to write our own file uploader [19:34:20] and so, i'm trying to understand how each portion of code work [19:34:41] i need to know which one i need and which one i don't need [19:35:18] unfortunately, it make thing impossible to understand what these functions work since their comment aren't enough explicite [19:35:38] i mean: not enough details to explain [19:36:13] that is what make thing so frustrating [19:36:14] So from what I see so far: The code to insert into pages is self explanatory for the parameters. That pulls the Template:Infobox page code, which in Wiki's instance refers to a Module:Infobox [19:36:38] I'm now getting: "Lua error in package.lua at line 80: module 'Module:Navbar' not found." [19:36:59] see, that is the problem [19:37:27] and if you check source and look at the end page, you normally get a list of each template that module will call [19:37:47] you will notice what we don't need to get [20:11:05] I have a question on Redirects... I'm using an Extension called NewestPages, and on my Main Page it shows the newest 10 pages in a list. if I have a page for "James David Smith", is there a code for that page to make it an alias for variations of the name, or do I literally have to make a page for "James Smith", "James D. Smith", "James D Smith" et [20:11:05] c and put that redirect code in each one? [20:12:13] There could be a lot for a lot of pages: South St, ,South St., South Street, Southern St, Southern Street, Southern St. [20:18:18] MWNo0b: that looks like a good job for a search engine, and I'm pretty sure search engines like google already resolve such queries giving you the correct page