[00:48:26] How can I view all files uploaded to my wiki? [00:50:09] [[Special:AllFiles]] [00:50:21] [00:50:24] Thanks [00:51:54] https://cdn.discordapp.com/attachments/407537962553966603/1515156727476261045/image.png?ex=6a2dfb2a&is=6a2ca9aa&hm=8df9a9ad3deead3a213b78c1c93ca559ad207e4f2a4ffe6cfe38340ef6d93677& [00:52:41] [[special:prefixindex/special:]] [00:52:47] [00:53:16] Wait I found it, its Special:ListFiles [00:54:11] Right, my bad [00:54:43] No worries. I forgot it in the first place [01:08:18] [1/2] oop [01:08:18] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515160853458976888/image.png?ex=6a2dff01&is=6a2cad81&hm=494467193877cca2f107feed72712b5ed4c31502d529d2b6e1b01775308498ab& [01:08:26] Should be back shortly [01:08:30] yayy [01:08:47] alr ๐Ÿ‘ [02:17:15] <.yowin> [1/4] https://cdn.discordapp.com/attachments/407537962553966603/1515178205680500887/image.jpg?ex=6a2e0f2a&is=6a2cbdaa&hm=c02093af684e3ff37c86fa4763029e0e1ae502d9f71bdb27722b807ac4aaf26d& [02:17:15] <.yowin> [2/4] https://cdn.discordapp.com/attachments/407537962553966603/1515178206095868075/image.jpg?ex=6a2e0f2a&is=6a2cbdaa&hm=5e488cbe27eb8caf94d85c82ee5dc5e60dee144ad30d3ecbb57c9f02432e4b9e& [02:17:16] <.yowin> [3/4] https://cdn.discordapp.com/attachments/407537962553966603/1515178206444130385/image.jpg?ex=6a2e0f2b&is=6a2cbdab&hm=88338e87a9d0e3e9d1ee3328c1c8dd848db94ce662c914e3812a1e48c8d5c7a2& [02:17:16] <.yowin> [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1515178206716494005/image.jpg?ex=6a2e0f2b&is=6a2cbdab&hm=07ef9f311e470d9387a47ac24f81dc5c73651b124fd2d53cabf1313f100971c8& [02:18:36] OH FUCK THIS GUY [02:18:53] @Discord Moderators remove his balls [02:19:00] Scam. ๐Ÿ˜ญ [02:19:25] https://klipy.com/gifs/mods-tie [02:19:45] ...not needed folks [02:19:49] sorry [02:19:54] i thought it was funny [02:44:59] [1/3] help [02:45:00] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1515185186998980699/image.png?ex=6a2e15ab&is=6a2cc42b&hm=40640fa0489225783d7b9748198260e9ba2aab81b999147187560d1ffff7a8ee& [02:45:00] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1515185187284062258/image.png?ex=6a2e15ab&is=6a2cc42b&hm=bb8dda73facc657ff513b15fd8a14256db23516406f2fc2cf8fe4de28897bc88& [02:45:11] ive been messing w values but nothing chanes [03:01:04] I'm looking at learning a minimum of lua to wire a module. Lua is evil. [03:03:59] `local p = 'data'` doesn't actually assign the string `data` to `p` [03:05:18] But then I look at some mediawiki modules, and they do just that: [03:11:45] Variables in a Lua module stay scoped within that module unless you do some shenanigans [03:12:15] I was playing in the cli, doesn't behave the same way ๐Ÿ™‚ [03:12:15] What were you trying to do with `p` exactly? [03:13:09] [1/5] If you type [03:13:09] [2/5] ```local p = 'data' [03:13:10] [3/5] mw.log(p) [03:13:10] [4/5] ``` [03:13:10] [5/5] then something should have appeared [03:13:55] I'm trying to build a html structure based on an arbitrary number of arguments (`data_n`, `subdata_n`, `header_n`). Given that the order isn't guaranteed, it's a bit challenging ๐Ÿ™‚ [03:15:05] You can pass a table. Tables in Lua are like a mix of lists and hashmaps. [03:15:44] [1/2] yes. So, I was looking at other modules. In it there is that line: `if rowArgs.header and rowArgs.header ~= "_BLANK_" then` [03:15:44] [2/2] And I have no idea how `_BLANK_` got in there. Which made me wonder about `~=`. [03:16:20] so long header is not `_BLANK_`, do something. [03:17:49] Made me wonder if it was a kind of null check or something. But no. And lua in cli doesn't behave the same as the mw debug console. [03:18:23] [1/5] ``` [03:18:23] [2/5] > local p = 'data' [03:18:24] [3/5] > print(p) [03:18:24] [4/5] nil [03:18:24] [5/5] ``` [03:18:32] Oh you meant Lua on a local console, not Lua in MediaWiki [03:18:36] yeah [03:19:46] Honestly might be more of a hassle to code in local development since it cuts you off from the helpful Scribunto libraries like mw.logObject, mw. html, mw.text, so on [03:23:43] https://dev.miraheze.org/wiki/Module:Loops [03:23:46] I'm not testing locally, I write it in my text editor and do some small test in the cli. The mw debug console isn't too helpful for me. [03:25:07] Example: https://stellasora.miraheze.org/wiki/Template:TrekkerAffinityTasks [03:26:42] Yeah, but I have more than 2 keys ๐Ÿ™ [03:29:34] It supports an arbitrary number of keys. [03:30:06] `{{{keyoneINDEX}}} {{{keytwoINDEX}}} {{{keythreeINDEX}}}` [03:39:39] I mean, I do need specific a template per key. Some key may not exists per row. And I'm learning ๐Ÿ™‚ [03:41:59] [1/2] `{{ SomeTemplate | {{{keytwoINDEX}}} }}` [03:41:59] [2/2] `{{#if: {{{keythreeINDEX|}}} | do something | do something else }}` [03:42:42] It's up to you. Learning Lua is a good experience, though I personally write Lua modules to avoid writing boilerplate Lua for specific tasks. [03:45:50] More docs about using it in a template: https://dev.miraheze.org/wiki/Module:Loops/doc#Use_in_a_template [04:33:11] So, how do you properly test a Module once finished? With the debug output and all. I've got some weird error. [04:33:51] ah, nevermind. I'm an idiot [04:37:47] used `.` instead of `:` with the html thingy, and some typos. [04:38:04] But I'm done, I did a thing! [04:40:55] [1/14] On a Module: page, assuming you have something like the following: [04:40:56] [2/14] ``` [04:40:56] [3/14] local p = {} [04:40:56] [4/14] -- You can't test local functions in MW console [04:40:57] [5/14] -- Similarly, you can't print-debug any variable other than p [04:40:57] [6/14] local function foo(bar) [04:40:57] [7/14] ... [04:40:58] [8/14] end [04:40:58] [9/14] function p.your_function(args) [04:40:58] [10/14] do something [04:40:59] [11/14] end [04:40:59] [12/14] return p [04:41:00] [13/14] ``` [04:41:00] [14/14] Without needing to save the page you can enter `p.your_function(...)` on the MW debug console while that page is open. [04:42:01] Or use TemplateSandbox and preview a page that uses this module [04:42:02] yeah, but how do you feed it proper data? [04:42:38] [1/2] https://discord.com/channels/407504499280707585/407537962553966603/1515214637862486089 [04:42:38] [2/2] Or do `=p.some_function( data here )` [04:48:37] TemplateSandbox, that's what I need. Thanks. [05:24:23] removing leading spaces of line 2 first [08:08:55] Is there a way or bot to bulk change a category eg. Change "London 2012" to "2012 Summer Olympics" for all pages with that category [08:15:06] [1/4] I have a hermes bot I've been experimenting with. Runs on my raspberry pi 4 with 2gb. Loads a cloud model thru openrouter.ai to do all the heavy lifting. [08:15:06] [2/4] I've been using the model owl alpha for free to just go thru my wiki and update things en masse. [08:15:06] [3/4] I can do that for you if you'd like but you could spin up a hermes bot yourself too. [08:15:07] [4/4] I've had a really good time with mine so far. [08:17:00] if you don't have ReplaceText enabled on your wiki yet, I recommend doing so; it's super useful [08:17:08] otherwise you can try MassEditRegex if you know regex [08:19:32] for more clarity, you'll need to make a request at [[SR/RC]] to enable this extension, but as long as your wiki isn't too old, it shouldn't be an issue [08:25:55] uh is wikibot down? anyway it's [08:34:56] Thanks, I will stick with ReplaceText at the moment [08:35:13] Thank you, I have requested [08:55:36] Can the subdomain have uppercase word on it [09:00:10] all url names can't have uppercase anyway [09:00:48] Oh they cant? [09:01:04] https://tenor.com/view/spongebob-cry-crying-burst-into-tears-cry-and-run-gif-24530754 [09:01:39] yup since the invention of url [09:06:46] Unkrill [11:07:51] Sorry if this is the wrong place to ask. I am starting a wiki about an unpopular anime from 2006 (Simoun). I don't see fair use as a licensing option for images. The images are thumbnails of characters. There are a few more characters I expected to extract thumbnails for, from the videos. Is there an equivalent license? Do you have advice about this? [11:19:26] browser dev console can probe mw.log/mw.logObject with a specific command or you can find the stats at the bottom of a page with the logs from scribunto [11:19:51] or that I guess [11:37:08] licensing is added by the wiki bureaucrat, so you'd just add fair use yourself as a licensing option [11:37:49] should be located at MediaWiki:Licenses [11:38:09] make sure you have interface administrator or just the ability to edit MediaWiki namespaces [11:38:16] i don't understand [11:39:04] use backspace or delete key [11:39:08] oh wait, to explain further: you'd make a licensing template, then add it to MediaWiki:Licenses [12:00:12] but wdym w leading spaces? [12:01:03] [1/2] the space (or tab) here [12:01:03] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515325124230910014/image.png?ex=6a2e97fe&is=6a2d467e&hm=363746fc0a286750407f17eb3eb17140700c483373f9b39c4132808aef348914& [13:58:57] okayy tysm!! [13:59:00] lemme js log in and ty [14:29:29] Is there a way to only display the last few characters of an article name? [14:29:55] Like if an article was called issue 220, would there be an easy way to make only the 220 appear? [15:00:36] `{{DISPLAYTITLE:title}}` [15:32:08] It appears as though I either have to have created the images, they are in the public domain, or I have to have explicit permission to make them free. I don't see fair use, as I have on fandom.com. [15:47:37] that just sounds like string formatting [15:53:34] whats that? [16:18:27] well so if you had "issue 220", you could do `string.match("issue 220", "^issue (%d+)$")` or something. I'm not completely sure what you're asking for but that's a programmatic way to get the numbers at the end [16:19:55] Okay so wiki is for a very long running comic book (2400+ issues) and to help automate the creation of pages Iโ€™m asking to add the number at the end of the issue to certain other values on on the article (templates mostly) [16:23:02] so in Lua you can get the title of the article with `mw.title.getCurrentTitle().text` [16:23:14] or with `{{PAGENAME}}` magic word [16:23:35] and then you can run a `string.match` on the article title to find the issue number [16:24:38] Yes, as I said, you have to make a template for fair use yourself, and then link that template on MediaWiki:Licenses [16:25:10] Fandom does the same thing, but that template is just auto-created for you upon wiki creation [16:31:51] Where to re read Miraheze global policy? [16:32:49] Any one in particular? [16:32:51] https://meta.miraheze.org/wiki/Global_policies [16:33:02] Yeah that ^ [16:33:18] Alright tha ms youuuu [16:33:54] Been a while since i check it, just want to see if there is any change [16:38:37] Oh unsurpation thats new [16:45:45] Might new as its own policy but the idea isn't [16:46:26] Not even that [16:46:34] June 2024 it was formalise d [16:50:04] Mmmmmm dint seem to recall it being around when i was submitting a wiki for the first time [16:50:24] But then again that was in ljke what? [16:50:30] May? [16:50:40] Mmmmmm [16:51:37] You probably just glossed over it [16:52:12] Or maybe i just forgot about it [16:52:19] ๐Ÿด [17:06:09] Creative uses of [[dev:Module:String]] will likely be easier for most wiki editors, with the side effect of writing extremely cursed wikitext. [17:06:15] [17:43:31] https://meta.miraheze.org/wiki/User:Truro312-Frisco312 is there anything I can add to the div tag that helps it display correctly. It overlaps with headers (meaning `== ==`). [18:03:08] hi, everyone, is there a way to "freeze" the header of a wikitable, so that it scrolls with the rest of the table, like you can do on google sheets? [18:20:42] i suggest string parser functions [18:20:52] much lighter than lua [18:55:50] sounds like `position:sticky` [19:02:08] Also, is there any css that can make the Userboxes there display stacked vertically? [19:07:58] where would i fit that into the wiki table [19:09:54] [1/4] https://cdn.discordapp.com/attachments/407537962553966603/1515433045782691947/IMG-20260601-WA3041.jpg?ex=6a2efc81&is=6a2dab01&hm=702dd4bda237d21df24affd18bfaa070d1cc04af3758009175d5b1af5101d9d1& [19:09:54] [2/4] https://cdn.discordapp.com/attachments/407537962553966603/1515433046558511205/photo_2026-06-09_01-45-07.jpg?ex=6a2efc81&is=6a2dab01&hm=158f6b388c74cdfc5a295d323d242af5994818bea2c14d5e69234e39e34ccd7f& [19:09:55] [3/4] https://cdn.discordapp.com/attachments/407537962553966603/1515433047145709649/PXL_20260605_184613_854.jpg?ex=6a2efc81&is=6a2dab01&hm=dba90142b0d4edc02f8899dc9a8a6fab6e80ac6d56fba8c36ecb7825b45a845e& [19:09:55] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1515433047917334568/PXL_20260605_060133_753.jpg?ex=6a2efc82&is=6a2dab02&hm=152f4b1f2ba3c6f949ae55bc5d42da497b75c2eb50653e968edc753103f97862& [19:10:26] <_arawynn> @Discord Moderators [19:10:33] not sure, but that's the way it usually gets done [19:11:24] quick on the draw, Void [19:12:29] I'm just sitting around reading right now, so the notification got my immediate attention :3 [19:13:51] Iโ€™m needing help with this. [19:51:28] My guess is in the header row (" |- ") , as " |- style="position:sticky; top:0" " [19:55:37] Damn that ai sure reply fast:stare: [19:56:48] [[Meta:Userboxes#Userbox area]] [19:56:49] [19:58:26] Actually speaking of user oage [19:58:35] [1/2] What are this exactly [19:58:36] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515445301253509240/image.png?ex=6a2f07eb&is=6a2db66b&hm=995ff82184e7ba8c95a7999838cbfd8c38798c1495b192a1b60bc903ad9be8aa& [19:58:41] Its not mbox right [20:18:53] Itโ€™s for the issue shown on the screenshot above [20:23:28] is there any clean way to do a resultsheader with bucketget? theres intro but idk how i would get it to display how many results are displayed [20:30:11] As in floating to the right/left or simply displaying vertically on its own place? [20:31:50] If the latter, adding Userboxtop and Userboxbottom at the top and bottom of your template calls suffices [20:31:52] Centered [20:32:35] Hmm I'm on mobile so this might take me a while [20:44:03] Yeah difficult to tell if userbox alignment works on mobile, I'll have to check later on desktop [21:15:13] @Discord Moderators this user: @ytgamer1845 has joined my server several times, spammed invites to their servers, and left [21:15:27] and i suspect they are doing it to other servers as well [21:16:12] https://cdn.discordapp.com/attachments/407537962553966603/1515464834618232972/image.png?ex=6a2f1a1c&is=6a2dc89c&hm=154f7e289034484ab1a445a44a0593d8ae23931131f4c198d39bf8348253b81b& [21:16:14] see above [21:18:41] ok yeah that's just a spambot then [21:27:25] WIll mirror ban [21:27:25] [1/2] how would i add an option to make this collapsible? [21:27:25] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515467655522549760/image.png?ex=6a2f1cbd&is=6a2dcb3d&hm=651af140fcbedd3eb2d726f6ed51e9d860d7eb1ce64f43706dfb02fd7d3d1b08& [21:31:52] class="mw-collapsible" [21:32:21] where would i put class [21:32:22] oh [21:32:24] wait [21:33:28] im confused [21:33:38] On {| [21:33:42] nvm, got it! [21:42:37] [1/3] how do i turn the left into the right [21:42:38] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1515471481667321927/image.png?ex=6a2f204d&is=6a2dcecd&hm=f90e1fd33b9182dd921191fc17ec0f9a5c1ce4a508e68e7fe00ddf2f61d53cbf& [21:42:38] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1515471481948209172/image.png?ex=6a2f204d&is=6a2dcecd&hm=2b9e022f388b543b3916dce4784581f17658fe61d0cb5014b17942a9c9ed3eb4& [21:42:59] [1/2] oh should i move to #volunteering [21:43:00] [2/2] idk im confused srry [21:46:59] Hi SRE team. Need help with Phabricator account creation. OAuth from Miraheze fails due to Unicode chars in my MediaWiki username. [21:47:00] Username: ๐•ต๐–†๐–Ž๐–’๐–Š ๐•ฎ๐–”๐–Š๐–‘๐–๐–” ๐ˆ๐ˆ๐ˆ [21:47:00] Error: "Usernames cannot contain spaces, colons, or periods" but the real issue is Unicode [21:47:01] Can someone run: bin/auth create JaimeCoelho --realName "Jaime Coelho III" --email jaimecoelhoneto10@gmail.com [21:47:01] Posted about this on Discord ~4h ago but haven't gotten a response yet. Thanks. [21:49:32] i dont see season chronology anywhere in the sourcecode of the article on the right (bbus22 on wikipedia) [21:50:18] its a table with class="inline-table" [21:51:42] [1/3] theres nothing tacked onto the end of the infobox in the source, but there is in the visual [21:51:42] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1515473764991897810/image.png?ex=6a2f226d&is=6a2dd0ed&hm=19f6472032e968d98214cb1a231ce7ded52a2cc908f04ad9d4b226bd0eb6f761& [21:51:42] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1515473765339762769/image.png?ex=6a2f226d&is=6a2dd0ed&hm=05caebb57acd341a28c0a5c963fbc1fbb9efa76a3d8cc548634c7d438d3091a3& [21:52:10] its in the infobox's code [21:52:13] ping - any SRE online who can help with manual Phab account creation? Posted full details at 18:46:57 [21:52:39] Template:Infobox (whatever the infobox is called) [21:52:41] i dont understand how to code infoboxes; i tried copy-pasting wikipedias "Infobox television season" source but it threw me a bunch of errors [21:53:50] [[Help:Infoboxes]] [21:53:51] [21:54:39] i know neither HTML or wiki markup [21:54:41] there should be stuff in there about importing wikipedia infoboxes [21:55:19] o thanks [21:55:45] just like. read the warnings listed and make sure you know the risks [21:57:03] this is too much for me [21:57:20] ive never done any computer stuff in school [21:58:51] portableinfobox is probably what you want to use then [21:59:31] they dont look nice [21:59:41] and they cant do the things i want them to (bg colours) [22:00:48] https://cdn.discordapp.com/attachments/407537962553966603/1515476055752835133/image.png?ex=6a2f248f&is=6a2dd30f&hm=5efc59e53622d13e09a150173f097c4bd0920749abb65a996084150a370b149d& [22:00:52] ย  ย RhinosF1: sorry, my IRC client disconnected right after I PMed you. Still here and still need help with Phab account for ๐•ต๐–†๐–Ž๐–’๐–Š ๐•ฎ๐–”๐–Š๐–‘๐–๐–” ๐ˆ๐ˆ๐ˆ. Can you retry? Thanks [22:01:07] Seems like the bot/person is joining servers in #server-invites [22:05:19] @nukesme no need to resend identical invites [22:05:54] okay [22:06:13] didnt know that i guess [22:13:29] [1/4] why is it not yellow? [22:13:29] [2/4] and why is it in that font [22:13:29] [3/4] https://cdn.discordapp.com/attachments/407537962553966603/1515479246573801562/image.png?ex=6a2f2788&is=6a2dd608&hm=43daeb0e8f11c29592e96e9ae813a7c071309fcf22a844819073993c91a3b7c6& [22:13:30] [4/4] https://cdn.discordapp.com/attachments/407537962553966603/1515479246900957284/image.png?ex=6a2f2788&is=6a2dd608&hm=8a59738cb629772078b4e27610c277c4f984d40c36a851991349b1b81a39a793& [23:22:27] [1/2] been testing with the star citizen wiki infoboxes on my own... and i can tell something is missing [23:22:28] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515496606252667061/F1DBCFDA-CF4F-4D8D-85D8-DDE8B561CB8D.png?ex=6a2f37b3&is=6a2de633&hm=94c602e4884f5b5694931f02507e942465390bdabf0782c9695e9799880b62be& [23:25:43] Some extensions were missing [23:25:46] That was the solution [23:28:09] [1/2] Hello hello! :AA_FireFly_Wave: I'm looking at the different calendar extensions and wonder if anyone has suggestions on which to use? (not MsCalendar, that seems to be no longer maintained) [23:28:10] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1515498039127838832/image.png?ex=6a2f3909&is=6a2de789&hm=4cd3bbaa5f24ee97260f2d91892bab1e8ca931474b70c16dc20e54c6889c7290& [23:28:40] What is your specific goal, what are you trying to do on your wiki [23:43:42] It would be for event documentation a:AA_Bocchi_Nods: I want to have pages per event, and have them then show up on the calendar