[01:28:41] when trying to request an import for my XML file of revision histories (nearly 4 million KB), the page crashes after a few minutes of processing. would i be correct to assume this is due to my home internet? - am i going to have more luck taking my laptop somewhere with considerably faster internet (eg McDonald's or a library) and trying there? [01:31:28] If you can't get a stable enough connection to get it to upload via the import request form, next best option would be to load it into some kind of file sharing service (e.g. google drive) and create a [[phorge]] ticket, linking the file there. [01:31:28] [02:32:29] are there any guides on how to create day-sensitive templates? [02:35:16] (specifically I want to make a template on the main page of my wiki that shows which character's birthday it is whenever applicable but I'm not sure how to go about that) [03:16:21] [1/2] https://www.mediawiki.org/wiki/Help:Magic_words [03:16:21] [2/2] too sleepy to go in detail but on Equestripedia we just have the time variables here embed an article/ template based off the month and day. [09:42:40] [1/2] we have exactly the same thing. it uses a custom template for converting timezone but is based on the magic words in the link above [09:42:41] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1552253861694152757/image.png?ex=6ab4f090&is=6ab39f10&hm=d3413031a758c95735b6b957af90d41f863d27b5e6cecf612e229cab4e14295a& [09:54:24] feels nice to finally receive my laptop again [09:54:58] and be able to write more comprehensive wiki articles again [10:37:41] Were you relegated to phone editing [10:37:49] Or just advice giving [11:11:42] Oh cool thats exactly what i was looking for [11:11:43] Thanks [11:19:34] taking turns on my brother's laptop [11:19:44] Ah [12:45:34] Yeah [14:38:53] [1/2] I am building a gadget that would work on top of the modelviewer gadget - and I am 99% done. [14:38:54] [2/2] I am just wondering how the two subfolders after /wikiname/ is assigned; e.g "//static.wikitide.net/maillewiki/d/db". [14:42:10] @posix_memalign the code I currently have (while small) can be found at https://maille.wiki/User:Karpeth/common.js [14:50:14] you can get file url using filename with api. there are also some special pages that redirect to file path but they sometimes result in cloudflare challenges so better avoid them. if you're getting the filename from a mediawiki page you can also consider using `{{filepath:` magic word to generate file path in wikitext and read it with js [14:53:36] I am, but I don't understand how to grab the {{filepath}} [14:53:37] [14:55:08] I am trying to change the nonexisting thumbnails of .glb files to modelviewer renders. [14:56:35] thumbnails? on file description page or in a gallery page (e.g. newfiles or unusedfiles)? [14:57:11] category page [14:57:12] https://maille.wiki/Category:3D_models_of_Magus_Sheet [14:58:46] i see. i think using api to query is best here [14:59:16] check. would you link me to an api doc so, I can check how to query? 🙂 [15:00:17] https://maille.wiki/w/api.php?action=query&format=json&prop=imageinfo&iiprop=url&titles=File:Magus_weave_step_01.glb [15:01:22] api doc is at https://maille.wiki/w/api.php?action=help&modules=query%2Bimageinfo [15:01:56] (tho i linked the full url, better use mw.Api in js) [15:23:22] Thanks a lot; I only seem to fail tho, since I am not that good at extracting, apparently. [15:29:35] [1/2] Okay, now it just turns into [object Object]... [15:29:36] [2/2] Sorry that I don't understand this enough. 🙂 [15:30:11] `const api = new mw.Api();` [15:35:22] Thanks - I missed the const declaration, but I still get [object Object]. :/ [15:55:01] miraheze pls dont die on me [17:05:20] mw.api sucks so bad [17:05:27] Need an error response? Tough luck [17:05:44] 2026 and we're still using Ajax wrappers 😭 [17:52:44] but ajax is a coolcuy [18:09:20] https://cdn.discordapp.com/attachments/407537962553966603/1552381363183812608/image.png?ex=6ab5674e&is=6ab415ce&hm=715b32e2fbd0266f7d5efddc162db8f2d7db06faf33271020728bb90597d1865& [18:18:38] how should I go about getting my wiki's custom domain changed? Steward requests/Restricted changes, or Phorge? [18:21:06] The button to the form is in this page: https://meta.miraheze.org/wiki/Custom_domains [18:21:19] I already have it enabled, sorry for not being clear [18:21:34] The domain it was on went dark (old server owner stopped paying for it) so we're moving it to another domain [18:27:56] I believe you would use phorge for that as there's a lot of examples of domain switching and removal on there that I see. [18:28:25] Thanks! [18:28:54] Separately, I just noticed that a couple wikis have custom logos on the webhooks in #global-wiki-feed, how is that set up? Is it one of the logos on managewiki? [18:43:13] <18.748.837.46> is MultimediaViewer the same thing as this [[mw:Help:Extension:Media Viewer]] [18:43:19] [18:45:05] Yes [19:52:10] [1/3] @posix_memalign, @originalauthority @honoka55 I believe that this is what I am doing wrong. [19:52:10] [2/3] href = api.get( params ).done( function ( data ) {return data.query.pages[0].imageinfo[0].url}); [19:52:10] [3/3] If it's unclear, I am trying to define href (which is defined already) as the value of url, but my js and such skills are lacking. [19:57:33] You'll need to make the changes you want to make in the callback inside `done`, instead of outside it. [19:57:56] It's an asynchronous request, which I don't know how to explain in simple terms. [19:59:45] ah. [20:21:03] hmm [20:32:39] https://cdn.discordapp.com/attachments/407537962553966603/1552417434949132389/image.png?ex=6ab588e7&is=6ab43767&hm=4f12ac7ebc68867c925e8016346c3fab740cd1dc3dbb7d36dcb870a1aed6d607& [20:57:57] How do I let users create pages with external links? It seems to be blocking this currently while not telling them why the page is not being created [21:06:49] Does anyone know about "Template:Infobox ship class overview" [21:07:02] Okay, I think I am getting a hang of it. [21:16:28] Give them the confirmed role [21:16:43] or make it easier to auto promote into auto confirmed [21:19:44] Ah I see, so if they get auto promoted to auto confirmed then they can include external links without a problem? [21:22:26] I misspoke, but you can assign the right "skipcaptcha" to Autoconfirmed, however you cannot assign that right to everyone [21:22:56] after you give them that right they should be able to skip captchas for external links, which seem to be buggy and aren't offered under a number of circumstances [21:24:44] [1/2] for us we just reduced # of days to 0 and # of edits to 3 cause pretty much every page has external links through templates and new users were getting no captchas for page creation just like you [21:24:44] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1552430539980677140/Screenshot_20260923_172416_Discord.jpg?ex=6ab5951b&is=6ab4439b&hm=56097ea8aa39304373c4b6b9ca67a2bff48e9d9a6d4c7714b71a334a9b4aed63& [22:38:01] how do i set it up so that i can do interwiki linking for files again [22:59:24] Hey, I came up with an idea, someone should make a ruffle extension for mediawiki, since a lot of content of old internet was made in swf, it could be cool for wikis [22:59:44] Has someone thought of this before? [22:59:56] Itbwoukd be cool [23:12:27] [1/2] @posix_memalign @originalauthority @honoka55 I'd like to thank you three for helping me, but I can't seem to get it working. :/ [23:12:28] [2/2] I believe the asyncronicity interferes with getting the modelviewer up. [23:13:03] You don't need an extension: https://xyy.miraheze.org/wiki/The_Jumping_Jelly [23:14:18] [1/3] It suffices to ping me. [23:14:18] [2/3] Once you have modified the DOM, call `mw.hook( 'wikipage.content' ).fire( content );` where content is the new DOM content. [23:14:19] [3/3] See https://doc.wikimedia.org/mediawiki-core/REL1_41/js/#!/api/mw.hook [23:14:29] Sorry. [23:15:29] I don't get what you're trying to do? [23:15:36] there's already a model viewer no? [23:15:45] Oh, that is so cool! Thanks, I will surely use it [23:16:27] https://klipy.com/gifs/fluttershy-mlp-17 [23:16:28] yes. I am trying to get working models in the categories, using the modelviewer. [23:16:45] [1/2] See https://xyy.miraheze.org/wiki/MediaWiki:Gadget-Ruffle.js [23:16:45] [2/2] And remember to give attribution. [23:16:49] Instead of broken thumbnails. 🙂 [23:17:57] Oh, how do I give attribution? [23:17:57] None of your code actually runs anything to re-scan the DOM though and initialise any model viewers? [23:18:04] Like giving credits? [23:18:22] unless whatever code is providing the model viewer is listening for DOM change events then you're just wrapping every image in a div [23:18:52] Yeah, I suck at this. 😉 [23:18:55] petra's idea probably works [23:25:47] Probably. But I am either too tired or too unknowledgable here for this to work. I am just trying to kludgingly replace all /a with a
/div [23:25:57] Yeah. You can just ask @honoka55 if you are not sure. [23:26:34] Once you do the replacement call the hook linked above with the new content you created so that the model viewer is invoked on the new HTML content. [23:27:50] "with the new content you created" is the part I don't understand enought js for. Sorry if I am wasting your time and/or energy. 🙂 [23:28:39] Oh, I checked, it's on the page, I will check later, thanks! [23:30:31] [1/2] I guess the easiest way to do so is just [23:30:31] [2/2] `mw.hook.fire( $(".mw-body-content") )` [23:38:06] [1/2] Thanks! that worked! Thatnks for taking your time to make me learn this. 🙂 [23:38:06] [2/2] Tomorrow/later, I'll see what I can do to fix the last issue. 🙂