[17:48:40] Reedy: sorry for interrupting you (the weekend is a good time to ask for me), but can you review my change when you get the chance? thanks :). here's the patch: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/555601 [17:48:55] for me to ask* [17:51:24] (i asked this on the wrong channel, whatever 😉) [18:53:46] hey guys, i have a question: i am trying to set up citations that work the way they do on wikipedia. However, wikipedia's citations are made up of 472895730 or so modules, and I am getting lost and I feel like I've wasted 6 hours tyring to fix it [18:54:10] So I want to know...does anyone have a set of already-made citation templates I can use? things like cite web, cite book, cite news, etc. [18:54:26] Have you tried exporting? [18:54:33] from where? [18:54:49] export one article with citations and check the box 'and all the templates too' [18:55:11] well, I tried exporting a single template from Wikipedia once [18:55:12] then edit the xml to toss the one page if you don't want it... ? [18:55:54] I assume that's what you meant, Reedy? [18:55:58] Templates of Wikipedia are so piecemeal, with so many weird extensions, and so many redundancies, and so many transclusions, that you basically can't do that [18:56:21] So many extensions? There's two [18:56:31] Special:Export has a feature to "include templates" [18:56:36] so if, for example, i tried exporting a page with a single {{cite web}} template on it, it would export about 300 templates and pages and documentation, and none of it would work with Mediawiki [18:56:55] well you want all those 300 pages [18:57:01] and you would just import them wholesale [18:57:30] Not really, i just want if I copy a {{cite web}} citation used in Wikipedia, that it will work on my wiki too [18:57:57] Unless you're going to make it yourself, or unpick dependancies... [18:57:57] @apergos: I tried that once with infoboxes, and it destroyed my wiki [18:58:20] wikipedia's templates don't really work that way. [18:59:26] My hope was that someone else maybe had created a simpler version that I could export. [18:59:42] I would look at one of the newer wikipedias and see what they are doing for references [18:59:53] you might have the language barrier as far as the docs but it could be worth a try [19:00:00] Hii [19:00:25] So like, let's take {{cite web}}. each individual one of the 100+ variables is its own sub-template that calls another template which calls another template, some of which have sockets that are not compatible with mediawiki's socket extensions, some of which use switches that are not compatible with mediawiki's switches. That's my issue [19:00:31] What are guys talkin about ? [19:00:44] Squox: That makes no sense [19:00:45] Sockets? [19:01:01] Templates are made up of MediaWiki syntax, ParserFunctions and Scribunto [19:01:05] Welcome to ym world [19:01:17] Thanks [19:01:31] In this day and age, ParserFunctions is 100% necessary. Scribunto is highly highly recommended [19:01:33] Wikipedia's templates are so complex it is practically impossible to use them in any way compatible with Mediawiki [19:01:39] mahesh: we're talking about ways to set up citation templates on another wiki [19:02:00] But Wikipedia is using it on MediaWiki [19:04:03] OK, maybe i am missing something. Can you go and take a look at Wikipedia's cite Web and see if you can figure it out? Because I've been trying for days. [19:04:19] I have crashed my whole wiki and had to rollback, trying to import a single template [19:04:32] Is your wiki public? [19:05:48] yes: thelostjewel.org [19:05:50] apergos: okay [19:06:42] You have ParserFunctions and Scribunto... So there shouldn't be much missing beyond maybe some CSS [19:10:18] importing the templates by themselves won't break anything unless you already have them in use on a bunch of pages [19:10:35] in which case those pages will have to be rerendered [19:17:02] nope, not working [19:17:29] I get tons of errors [19:18:12] Like, all i need is a set of templates that will allow {{cite web}} {{cite news}} and {{cite book}} to work on my wiki the way it does on Wikipedia, without all the bells and whistles and sockets and 50000 templates attached [19:18:29] it doesn't even need to have all the extra validation stuff, as long as it parses correctly [19:19:05] what exactly did you import as far as templates? [19:19:18] actually nm we can look ourselves [19:19:30] nothing imported, it gave me errors [19:20:06] I'm trying another mediawiki like suggested, to see if that works [19:20:28] https://thelostjewel.org/Special:PrefixIndex?prefix=&namespace=10 [19:20:38] yeah you wo't get very far with just these [19:21:04] I would love some kind of importable template package [19:21:25] I have had to do So MUCH by hand, i am going out of ym mind [19:23:13] ok, I tried an import from another wiki and it worked for Cite Web [19:25:17] okey dokey [19:25:35] didn't work for Cite news [19:26:06] what errors do you get? [19:26:21] https://thelostjewel.org/Template:Cite_news [19:26:36] it imported ok? [19:26:43] no complaints during the import itself? [19:27:02] but the template does not work [19:27:16] https://thelostjewel.org/User:Squox/Sandbox [19:27:22] yes, because you didn't get the accompanying templates [19:27:22] See here, in the references [19:27:32] I did, I selected "include templates" [19:28:09] https://thelostjewel.org/Special:Log/import this doesn't show included templates [19:28:31] it just shows the one page in each case, except for the documentation one [19:29:05] I am doing what you told me to do [19:29:08] Special:Export [19:29:12] "include templates" [19:29:16] Special:Import [19:29:29] look at the xml file before you import... make sure it actually has the other templates in it, not just the one [19:29:39] and if it doesn't? [19:29:55] then there's no point in importing it (sorry0 [19:29:56] ) [19:30:00] That [19:30:00] is [19:30:01] the [19:30:02] problem [19:30:16] I am not trying to be a jerk, but this is literally what i have been doing for THREE DAYS [19:30:18] what remote wiki are you getting it from? [19:30:24] I have had to roll my whole wiki back once [19:30:38] I have tried several wikis with the same result [19:30:40] yep and we've been looking at actual pages and logs for only a few miutes [19:30:49] the one you just tried to do these imports [19:30:53] where did you get them from? [19:31:11] I would really just love to be able to import one XML file that has all the templates I need. Does such a thing exist? Like a "new wiki starter pack" [19:31:32] there really isn't as far as I know [19:31:36] everything a wiki needs to be able to cite, template, and infobox like a pro (TM) [19:31:44] Like...WHY NOT [19:31:44] so, I'm going to ask again [19:32:00] what wiki were you trying to export the templates from [19:32:05] give me a url [19:32:16] I'm going to go look at it. okay? [19:32:52] Wht about GDoC ? [19:33:06] I have tried exporting/importing from the following wikis so far: [19:33:07] https://en.wikisource.orghttps://oeis.orghttps://www.conservation-wiki.comhttps://en.wikifur.comhttps://wiki.srb2.org [19:33:15] https://en.wikisource.orghttps://oeis.orghttps://www.conservation-wiki.comhttps://en.wikifur.comhttps://wiki.srb2.org [19:33:19] agh [19:33:26] the one you tried for um [19:33:30] https://en.wikisource.orghttps://oeis.orghttps://www.conservation-wiki.comhttps://en.wikifur.comhttps://wiki.srb2.org [19:33:38] why is this not working [19:33:44] Template:Cite_news [19:33:52] which wiki for that one? [19:33:59] all five [19:34:05] just now? [19:34:12] the one that failed just now, which one was it? [19:34:25] I'm really trynig to just sort out the one speciic problem; I can't debug any other way [19:34:31] *specific [19:34:34] I just tried it from https://en.wikifur.com [19:34:37] ok. [19:34:46] because it's an established up to date wiki. [19:34:47] let me look at it over there and see what I can figure out [19:34:57] give me a few minutes please [19:35:57] ok so the problem there is that https://en.wikifur.com/wiki/Template:Cite_news is broken on their site: you can see that it references some templates they do not have. [19:36:11] so when you ask for templates to be included, it doesn't help you [19:38:10] https://en.wikisource.org/w/index.php?title=Template:Cite_news&action=edit this version of Cite news looks pretty minimal though [19:38:12] ok, I'm going to try conservation wiki again [19:38:15] maybe you could use that one [19:38:29] or is that too minimal for your needs? [19:39:21] Cite web should basically work if you go from what is on en.wp + the [[Module:Citation/CS1]] module and its dependencies [19:39:26] ugh none of these have cite news at all [19:40:29] that should be a sum total of about 7 module pages plus 1 template page [19:40:47] the module pages are reused for the other CS1 (and 2) templates, so you'll need to add one template on each of those [19:40:55] for each other kind of template [19:42:17] ok so i basically built a cite news by hand really quick [19:42:23] https://thelostjewel.org/Template:Cite_news [19:43:16] loks similar to the wikisource one [19:43:19] *looks [19:44:17] Hi guys, when I go to an article, history and then press the "Compare selected revisions" button, the history closes and I'm back to the article. If I press on (cur | prev) I get the difference between revisions. In the console I don't see any errors. ?uselang=qqx is also not working on the history page. What could the problem be? Where can I find [19:44:18] the method/function that gets triggered when I press the "Compare selected revisions"? [19:48:23] ajay: I found that by looking for the string "Compare selected revisions" in the language/ directory of the mediawiki core repo, grabbing the name of the message ('compareselectedversions') and then [19:48:31] grep -r compareselectedversions includes/ still in the mediawiki core repo [19:48:44] includes/actions/pagers/HistoryPager.php you want to start looking in there [19:49:20] mahesh: I didn't understand what you meant about GDoc, but I'm about to check out from here for the night... [19:50:06] Squox: i hope you can get the rest of your templates sorted. if not it looks like Sky2042 might be able to walk you through an import of the en wikipedia copies if you wanted [19:50:17] have a good evening folks [19:50:29] appreciated, thanks [19:51:56] @apergos thank you