[00:23:19] [1/2] Didn't know wiki.gg have responsive navbox compatible with existing wikipedia and fandoom navboxes [00:23:19] [2/2] https://support.wiki.gg/wiki/RANGER_navboxes [01:21:55] Can i put a discord link to a wiki or is it not allowed? [01:29:59] #server-invites [01:30:30] You can post wikicords in there [01:45:12] Yes I know but my community had quite a lot of links and I don't want anyone to mistake the old ones for the true ones so i want to put the official link on the wiki so that doesn't happen [01:45:34] Ohh [01:45:52] Yeah it's fine to put it on the wiki, lots of wiki's have it on the main page [02:28:04] [1/2] Heya, what's the xml file size limit for Special:RequestImport? It just always seems to not work for me. [02:28:05] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1456836484635164732/image.png?ex=6959d034&is=69587eb4&hm=8975c1daeee7ef7a6dde9eddb3db787d5ec86cecad5a7ab25cb5eddaf887a163& [06:16:24] <18.748.837.46> does anyone have an xml file for all the countrydata templates [07:31:49] Drop an email to tech[at]miraheze.org and we'll sort you out [08:38:22] hi there [09:10:49] hello [10:06:58] can dynamic page list show the list sectioned by year? [10:07:24] [1/6] 2023 [10:07:25] [2/6] Link 1 [10:07:25] [3/6] Link 2 [10:07:25] [4/6] 2022 [10:07:26] [5/6] Link 3 [10:07:26] [6/6] ... [10:07:54] hi [10:08:57] Definitely possible if you output the page title and time (yyyy-mm-dd) and use that as input in a Lua module which groups pages by year. [10:11:21] sounds above my paygrade [10:11:29] https://cdn.discordapp.com/attachments/407537962553966603/1456953103642525880/image.png?ex=695a3cd0&is=6958eb50&hm=604fb0d7cb2ae70f11abd8fa3655078b7a8941e0eb3cc4789e1375aeeee995c1& [10:11:48] last lua file took me multiple days of trial and error [10:12:57] but thanks [10:15:24] I wrote something similar https://bluearchive.wiki/wiki/Module:StoryListCollapse a while back which is used by https://bluearchive.wiki/wiki/Template:CharacterStories to group pages together. AFAIK "group by" functionality does not exist natively in DPL unfortunately. [10:22:39] you fill the template with zero parameters, impressive [10:29:31] [1/8] I wrote a prototype js script for bulk operations (text replacement, purge, etc.) that sits somewhere between pywikibot/AWB and MassEdit/AjaxBatchDelete in terms of complexity and features. The documentation is on https://meta.miraheze.org/wiki/User:PetraMagna/jswikibot. [10:29:31] [2/8] If anyone is feeling adventurous, I'd love to get some feedback on the tool before I start working on more features than the bare minimum. I do think the batch text replacement tool already has a pretty good interface, though it probably has quite a bit of bugs as well. [10:29:32] [3/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957638368563323/image.png?ex=695a4109&is=6958ef89&hm=d85a7de54b020feac837d81845f2d368c07669be1154e40706914c043c07c975& [10:29:32] [4/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957639308345417/image.png?ex=695a410a&is=6958ef8a&hm=a44e26783c03904f2845d60035c269c43b6280d76cbde4607a7f1422c6b34e1e& [10:29:32] [5/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957640184696933/image.png?ex=695a410a&is=6958ef8a&hm=8ccff715e3718d113b97695cbf833638841dfc373869fa4ad9239d8c3dc29ff8& [10:29:33] [6/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957641279537267/image.png?ex=695a410a&is=6958ef8a&hm=7f155fd6e29d55d828870ec953c972198ea0896fca3ccce1846932e87a6619dd& [10:29:33] [7/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957642235711635/image.png?ex=695a410a&is=6958ef8a&hm=08f84a20b1542d55b16bab46871c05095de6b7cf7a1f0ed67d26032ad0421f2c& [10:29:33] [8/8] https://cdn.discordapp.com/attachments/407537962553966603/1456957643213246555/image.png?ex=695a410b&is=6958ef8b&hm=fcaf1ab198ed304db13219bc0167bf3a8dcb5d0bda711f4b5854d85e4e15e431& [10:30:47] This part of the wiki is meant to be fully automated, so pages like https://bluearchive.wiki/wiki/Shiroko/story would get auto-generated with close to no human intervention since it pulls data from other pages. [10:30:54] if it has more modern regex than Special:ReplaceText this is big [10:31:52] The regex is just JavaScript regex with the option to specify arbitrary flags. Idk if there is anything modern missing in it. [10:33:38] The ReplaceText extension may have some security filtering built-in to it since replacement is executed server-side. For this tool it is not necessary since the worst you can do is crash your browser with a badly written regex. [10:56:35] u [11:08:26] hello [11:10:51] Can we help? [11:29:59] hey so that issue is still there [11:30:03] idfk what's going on [11:43:31] Ye we don't either yet [11:43:50] I'm only back home today though [12:14:44] Hi there [12:21:12] [1/2] I believe I'm facing a technology problem.Perhaps I'd better to ask here.. [12:21:12] [2/2] https://meta.miraheze.org/wiki/Help_desk#Request_for_Clarification_on_the_MediaWiki_API_Blocking [12:22:19] oh alright [12:23:33] have you put a user agent? [12:24:30] [1/7] ``` [12:24:30] [2/7] >>> requests.get('https://battlecats.miraheze.org') [12:24:30] [3/7] [12:24:31] [4/7] >>> requests.get('https://battlecats.miraheze.org', headers={'user-agent':'wwr-test'}) [12:24:31] [5/7] [12:24:31] [6/7] >>> [12:24:32] [7/7] ``` [12:25:06] I replied on Meta as well. Though https://meta.miraheze.org/wiki/Tech:User_Agents remains valid it uses extremely outdated terminology. [12:25:32] I tried to use name of my tool,but it didn't work.Maybe I should check format? [12:27:45] What have you tried? Stuff like `Test bot by User:` has worked in the past for me. [12:32:18] I just tried this format,but it didn't work [12:32:50] [1/6] ``` [12:32:50] [2/6] mwclient.Site("meta.miraheze.org",clients_useragent="Test bot by User:Defaultuser6") [12:32:51] [3/6] ``` [12:32:51] [4/6] ``` [12:32:51] [5/6] requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://meta.miraheze.org/w/api.php?meta=siteinfo%7Cuserinfo%7Cuserinfo&siprop=general%7Cnamespaces&uiprop=groups%7Crights%7Cblockinfo%7Chasmsg&continue=&action=query&format=json [12:32:52] [6/6] ``` [12:36:37] [1/2] Does it matter if I'm using it in a restricted network enviroment (China)? [12:36:37] [2/2] On the other hand,is trying to use pwb instead of mwclient a good idea? [12:39:13] [1/3] Definitely not an UA issue then. If mwclient is having issues, I'd imagine pwb will be affected as well. [12:39:13] [2/3] Being in China means that you may get additional Cloudflare rules targeted against you, which is something only tech team members can resolve. [12:39:14] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1456990284528222330/image.png?ex=695a5f71&is=69590df1&hm=81c16c15c30b980000430a8badba8df71817ea3b1494d481be61bb5cca4ff0a0& [12:46:40] i can take a look in a bit if you drop me your ip [12:46:48] Feel free to make it less shit [12:47:38] [1/4] Yes,I see. [12:47:39] [2/4] I was blocked by the security system but not UA rules. [12:47:39] [3/4] I've just proven that by using requests. [12:47:39] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1456992403088212119/message.txt?ex=695a616a&is=69590fea&hm=1a8eb97ba6abc2211d341f0e61b3c1df8556376197acf2012a02ea24e382d246& [12:48:06] Please drop a message to me or Skye with your ip [12:50:35] I changed a few small things (SRE -> tech team). It would be better to make it more discoverable, but thats probably the job of a help page on bots in general. [12:51:14] You have my full permission to do whatever you like with it [12:51:44] As long as the rules themselves don't change [12:54:00] prolly a good idea to define "excessive rate" [12:54:28] and i am going to eep [12:55:13] i think not explicitly spelling out our rates is a good idea [12:55:26] most reasonable bot activity shouldn't trip it [12:57:55] We've got your email, @pskyechology will look [12:58:02] What @pskyechology said [12:58:28] πŸ‘ [13:05:16] 300 megs might just be large enough to timeout with a slower internet connection [13:05:30] trying a 3.2 gig one as a test for the lols [13:16:47] either that or its crashing out about an incomplete/corrupt dump [13:16:52] i'll see in a sec [13:18:26] nah its complete [13:47:33] Yeah... I have a quite slow connection compared to modern ones ( 1.5mb/s upload ) [13:47:55] Ah, so it's possible then? [13:48:18] https://discord.com/channels/407504499280707585/808001911868489748/1457001008977809551 [13:50:44] Oh splendid [13:55:28] damn [14:22:58] it is complete, have fun with your wiki [14:23:13] and let us know if you have 7 billion images that also need to be imported via phorge ticket lol [14:24:49] [1/2] I was going to ask that actually (and some other questions) but I don't know how to import every single image at once unfortunately... [14:24:49] [2/2] Well...downloading every image actually. [14:25:11] just so happens I know a friend who can help with that [14:25:48] Oh, can you refer me to them? [14:25:50] are you migrating with your whole community btw [14:26:37] What is the whole community? Our editors? [14:28:11] yeah [14:28:37] anyone who actively participates in the wiki, not necessarily including readers [14:29:11] I've informed them of the migration if that's what you mean [14:29:55] oh are you the only bureaucrat/admin on the fandom or something [14:30:02] or the main wiki person, so to speak [14:30:18] Yeah i'm the only active admin there [14:30:30] fair [17:17:31] What if I have 8 billion? [17:23:57] will think about it [19:39:02] I wish JavaWikiBwoser could be full auto sometimes, as I once had to sit clicking a button for over 30 mins to an hour [19:41:30] Might be able to use a macro to do that but I have also never used JavaWikiBrower bahaha [19:42:49] Maybe some of those dippy bird desk toys would work [19:43:50] why would you torture yourself like that [19:44:03] i know the pain [19:44:13] I needed to mass replace a template [19:44:15] AutoWikiBrowser doesn't work on my personal laptop so I have to use JWB. [19:44:29] Oh, and I often recatgorize pages [19:44:32] I haaaated it so much I dusted off my awful desktop just to save time [19:45:41] at least use MassEditRegex or ReplaceText or pywikibot or something [19:47:16] [1/2] https://en.wikipedia.org/wiki/Wikipedia:PyAutoWikiBrowser [19:47:16] [2/2] Seems like this in indev [19:51:33] OA was also doing some cross-platform AWB clone [19:56:00] Turns out JavaScriptWikiBroswer does have a way to autosave, but you need to make yourself a CheckPage like the one AWB has and set yourself as a bot [19:56:11] https://cdn.discordapp.com/attachments/407537962553966603/1457100251004535019/Screenshot_from_2026-01-03_19-56-05.png?ex=695ac5db&is=6959745b&hm=db2af57a26ce9c2222a8afefba6478334596b7b5c0c77810599e9eb02729fb81& [19:56:33] https://en.wikipedia.org/wiki/User_talk:Joeytje50/JWB [20:54:57] Correct [20:55:11] May 2009 and not complete? DoA I fear [20:55:22] Also subversion in 2026 πŸ˜Άβ€πŸŒ«οΈ [20:56:29] Not to toot my own horn but I fear my implementation is significantly better than whatever that is by looking at the screenshots [21:16:04] When's it coming? [21:17:41] Aiming for the alpha version in the next month or so (obviously not feature complete, but usable) [22:27:09] [1/2] Hi! [22:27:09] [2/2] I'm new to wiki stuff, so.... Miraheze is like good alternative to other "evil" wikiis? [22:28:01] no wiki-farm is evil but some are more profit-oriented than others [22:28:31] we run on donations so we let wikis be wikis instead of cramming them full of other crap [22:28:34] (Hostile adds on fandom ekhm) [22:31:07] miraheze is considered a good alternative to fandom indeed, there's a bit of learning curve but offers much more freedom [22:36:52] 🫑 [23:02:44] can anyone recommend a good template for consistent quoting from a book. i.e. list book name and author and whatever is normally needed to make it fair use? [23:21:59] [1/2] Would like to ask something for clarification. [23:22:00] [2/2] If I get the Module stuff right, calling something like `{{#invoke:Example|func|A|B|C}}` would call `func` in the Example module with a `frame` that contains the individual args as a `args` table, right? [23:24:39] [1/6] if the module has ```lua [23:24:39] [2/6] local p = {} [23:24:40] [3/6] function p.func(frame) [23:24:40] [4/6] return frame.args[1] [23:24:40] [5/6] end [23:24:41] [6/6] return p``` then your invoke statement would give you `A` [23:32:38] So, args is a table that can contain unnamed (numbered), or named arguments, or a mix of both, right? Just want to be clear on that. [23:33:03] yep [23:33:53] [1/2] Okay good. [23:33:53] [2/2] Want to make a function that can accept multiple args to go through, so that helps a lot. [23:43:00] unless you run the evilwiki and then its kind of in the wiki's nature [23:58:31] [1/7] Okay, need some help with lua code again. [23:58:31] [2/7] I made a function to list lines that have a specified station as one of their targets. That version works fine and like I intended it to. This version is viewable here: (`listLinesForStation` function on line 122) [23:58:32] [3/7] However, I now want it to change, so that you can define more than one station, in case a station has different names used. But right now can I not get it to work for me. [23:58:32] [4/7] It's probably a logic error on my end. [23:58:32] [5/7] The current iteration: [23:58:33] [6/7] And before this question is asked: I made that for loop filling `argsStation` with entries, so that I can do an if-check, instead of iterating through another nested for loop. [23:58:33] [7/7] Also, the output is just the table headers, without the actual lines, so the final for loop isn't running, meaning `matchingLines` is empty.