[00:50:21] Eh? [01:40:17] <.labster> I guess that person died. [01:42:48] Well, I hope not, maybe they just ran out of phone charge. [02:14:58] sorry to ask again, but is Anonnotice currently working? i cant seem to get it to display, though Sitenotice does display :? [02:15:03] (when logged out, ofc) [02:32:19] [1/2] is it possible to do advanced searches based on categories? for example, search the wiki for items that are under both Category A and B, etc? [02:32:19] [2/2] it's not too terribly relevant for now on my wiki, but it is a feature that would be useful so im wondering if it's natively possible. or would I have to rely on an extension for that sort of querying ability [03:22:11] supposedly CirrusSearch can do that, but i can't get it to work yet [03:22:18] but mediawiki does not by itself have that functionality [03:31:29] [1/2] i see, I saw an announcement about that, supposedly they want to eventually get cirrussearch on all of miraheze yes? [03:31:29] [2/2] maybe that means in time I'll have the feature then haha. i don't think my wiki qualifies for the beta test of it [03:32:32] [1/3] Quick question for ya'll. I'm working on a bot for a wiki that I'm an admin of. When I attempt to create a new page, I get the follow response: [03:32:32] [2/3] ```{'edit': {'captcha': {'type': 'hcaptcha', 'mime': 'application/javascript', 'key': 'some_key', 'error': 'hcaptcha-api'}, 'result': 'Failure'}}``` [03:32:32] [3/3] Is there any wiki setting or something I can change to allow my bot to create/edit the page? (It uploads images just fine) [03:34:28] Give your bot a group (such as bots) with the `skipcaptcha` right IIRC (but maybe an wrong just going on memory here) [03:35:01] Thanks, I'll give it a shot! [04:39:13] [1/2] (Posting this here for the report - searches using the ``deepcat`` keyword (or the "Pages in these categories" field in the Advanced search interface, which is the same) return this) [04:39:13] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1203560364546072616/image.png?ex=65d189ef&is=65bf14ef&hm=2215278573d54653e243e30ef8ebc446b7857ef968f6893c0444ab7a33dd003e& [04:48:11] Oh yes, `deepcat` won't work unless we're Wikimedia. I disabled that option on WikiTide but forgot to disable it here as well. [04:48:19] It should really be disabled by default [04:49:16] also turns out `incategory` is what i was looking for anyway, and that type of searching is currently possible [04:53:40] does this work w/ spotify? [05:24:29] I thought SMW could be used for that also? [05:25:24] I guess you have to configure the complex service for it though lol [05:25:34] [05:45:47] I don't use Spotify so I haven't made that [06:20:51] Hi, I heard CirrusSearch is usable on MH and I did request on Steward request [09:02:20] [1/3] → Question: [09:02:21] [2/3] How do I create a collapsible menu for Mediawiki, like is done here?: [09:02:21] [3/3] https://meta.miraheze.org/wiki/MediaWiki:Sidebar?useskin=metrolook [09:54:07] The sidebar is a part of the skin, IIRC, so that would probably require some work with CSS [10:05:38] [1/2] Might be here on Phabricator? https://phabricator.wikimedia.org/diffusion/SMTL/browse/master/MetrolookTemplate.php [10:05:39] [2/2] I'm CSS-illiterate but for this particular skin that's what I'm seeing referenced [10:14:38] Thanks [10:28:39] But that's only what you can use if you can edit the php. I can't [10:41:33] SKL made collapsible sidebar w/ JS, we use Timeless and old Vector skins [10:41:58] link? [10:43:02] [10:44:08] [10:44:19] there might something else I'm not sure [10:45:58] it's the "▶️ Browse wiki" part [10:47:03] Where do I find the page for my original wiki request? It's only been a few hours, but I want to make sure I didn't make a mistake. [10:48:02] on [[Special:RequestWikiQueue]], you should be able to find your request there [10:48:02] https://meta.miraheze.org/wiki/Special:RequestWikiQueue [10:48:17] [10:48:28] you can filter by status or your username [11:10:20] [1/2] Concept that I’m trying to flesh out but not sure where to start: [11:10:20] [2/2] I want to create a template where it’s invoked and you give it a particular string. It then returns a complimentary string defined within the template. The issue is volume — I thought #switch might be good but it apparently isn’t great to use for situations beyond a hundred branches. I’m not sure how many string pairs I want to use but I was ballparking 500-600. [11:41:32] (Just a side note:) Doesn't everyone else think about a round Pizzabox when we see @sailworldbuilds 's avatar? 😄 [12:15:14] that seems like something you'd use a lua Module for, my condolences [12:15:59] I think so too. [12:17:51] [1/4] {{#ifeq: {{{1|}}} | hello | Hi there! | [12:17:51] https://meta.miraheze.org/wiki/%23ifeq:Template:_%7b%7b%7b1 [12:17:51] [2/4] {{#ifeq: {{{1|}}} | goodbye | See you later! | [12:17:51] https://meta.miraheze.org/wiki/%23ifeq:Template:_%7b%7b%7b1 [12:17:52] [3/4] Sorry, no compliment available for that. [12:17:52] [4/4] }}}} [12:18:26] Would this be something you could use? [12:20:58] [1/7] Another approach would be to store the string pairs in a separate page or template and use parser functions like #titleparts, #explode, or #arraymap to retrieve the corresponding compliments. This method would allow for better organization and easier maintenance, especially for a large number of string pairs. Here's a simplified example: [12:20:59] [2/7] {{#switch: {{{1|}}} [12:20:59] https://meta.miraheze.org/wiki/%23switch:Template:_%7b%7b%7b1 [12:20:59] [3/7] | {{#titleparts: Template:Compliments|1}} = {{#titleparts: Template:Compliments|2}} [12:20:59] https://meta.miraheze.org/wiki/%23titleparts:Template:_Template:Compliments [12:20:59] [4/7] | {{#titleparts: Template:Compliments|3}} = {{#titleparts: Template:Compliments|4}} [12:20:59] https://meta.miraheze.org/wiki/%23titleparts:Template:_Template:Compliments [12:20:59] [5/7] ... [12:21:00] [6/7] | default = Sorry, no compliment available for that. [12:21:00] [7/7] }} [12:24:17] that's not gonna work because you're not allowed that many parser functions nested [12:43:02] Okay. A module it must be then [13:41:37] I can’t unsee it now 😂 [13:43:34] I was afraid that might be the case. Oh well, guess I know what I’m doing with my free time this week. If I’m lucky someone’s written a similar module before that I can commandeer. [13:46:07] I was thinking about making a reference table for documentation later, but alas if it’s got to be a module I may as well just bake it all in. [13:54:05] today's the 1 year anniversary of me making my wiki 🥳 [14:00:02] [1/11] A module like this could work with just [14:00:02] [2/11] ```lua [14:00:03] [3/11] local tab = { [14:00:03] [4/11] ["string 1"]="result 1", [14:00:03] [5/11] ["string 2"]="result 2", [14:00:03] [6/11] ["string 3"]="result 3" [14:00:04] [7/11] } [14:00:04] [8/11] function p.ReturnString(f) [14:00:04] [9/11] return tab[f.args[1]] [14:00:05] [10/11] end``` [14:00:05] [11/11] So for example ``{{#invoke:ModuleName|ReturnString|string 1}}`` would return ``result 1`` and so on. Edit the contents of the initial table as you want. [14:00:05] https://meta.miraheze.org/wiki/%23invoke:Template:ModuleName [14:02:25] [1/4] Ah and maybe adding error messages for missing/invalid strings would be good - you can replace ``return tab[f.args[1]]`` with something like [14:02:26] [2/4] ```lua [14:02:26] [3/4] return (not f.args[1] and "Parameter expected") or tab[f.args[1]] or "Invalid parameter" [14:02:26] [4/4] ``` [14:02:42] Yeah for something in the hundreds Lua is probably good [14:22:13] Yup. Especially if you want to store more than just strings or print lists of your data etc. [14:23:01] Parser functions are generally more suitable for simple logic on pages instead of doing things in bulk [15:22:58] while we are at Lua topic anyone has an nice simple example of endless table done w/ Lua? [15:42:34] or I'll just go template as the head and end of table, sub template as rows/cells [15:42:48] directly on pages [15:43:00] a bit clunky [15:44:07] but I doubt I'll manage to do it considering how I initially coded them w/ loads of if's [15:51:23] Make it in spreadsheet, and convert it to a wikitable? [15:51:29] 😉 [16:52:06] @maulmachine , thanks for bearing w/ us, your wiki's been approved so you're good to go on getting that import ticket filed [16:52:32] ! [16:52:34] Okay [16:52:53] I am compressing the .xml file and making a 7z of the image dump now [16:55:39] https://discord.com/channels/407504499280707585/407504500136607745/1203433655905681408 me when I can’t get a Harej autograph [16:55:58] :xsob: [16:56:24] [1/16] Something like..? [16:56:25] [2/16] ```lua [16:56:25] [3/16] function p.EndlessTable(f) [16:56:25] [4/16] local tab = "" [16:56:25] [5/16] for i=1, #f.args do [16:56:26] [6/16] local row = "" [16:56:26] [7/16] for cell in f.args[i]:gmatch("[^/]+") do [16:56:26] [8/16] row = row..""..cell.."/td" [16:56:27] [9/16] end [16:56:27] [10/16] tab = tab..""..row.."/tr" [16:56:28] [11/16] end [16:56:28] [12/16] return ""..tab.."/table" [16:56:29] [13/16] end``` [16:56:29] [14/16] So that e.g. ``{{#invoke:ModuleName|EndlessTable|row 1, cell 1/row 1, cell 2|row 2, cell 1/row 2, cell 2}}`` returns ``
row 1, cell 1/tdrow 1, cell 2/td/tr
row 2, cell 1/tdrow 2, cell 2/td/tr/table``, and you can have as many rows and cells as you want. (Of course you can change the cell separator to something els [16:56:29] https://meta.miraheze.org/wiki/%23invoke:Template:ModuleName [16:56:30] [15/16] e than ``/``) [16:56:31] [16/16] Using html tables here, I wonder if there's a way to use wikitext and expand the table syntax :ThinkerMH: [16:59:41] @maulmachine approved! [16:59:59] when you've got the file, feel free to create a task on [[Phabricator]] and link it [16:59:59] https://meta.miraheze.org/wiki/Phabricator [17:00:00] [17:02:50] [1/3] I suppose this would work best w/ constant amount of columns? [17:02:50] [2/3] what if I have columns which are added w/ certain parameter? [17:02:51] [3/3] also html tags are good lol [17:09:16] As it is if some rows have empty cells due to a varying number of columns I guess you can just leave them empty, ``{{#invoke:ModuleName|EndlessTable|row 1, cell 1/ /row 1, cell 3}}`` or something. Though there could also be a more complex way where cells have keys instead of indexes. [17:09:16] https://meta.miraheze.org/wiki/%23invoke:Template:ModuleName [17:39:16] wait i'm a huge stupid [17:51:58] Thank you! The .7z archives are being uploaded to Google One now [18:00:15] Also how do i make gallery images not opening in different page, but instead opening in the same page but the image is bigger? [18:11:04] [1/2] no, only members should be able to see them [18:11:04] [2/2] if you mean raw file links, they'll render differently from public wikis [18:11:28] enabled MediaViewer extension [18:14:47] Is there any chance we can get assistance over on WikiTide, I've been awaiting a DataDump for nearly 2 hours, and someone in the discord has been awaiting a discord dump for what appears to most of the day [18:19:32] discord dump? [18:19:49] can i deactivate recent changes? [18:20:07] XML dump, as we're migrating the wikis (I presume he is too) ahead of the February 20th deadline [18:20:57] p0ggl: wouldn't just for example removing it from the sidebar be enough [18:21:13] [1/4] no, it's a core part of MediaWiki [18:21:14] [2/4] you can remove the link from sidebar tho [18:21:14] [3/4] if the wiki is private, only members can see it [18:21:14] [4/4] the only page left being public would what's listed in `MediaWiki:Mainpage` [18:22:32] may I ask what's deadline? [18:23:06] and if the wiki is on WikiTide, it's gonna be merged w/ Miraheze anyway? [18:25:21] [1/3] "You can take either of two approaches to migration. You can handle it yourself (easier for you to resolve issues) or you can let us handle it. [18:25:21] [2/3] Handling it yourself is quicker and may help avoid issues that would occur if we handle it. If you handle it, the process would be as follows..." [18:25:22] [3/3] The deadline is for a total wind down of operations on Wikitide. As some wikis would prefer to migrate over before the merger rather than whatever other little bits there would be the work on WT/MH's end. The XML DataDump is required, which obviously if WT isn't providing it, it makes migrating ahead of time more difficult. [18:26:09] I se [18:38:07] Sorry, PlatYellow, I think it's a matter of too many folks generating too large of dumps at the same time, but I'll reach out to the appropriate folks to see if we can get eyes on the problem. [18:38:22] Thankyou [18:59:00] btw NA, will WT wikis keep their wikitide urls as redirects? [19:06:29] how to remove? [19:08:12] `MediaWiki:Sidebar` page [19:23:08] Yep, and we hope to launch multi-domain support very soon. [19:23:20] @pixldev [19:24:52] SRE is obviously final word on this matter though. [19:25:41] hi everyone [19:27:20] hi [19:27:39] Hi Orange_Star [19:34:05] true that, honestly, it's very favorited by fandom staff [19:38:19] Seems the jobrunner might be at its max [19:38:37] UO was able to solve, turns out there was a DNS config issue causing big slowdowns [19:38:42] ah [19:43:03] Don't we love the jobrunner [20:24:21] thank you [21:21:00] can anyone help? I can't import `Template:Infobox_country` to my wiki due to bad gateway errors [21:21:17] and I don't want to have to request an import because those take several days [21:22:10] the file size is 1.4MB [21:22:46] Unfortunately, it's unlikely we can do much. We have a much stronger SRE team though now so it shouldn't take too long. [21:22:59] They are many factors that affect import [21:23:12] That's far too big [21:23:27] We generally don't advise importing from Wikipedia though anyway as it's a mess [21:23:29] Are you trying to import via Special:Import? [21:23:30] I just saw the article advising against wikipedia imports [21:23:31] lol yeah [21:23:36] We have a few infobox guides [21:24:00] I'm just looking for a wiki with infobox country now [21:24:31] I’d recommend making your own with PI box [21:24:42] my own wiki has a nation box i think [21:24:49] And just like a lovely help volunteer and an SRE show up [21:24:49] it may not work exactly cause fandom [21:25:38] but you should be able to use it [21:26:06] https://stoneworksmc.fandom.com/wiki/Template:Nation i think [21:26:15] Look at the code for that [21:26:21] also [[Infoboxes]] [21:26:21] https://meta.miraheze.org/wiki/Infoboxes [21:26:22] [21:26:30] @plopilpy [21:26:40] yeah I'm checking it out [21:27:03] these should work, be advised what I linked uses some complicated functions to change the labels if there’s multiple arguments [21:27:36] But should be useful a:shiggy: [21:28:49] and just paste it into `template: infobox country`? [21:37:04] If you want to call it that sure, keep in mind the page name is case sensitive. You also need to enable the Portable Infobox extension, and with this box, Parser Function, unless you remove the functions in the code [21:37:39] is this essentially a copy of wikipedia's country template? I like the info that provides [21:37:50] I'm not very knowledgeable in templates sorry [21:41:51] No, you may see a preview of all the available fields on the page I linked. However, it is highly customizable and can be changed to suit your needs [22:13:36] When will WikiTide be merged into Miraheze [22:15:04] Most likely by the end of this month as originally stated; good progress has been made on this front since January, but there's still some more work to be done [22:15:29] Thanks for the update [22:15:44] It says February 20th on the Wikitide discord as the deadline where they will start winding down that end of operations [22:16:38] Is WikiTide shutting down [22:16:46] It's merging technically [22:17:03] Is it merging into the Mira or WikiTide banner? [22:17:08] Not shutting down it’s merging [22:17:15] Got it [22:17:18] And yes, I have restored my wiki, because of the merger and better infra [22:17:26] for now, the MH branding will be preserved [22:17:33] Got it :SonicThumbsUp: [22:17:57] And all WikiTide wikis will be Miraheze Wikis on 2-20 [22:18:21] they'll be able to keep their WikiTide URL technically [22:18:57] Ok Thank you [22:20:04] np [22:42:09] [1/4] I'm having a problem with CirrusSearch, at the Critical Role wiki that is part of the stress testing for it, where it is not handling articles with + in the title well, which is causing out "LGBTQ+ characters" page completely unfindable and impossible to navigate to using the search bar. It won't show up in results bc the + is ignored because it's being interpreted as a space in the [22:42:09] [2/4] query AND clicking it in the suggestions takes you to the search results [22:42:10] [3/4] [22:42:10] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1203832897887281162/image.png?ex=65d287c0&is=65c012c0&hm=25d8e52b02928990525ff429a7b3e91398085b36eb2cfc574cb6317ed55c7a12& [22:53:56] as I'm importing manually, is it ok if I get totaltennis.miraheze 's page stats refreshed, I think I had the same issue when I moved over to Wikitide. [23:52:41] Should be fixed [23:54:57] looks so on my end too, thanks!! [23:55:36] No problem, glad to get it fixed!