[00:37:38] dmehus, if you're around, I responded to your message in the Discord #general channel [00:42:57] dorito, oh thanks [00:47:28] I wish scary transclusion didn't cause template documentation to also be transcluded [00:47:39] Wanted to use a userbox that was on meta on my login userpage without having to copy it over [00:49:24] Yeah... scary transclusion ignores the tags, if I remember correctly [00:49:27] It does [00:49:32] I ended up with this: [00:49:32] https://cdn.discordapp.com/attachments/435711390544560128/828431121753571350/unknown.png [00:50:43] Oh, do we have that template on Loginwiki? We probably do. If not, since scary transclusion is enabled on Loginwiki, you can use cross-wiki scary substitution to copy the template over to Loginwiki [00:51:19] template docs could be like module docs [00:51:38] you make them in a subpage and it shows automatically on the main template page [00:52:12] It looks like we do have that template on loginwiki, but not [[Template:Uir]] which is necessary [00:52:12] https://meta.miraheze.org/wiki/Template:Uir [00:52:13] [ Template:Uir - Miraheze Meta ] - meta.miraheze.org [00:52:14] Guess I could move that over [00:52:18] Oh, yeah, true, how would you include it then, with #invoke? [00:52:34] I can import that if you want [00:52:51] maybe like normal templates, but eh, I don't know if it's practical for templates [00:53:06] No worries, got it myself [00:53:15] and I should stop making complex templates [00:55:32] :DoneMH: Oh lol. Oh well. Now we have both revisions [00:56:03] It looks like someone else imported it before me also, interesting [00:56:31] Yeah, I just imported it. Not sure if my import was first or not [00:57:08] Yeah I saw that, but someone else imported it in January, but the template definitely didn't exist 5 minutes ago when I tried to use it [00:57:09] so that's weird [00:57:10] But interestingly, your copying over that template made your 11th edit, so you're now autoconfirmed and thus autopatrolled on Loginwiki πŸ˜„ [00:57:22] πŸ‘ [00:58:40] I also redirected the "User in the united states" template on loginwiki to "User from the United States" to match meta naming scheme for that template [00:58:58] And also because the old one on loginwiki had categories relating to Wikipedia instead of Miraheze, lol [00:59:53] [[Template:User from the United States]] on loginwiki was edited by Joritochip with the following comment: Copy from [[meta:Template:User from the United States]] Link: https://login.miraheze.org/w/index.php?oldid=9084&rcid=80194 On loginwiki Dmehus transwikied Template:Uir: Importing [[m:Template:Uir|Template:Uir]] from Meta Wiki per request on [[m:IRC|IRC]] by [[User:Joritochip|Joritochip]]; [00:59:53] https://login.miraheze.org/wiki/Special:Log/import Looks like your copy and paste beat my import by ~2 minutes, so all my import did was import the duplicate revision from Meta and attribute it to Integer [00:59:54] [ Template:User from the United States - Miraheze Login Wiki ] - login.miraheze.org [00:59:55] [ Import log - Miraheze Login Wiki ] - login.miraheze.org [01:00:02] Ah, I see... that's what happened [01:01:19] Gonna look through metawiki to see if there are other userbox templates worth moving over [01:07:06] Okay, sounds good. [01:07:42] dmehus, you could actually probably get rid of the redirect I left here, since it appears nobody was using the old template anyways: https://login.miraheze.org/w/index.php?title=Template:User_in_the_united_states&redirect=no [01:07:42] [ Template:User in the united states - Miraheze Login Wiki ] - login.miraheze.org [01:07:53] yeah I wondered about that [01:08:01] Makes sense nobody was using it since it was broken before [01:11:12] yeah [01:13:12] The Lua error on the User github template, Loginwiki doesn't seem to have the correct version of Module:Category handler/data, so what we've been doing is just removing: [01:13:12] ``` | nocat = {{{nocat|}}} [01:13:12] | usercategory = Users who use GitHub``` [01:13:12] from the copied templates [01:13:21] I just fixed the module [01:13:30] and that resolves it, since user categories are less critical on Loginwiki [01:13:35] oh, cool, nice, thanks :) [01:14:01] haha that's all it was [01:14:04] The issue was that Module:Category handler was using "MΓ³dulo" as the namespace it was requiring from instead of "Module" [01:14:08] just a non-English namespace name [01:14:15] nice :) [01:15:13] Sometimes it's little things causing the problems lol [01:40:59] yeah [01:55:50] #miraheze-testwiki [02:06:31] Just finished redoing my global userpage https://login.miraheze.org/wiki/User:Joritochip [02:06:31] [ User:Joritochip - Miraheze Login Wiki ] - login.miraheze.org [02:06:34] Turned out pretty nice [02:07:29] my wikipage is so bland and boring [02:07:39] mine was too, until just now πŸ˜› [02:09:23] dorito, yeah that's pretty snazzy :) [02:09:33] Lake, do you even have a global user page? [02:09:48] yes I do [02:09:56] https://login.miraheze.org/wiki/User:Lakelimbo [02:09:56] [ User:Lakelimbo - Miraheze Login Wiki ] - login.miraheze.org [02:10:07] I mean, it's better than a big wall of text [02:10:20] Lake, oh heh I never noticed because I always see your name as a redlink on PokeMundo, where you have GUP disabled :D [02:10:32] yeah, I disabled there [02:10:35] Lake, oh yours is nice too :) [02:10:45] I may enable again if Social Profile gets better [02:10:56] and gets rid of the user_wiki [02:11:18] I wish CentralAuth added a magic word that output someone's global edit count [02:11:25] So that I don't have to manually update the edit counter on my userpage [02:11:30] Lake... yeah, or just don't use SocialProfile [02:11:52] yeh, I'm not using right npw [02:11:54] now* [02:12:01] dorito, yeah, that'd be nice. We could probably have that added to a parser function extension Omega might build eventually [02:12:36] but yeah I wish SocialProfile would put the user profile in User profile:Name by default and let the wiki user page occupy User:Name by default [02:13:16] I wish it could just be like fandom does tbh, with the actual userpage below the profile picture and buttons [02:13:25] at least one decent thing they have lol [02:13:26] yeah [02:13:29] I find it odd that the SocialProfile extension allows you to declare foes in a place where people are meant to be a community working together πŸ˜› [02:13:41] dorito, true, yeah [02:13:51] yeah, I think it's reminiscent from old forums [02:13:58] I remember some with the same feature [02:14:14] plus also that extension looks like it's 3000 years old [02:14:36] You technically could disable foes on SocialProfile but [10:59:49] B 1 [13:00:27] hello [13:00:52] I want to know my number of edits on a specific wiki. I have search in my profile and no luck [13:01:44] .mhca Jakeukalane [13:01:44] https://meta.miraheze.org/wiki/Special:CentralAuth/Jakeukalane [13:01:57] Jakeukalane: ^ [13:02:27] thank you [14:54:22] @Kozd ok so, I removed the modules and now it's storing normally πŸ€” a bit weird because the exact same modules don't make any difference on the other page [17:30:36] Hello Joan! If you have any questions, feel free to ask and someone should answer soon. [17:33:34] Hi Joan [17:58:57] Hi, nevermind [17:59:25] I am preparing an e-mail with several questions. [17:59:30] Okay [18:00:02] Let me know when you send it and where and I will get it checked [18:00:09] But we're happy to answer here [18:03:41] Does Joan have any roles? I'm not trying to sound rude or anything in this question. [18:04:14] Eh? [18:05:24] @RhinosF1 I mean, it would be understandable if Joan does have roles in this community. [18:05:43] What relevance is that [18:06:45] No roles, I am just looking for information. It's my first time here. [18:06:50] Sorry, it's just that I was curiously wondering if she's been here before. [18:07:11] >  No roles, I am just looking for information. It's my first time here. @Miraheze-IRC Oh, thanks for clarifying and clearing up the confusion. [18:07:36] Probably some other Joan has been here before, and I usurped her nick [18:08:39] Joan: is it okay to answer here? [18:08:44] Depending on what the questions are, we might also be able to help you here [18:08:45] Anyway, I just sent an email with a few questions. We are thinking about migrating our wiki here. [18:09:46] It's about migrating users and permissions. We already have a working wiki, and we need a new host [18:10:11] the FAQ explains how to migrate content, but i didn't find anything regarding users. [18:10:38] Anyway, it's not urgent [18:10:45] I haven't signed up yet [18:11:13] Joan: we can do a full database import [18:11:29] Oh great [18:12:30] Joan: regrading settings, you can edit most things from ManageWiki [18:12:47] Any suggestions on how to do the export so you can import it easily? [18:13:43] For database just use mysql dump [18:13:57] Pipe to an sql file and then email us that [18:14:13] Excellent [18:14:47] Users should make sure they have an email set to their accounts as passwords won't persist [18:15:31] And their usernames would need to be unique on miraheze or we would have to rename them (unless they own the Miraheze account too) [18:17:38] So my plan would be: 1) signup 2) dump database and send it to you 3) wait for you to set it up 4)In the meantime, contact users and warn them about the change (for the passwords) 5) Test for a couple days, sort out possible user collisions 6) dump latest changes and move to production [18:17:50] Does it look okay to you? [18:18:21] Your dump latest changes, would you want to redo a db dump or just do xml for that? [18:18:42] Whatever works best for you [18:18:44] About accounts, would other miraheze users have access to the private part of the wiki? [18:19:02] Only those with NDAs [18:19:15] No problem then [18:19:23] Stewards, Sysadmins and the new Trust & Safety teams [18:19:37] That's OK [18:20:59] You might want to give your users a bit of time to set emails on their accounts if they haven't yet before doing the db dump [18:23:05] I will check, we don't have that many users. I'll get back to you, but we will probably sign up. [18:23:09] Thanks a lot for your help! [18:35:39] dorito, do you mean the XML dump from Special:DataDump? My understanding is users' private e-mails would not be included in the XML dumps. Private user data, user lists, suppressed revisions, etc. aren't included in XML dumps. That's why when a wiki has its XML dump reimported on a recreated wiki, those users won't exist on the recreated wiki. [18:36:27] It's basically just live + deleted revisions to pages in all namespaces [18:36:38] No, if you read their conversation above they were talking about a full database dump [18:37:19] dorito, oh okay, yeah, we wouldn't be able to provide a full database dump in such an event anyway [18:37:51] They are importing their own wiki to Miraheze, not dumping a Miraheze wiki db [18:37:58] oh [18:38:36] even still, I don't think we'd want to import the full database, as that would cause CentralAuth issues where the users don't exist on Miraheze or a different user exists on Miraheze than existed locally [18:39:00] so in that event, we'd just import the XML, so wouldn't matter about users setting their e-mails [18:39:19] Yeah I wasnt sure how RhinosF1 was going to handle that but it was also mentioned above [18:39:23] Does anyone know how to setup twinkle? [18:39:33] dorito, ah, ok, ack, cool :) [18:41:09] dmehus: there's scripts for that [18:41:28] Importing database dumps on new wikis work fine if you do it rights [18:41:44] @WikiJS | Justin , js mw.loader.load("https://dev.miraheze.org/wiki/MediaWiki:Twinkle.js?action=raw&ctype=text/javascript"); in your personal Common.js [18:45:14] Ok [18:47:34] Okay, so I did that, but where is the β€˜warn’ feature? [18:48:33] I am not familiar with Twinkle, so I am not sure [18:51:23] RhinosF1, yeah, but I assume you'd probably run a script that extracts the XML from a given SQL database eh? [18:52:50] WikiJS, you probably need to set up all the templates locally on your wiki, then customize the locations in your Twinkle options, I suspect, or you may need to set up a local instance of Twinkle then set up your Twinkle templates locally, as the Developers Wiki is set, I think, to use templates on Template Wiki [18:56:45] dmehus: what planet are you on. No, a standard database import [18:58:57] RhinosF1, please remember I'm not sure how a standard database import would work, as I am talking about importing an `database.sql` file. I know that causes issues with CentralAuth in trying to restore a complete database. So what's the script you'd run to import the XML from the full database file? [18:59:59] dmehus: it only causes issues with central auth if you don't migrate the accounts [19:00:16] I wouldn't import any xml [19:01:15] I'd ask infra to import the sql files, run update.php to make sure it's up to date for us, and then run migrateAccount.php [19:04:00] Why not ask Reception? [19:04:11] Or Reception123 [19:04:23] But anyone with db access is what I meant in my head there [19:09:24] what am I needed for? [19:11:00] Reception123: when user above sends sql import, can you actually do it [19:11:19] oh, ok yeah [19:11:21] a task would be nice [19:11:25] I can do the boring stuff to migrate central auth accounts etc, I just need the actual sql [19:11:37] Yeah I'll make sure one gets done when they actually move to us [19:11:49] RhinosF1: do you have any idea why https://phabricator.miraheze.org/T7096 is happening by the way? [19:11:50] [ βš“ T7096 OAuth error on recreated simpleelectronicswiki ] - phabricator.miraheze.org [19:12:17] Reception123: not looked yet but that wiki is screwed. He's saying slots don't exist too. Did you just recreate it? [19:13:21] RhinosF1: oh yeah that was very messy. Basically they wanted to get rid of their list users because it had too many spambots so they wanted me to delete/drop and re-import the wiki [19:13:35] only that didn't work because of the annoying slot error that I couldn't fix with all the methods I knew [19:13:41] Reception123: it didn't work [19:13:50] somehow the import worked on testdeletewiki and I renamed the wiki back to simpleelectronics [19:13:59] so yeah, I guess I shouldn't be surprised that it's messed up [19:16:33] No you shouldn't [19:16:44] But I have no clue what you've managed [19:19:07] RhinosF1: well I tried everything and the XML didn't want to work [19:19:15] what worked before for a similar error didn't want to work here [19:19:53] Fun [19:20:18] and yes, for the record I definitely think it's not worth having that done just to have a clean Special:Listusers [19:21:50] I agree [19:22:03] I strongly advise against ever doing that again [19:22:12] And have no clue what to do about now [19:23:26] Doesnt Special:ListUsers just get filled up because a local account is created any time a user who is logged in globally visits the wiki for the first time? [19:25:23] yes [19:25:26] and in this case it was spambots [19:25:38] RhinosF1: yes, I'll propose to the user that they abandon that idea for their other wiki [19:25:45] as there's so many issues vs rewards [19:26:08] Reception123: who suggested that idea in the first place? [19:27:17] dmehus. Though tbf in theory it does sound good and harmless [19:27:25] I never loved the idea but I didn't think it would go that bad [19:27:51] dmehus: just no [19:28:02] Reception123: it sounds like what my nightmares are about [21:18:22] Hmm, would be possible to insert a template on a page with JS? [21:18:51] like, not just turning on display/visibility on or off, but literally inserting into the page [21:47:44] I don't see why not [21:52:07] well, it's because of the nature of my wiki, eventually the table contents on some pages will get way too large to be divided by tabs [21:52:37] so I was wondering if would be possible to call X template if I select it on a dropdown [21:56:09] You can get the template content with the code below and then use jQuery to append it somewhere or something js mw.loader.using([ 'mediawiki.api' ], function( require ) { var api = new mw.Api(); api.parse("{{User from the United States}}", { wrapoutclass: "", contentmodel: "wikitext", formatversion: 2, disablelimitreport: true }).then(function( html ) { // do whatever with the html [21:56:10] here }); }); [21:58:25] @Lake [22:13:00] I'll take a look in a sec [22:32:12] If you have HTML on the page like html
then with javascript you could do something like: js mw.loader.using([ 'mediawiki.api', 'oojs-ui', 'jquery' ], function( ) { const dropdownItems = [ ["Dropdown selection", "{{Template name}}"], ["Second dropdown selection", "{{Second template name}}"] ], api = new mw.Api(); var [22:32:13] dropdown = new OO.ui.DropdownWidget({ menu: { items: dropdownItems.map(function (item) { return new OO.ui.MenuOptionWidget({ label: item[0], data: item[1] }) }) } }); $(".template-selection-dropdown").html(dropdown.$element); dropdown.getMenu().on('select', function( item ) { dropdown.setDisabled(true); api.parse(item.data, { wrapoutputclass: "", disablelimitreport: true }).then(function( html [22:32:13] ) { $(".template-selection-content").html(html); dropdown.setDisabled(false); }); }); }); [22:32:18] @Lake ^ [22:32:56] Could probably clean that code up in some areas, just a quick version I made [22:34:12] dorito, you can wrap code samples in three back ticks like this, if you want... [22:34:12] ```Line 1. [22:34:12] Line 2. [22:34:12] Line 3. [22:34:12] Line 4.``` [22:34:20] I did do that [22:34:37] Relay must just not pick it up I guess [22:34:45] oh weird, I guess maybe MH-Discord didn't pass it through [22:35:18] I'll pass that on to the #miraheze-bots team [22:35:25] πŸ‘ [22:36:39] dmehus: that's a IRCCloud thing, it's not universal [22:36:53] Sario, ah, what client do you use? [22:37:29] I am also IRCCloud [22:37:32] ah [22:38:16] \\test [22:38:44] RhinosF1, no not forward slashes...backticks, like ``` [22:38:55] test [22:39:00] ```Test 1``` [22:39:07] dmehus: seems to strip it [22:39:11] ```test``` [22:39:33] RhinosF1, yeah seems to just be an IRCCloud issue apparently. Do you know IRCCloud's error reporting system off hand? [22:39:38] diff - :( [22:39:48] dmehus: there is no error here [22:40:14] ` [22:40:17] Sario, error is not on the IRC Cloud to Discord end. It is with messages from Discord to IRC [22:41:07] dmehus, if you send a multi-line codeblock from IRC it displays wrong on Discord also.. like that "Line 1" "Line 2" "Line 3" thing you posted earlier showed up like this: [22:41:08] https://cdn.discordapp.com/attachments/435711390544560128/828761194319052820/unknown.png [22:41:16] dmehus: i'd guess you could file a bug with discord-irc [22:42:12] Unless that was intentionally sent in multiple messages to show the syntax, which you might've been doing not sure [22:42:27] Three back ticks tells the IRCCloud client to wrap the text in a code block, even if the relay bot didn't strip them there still wouldn't be a code blok [22:43:52] We would have to add a function to the Relay bot to recognize the backticks (or other indicator) to process that as a code block [22:44:05] oh, that could work, yeah [22:44:26] dorito, ah, interesting [22:50:23] test 2 [23:00:59] That's like the ping pong command. [23:13:55] test 3 [23:14:10] ```test 4```