[00:57:16] hello! [00:58:04] this might be an odd question but i noticed that a lot of these wikipedia articles: [00:58:28] https://en.wikipedia.org/wiki/Template:Islam , https://en.wikipedia.org/wiki/Template:Judaism https://en.wikipedia.org/wiki/Template:Christianity_sidebar [00:58:54] are in a format called "part of a series on __", and im wondering if theres a guide on how to import these vertical rightward sidebars onto my wiki? [01:05:43] [[wikipedia]] [01:05:43] [01:07:04] but the main thing appears to be from https://en.wikipedia.org/wiki/Module:Sidebar [01:09:08] oof in that case ill try to see to recreate it instead of importing,thank you [01:20:09] [1/4] @thewwrnerdguy https://historiasgrandiosases.miraheze.org/wiki/Plantilla:Spoiler [01:20:10] [2/4] https://historiasgrandiosases.miraheze.org/wiki/Plantilla:Spoiler/styles.css [01:20:10] [3/4] I also need to create the template using the code for it to work correctly. [01:20:10] [4/4] I need a CSS/JS expert to help me with some CSS code for the Plantilla:Spoiler/styles.css to delete spam pages. [01:35:16] Hello. I need help with creating an account cause my IP range is blocked cause of vandal abuse :( [01:37:15] would suggest filling out [[Special:Contact/requestaccount]], but that has a decent bit of backlog alas [01:37:23] [01:38:39] I sent it already but I wasn't sure how long I have to wait. Since u said there's backlog, I'll wait then [01:39:36] Yeah, it sucks since the people who have access to the do the backlog are the higher counter vandalism folks most of which are busy with plenty of otehr things [01:43:11] People just wanna watch the world burn eh? [01:53:35] I think I might know who are the most persistent vandals haha. They targets every wikis, including Fandom where I am most active at [01:57:13] Fortunately a large number of my pages are locked, and b'sides there's only 2 sole editors so we'd know who would feck it up [02:10:01] @janebuzjane Will the tabbed info box links work if the user isn't logged into the site? [02:24:39] [1/2] Why doesn't think link take me to the alternate version of the infobox? [02:24:40] [2/2] https://forestrike.miraheze.org/wiki/Aura_of_the_Fencer#Aura_of_the_Fencer+ [02:25:56] I don't think that works for info boxes unless that button is somehow a header [02:26:26] The # bit of the url (I thiiiink, don't quote me) only looks for headers on the article to zip to [02:26:42] [1/2] https://forestrike.miraheze.org/wiki/Battlescars#Battlescars+ [02:26:42] [2/2] Works for this one [02:26:47] Actually even then idk how it wou- [02:26:52] oh [02:26:59] hmm :ThinkingHardMH: [02:28:35] Ahh [02:28:56] Maybe try throwing in a console.log and printing tabName to verify that there's no issue with that [02:29:22] Far as I can see, that link should work, weird that it doesn't [02:29:38] What would that look like? [02:30:22] [1/12] ```js [02:30:23] [2/12] mw.hook('wikipage.content').add(function () { var infoboxTabs = []; document.querySelectorAll('.portable-infobox .pi-tab-link, .portable-infobox .pi-section-tab').forEach(function(tab) { [02:30:23] [3/12] var tabName = tab.textContent.trim(); [02:30:23] [4/12] console.log(tabName); [02:30:24] [5/12] infoboxTabs['#' + tabName] = tab; [02:30:24] [6/12] }); [02:30:24] [7/12] if(typeof infoboxTabs[window.location.hash] !== 'undefined') { [02:30:24] [8/12] setTimeout(function() { [02:30:25] [9/12] infoboxTabs[window.location.hash].click(); [02:30:25] [10/12] }, 1); [02:30:26] [11/12] } }) ; [02:30:26] [12/12] ``` [02:30:59] The hit f12 in browser, switch to Console tab and refresh that non working link and look for the printout of the tabname [02:31:16] Actually lemme tweak ooone thing [02:32:05] I think I did that log line conjoining right [02:32:26] I'm PWI (programming while intoxicated) [02:32:46] `#blah` takes you to the element with `id="blah"`. However if you have JavaScript you can make it do whatever you want [02:33:28] OHHHHH my god thst explains a lot 🤯 [02:34:49] So I can add divs to a page with IDs for things like galleries and whatnot, and then directly link to them so the browser focuses directly on them, how did I not realize this after 25 years of doing this 🤯 [02:37:11] yeah you can do that, or you could try out https://en.wikipedia.org/wiki/Template:Anchor [02:41:17] Did you make the tweak? [02:41:17] we learn new things every day [02:41:33] I'm not an editor on your wiki 🤣 [02:41:55] what about data-sources [02:42:29] `data-sources` just sounds like a data value for an element [02:42:37] You said you were tweaking one thing, and I wanted to confirm that you had made the tweak [02:42:49] Oh that, yeah, I did [02:43:00] https://cdn.discordapp.com/attachments/407537962553966603/1482207389422846033/image.png?ex=69b61cb3&is=69b4cb33&hm=156ab0cad7508d509d332660e12c9bf3a6aa4f42de2be47ba72491fa32889764& [02:45:04] that's just a data value. In JS I think you could access it like `e.dataset.source` [02:46:50] [1/2] This is what shows up in the console tab when I do that. Is this related? [02:46:50] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1482208354754367559/image.png?ex=69b61d99&is=69b4cc19&hm=bb8911c57e4c0aea0c0cc284997c279e33b96d6edea0ca98f01c898c84bef50a& [02:47:10] No, that's something entirely differenr [02:48:12] What did doing this tell us? That the line of code I added from you isn't being run? [02:50:40] you can also paste the code into the console and see if it prints anything [02:52:29] [1/2] This is what happens when I do that. [02:52:30] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1482209778838278304/image.png?ex=69b61eed&is=69b4cd6d&hm=4eb8641e53843f05143a1ee9be7b13f4256f944d00be0e4bd5e2f49f01811a66& [02:54:04] oh, it worked this time. [02:56:19] [1/3] It seems like its giving us the same message on both the working page and the page that doesn't work. [02:56:19] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1482210741644824636/image.png?ex=69b61fd2&is=69b4ce52&hm=9ed89007e5427dc27aa6d36ec3c70f00365d6e4c642766482b60fd478b834e3a& [02:56:20] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1482210742051803257/image.png?ex=69b61fd3&is=69b4ce53&hm=8b9462f33b79b922e962e1627d0448bfcec92755684905557847a9a6c97d0215& [02:56:49] Good, it's reading things right. I have no earthly idea why it isn't working [03:23:59] I think it's something with the space in the tab name [03:24:23] It doesn't work on DV wiki with spaces either, or on Fandom where we took it from [03:24:36] (just didn't see it until now because we rarely have tab names with spaces [03:25:03] Any idea how I fix it? [03:25:24] I didn't write the JS so I have no clue [03:25:45] I'll dig around and see if I can find something [03:30:07] what's location.hash [03:36:57] That returns the anchor with the # , afaik [03:37:27] there's a fandom dev script that does this with the data-hash instead of the infobox classes and I'm trying to see if it has any weird dependencies [03:49:48] aww we don't have GLTFHandler on Miraheze? [03:51:06] [1/17] Try this: [03:51:07] [2/17] ```js [03:51:07] [3/17] mw.hook('wikipage.content').add(function () { [03:51:07] [4/17] var infoboxTabs = []; [03:51:07] [5/17] document.querySelectorAll('.portable-infobox .pi-tab-link, .portable-infobox .pi-section-tab').forEach(function(tab) { [03:51:08] [6/17] var tabName = tab.textContent.trim(); [03:51:08] [7/17] console.log('[TAB NAME]' + tabName); [03:51:08] [8/17] infoboxTabs['#' + tabName] = tab; [03:51:09] [9/17] }); [03:51:09] [10/17] var decodedHash = decodeURIComponent(window.location.hash); [03:51:10] [11/17] if (typeof infoboxTabs[decodedHash] !== 'undefined') { [03:51:10] [12/17] setTimeout(function() { [03:51:11] [13/17] infoboxTabs[decodedHash].click(); [03:51:11] [14/17] }, 1); [03:51:12] [15/17] } [03:51:12] [16/17] }); [03:51:13] [17/17] ``` [03:52:06] Issue seems to be from the URL interpreting spaces as %20 and the original script not handling that case. This should fix the issue. [03:55:06] [1/23] actually try this: [03:55:06] [2/23] ```js [03:55:06] [3/23] mw.hook('wikipage.content').add(function () { [03:55:07] [4/23] var infoboxTabs = {}; [03:55:07] [5/23] function normalizeHash(str) { [03:55:07] [6/23] return str [03:55:07] [7/23] .replace(/^#/, '') [03:55:08] [8/23] .replace(/_/g, ' ') [03:55:08] [9/23] .trim() [03:55:09] [10/23] .toLowerCase(); [03:55:09] [11/23] } [03:55:10] [12/23] document.querySelectorAll('.portable-infobox .pi-tab-link, .portable-infobox .pi-section-tab').forEach(function(tab) { [03:55:10] [13/23] var tabName = normalizeHash(tab.textContent); [03:55:11] [14/23] infoboxTabs[tabName] = tab; [03:55:11] [15/23] var hash = decodeURIComponent(window.location.hash); [03:55:12] [16/23] var normalizedHash = normalizeHash(hash); [03:55:12] [17/23] if (infoboxTabs[normalizedHash]) { [03:55:13] [18/23] setTimeout(function () { [03:55:13] [19/23] infoboxTabs[normalizedHash].click(); [03:55:14] [20/23] }, 1); [03:55:14] [21/23] } [03:55:15] [22/23] }); [03:55:15] [23/23] ``` [03:55:34] That'll handle links with spaces, underscores, %20, and lowercase [03:57:33] Easy fix tho, I can set up a git repo of gltf models [04:14:40] Is there a way to make your own category page [04:14:55] like if i wanted to list out all of the pages that fall into category "Shmungus" [04:15:02] on a custom page [04:21:07] [[Category:Shmungus]] at the bottom should do it [04:21:08] [04:21:10] but idk if thats what you mean [04:21:26] oops i forgot abotui the bot [04:24:57] that's fair [04:25:46] [1/2] i meant something like this though [04:25:46] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1482233254256967843/image.png?ex=69b634ca&is=69b4e34a&hm=d62b9a2beef95bc5135391c51a7cee055ae1a203557d1f282890a44c8f456c74& [04:26:26] exempt of the manual work done inputting every single amogus [04:32:15] also is there a way to change a background image based on a page being in a category [04:32:28] for example pages with category Shmungus receive background image of a Shmungus [04:33:41] JavaScript! [04:33:48] Maybe... [04:34:01] oh [04:34:06] im not too sure i think you might need ot use a dpl [04:34:14] PRAISE JS [04:34:30] [1/11] I'm sure there's a more elegant way to do it (so sorry in advance to any actual JSers out there) but this works. I couldn't get TF2CutContent's code to run but this works when I put it in my own Common.js and use a tab with space names (on both my wiki and your own) [04:34:31] [2/11] ```mw.hook('wikipage.content').add(function () { var infoboxTabs = []; document.querySelectorAll('.portable-infobox .pi-tab-link, .portable-infobox .pi-section-tab').forEach(function(tab) { [04:34:31] [3/11] var tabName = tab.textContent.trim(); [04:34:31] [4/11] var nospaceTab = tabName.replace(/ /g, "_"); [04:34:31] [5/11] infoboxTabs['#' + nospaceTab] = tab; [04:34:32] [6/11] }); [04:34:32] [7/11] if(typeof infoboxTabs[window.location.hash] !== 'undefined') { [04:34:32] [8/11] setTimeout(function() { [04:34:33] [9/11] infoboxTabs[window.location.hash].click(); [04:34:33] [10/11] }, 1); [04:34:33] [11/11] } }) ;``` [04:34:46] That's much nicer [04:35:29] It won't handle lowercase or URL encoding, probably, but it's quick and dirty and works on my machine :nekoThinkAboutIt: [04:36:45] [1/3] try [04:36:46] [2/3] category=Shmungus [04:36:46] [3/3] /DynamicPageList [04:36:48] [1/21] ``` [04:36:48] [2/21] mw.hook('wikipage.content').add(function () { [04:36:49] [3/21] // Map categories to background images [04:36:49] [4/21] var categoryBackgrounds = { [04:36:49] [5/21] "Weapons": "https://example.com/images/weapons-bg.jpg", [04:36:50] [6/21] "Toilet Wine": "https://example.com/images/toiletwine.png", [04:36:50] [7/21] "Vodka": "https://example.com/images/vodka.png", [04:36:50] [8/21] "Beer": "https://example.com/images/beer.png" [04:36:50] [9/21] }; [04:36:51] [10/21] // Get categories on the current page [04:36:51] [11/21] var categories = mw.config.get('wgCategories') || []; [04:36:52] [12/21] categories.forEach(function(cat) { [04:36:52] [13/21] if (categoryBackgrounds[cat]) { [04:36:53] [14/21] document.body.style.backgroundImage = "url('" + categoryBackgrounds[cat] + "')"; [04:36:53] [15/21] document.body.style.backgroundSize = "cover"; [04:36:54] [16/21] document.body.style.backgroundAttachment = "fixed"; [04:36:54] [17/21] document.body.style.backgroundPosition = "center"; [04:36:55] [18/21] } [04:36:55] [19/21] }); [04:36:56] [20/21] }); [04:36:56] [21/21] ``` [04:36:57] yeah idk botu the imagt [04:37:12] If a page has multiple categories, the last one wins out [04:38:09] Can you give an example (either a link or an image) of the effect you're trying to achieve? You can probably gather the pages via DPL and format it. [04:39:28] Also wouldn't {{Category:Shmungus}} work to display the contents of said category on another page? [04:39:28] [04:41:18] Tested it, nope, just prints the text contents of the category that you write in [04:43:18] https://ftdh2.miraheze.org/wiki/Doges [04:44:04] did this not work it worked for me [04:44:22] do you just drop it in the html [04:44:34] i just put it at the bototm of the pagr [04:44:46] but it just loaded a big fat lsit [04:44:50] i think thats what yuoure after [04:45:49] https://cdn.discordapp.com/attachments/407537962553966603/1482238282992455842/image.png?ex=69b63979&is=69b4e7f9&hm=38cedcc6a9325db5eea76db9b4a6b21a6d67b535a24ddd2b2cf8f02bfc85dae0& [04:45:51] oh you probabl;y need to enable it [04:46:11] go to Special:ManageWiki/extensions and enable dynamic page list4 [04:48:30] done [04:48:30] now we wait [04:48:51] IT WORK [04:48:55] awesome [04:49:17] https://tenor.com/view/blonde-blazer-will-remember-that-blonde-blazer-dispatch-gif-13289621539031708994 [10:40:49] does anybody knwo how to use the mediaspoiler extension? [10:41:10] ive been trying to use it as [10:41:59] [1/2] Ive been doing this [10:41:59] [2/2] `[[File:filename.png|class:spoiler]]` [10:43:12] [1/2] and this [10:43:12] [2/2] `[[File:filename.png|class:spoiler|thumb|500px|center]]` [10:43:19] bu neither of them work [10:43:31] send wiki link [10:43:47] https://medusaseedworld.miraheze.org/wiki/Project:Work_In_Progress#Work_In_Progress [10:44:42] wait i think i have it protected [10:44:46] its class=spoiler [10:44:54] oh [10:45:01] lemme try [10:45:02] brb [10:45:07] https://cdn.discordapp.com/attachments/407537962553966603/1482328718952108072/image.png?ex=69b68db2&is=69b53c32&hm=6d3ef1bc63663359dff031ba0e3124f19aab95e7b9a6fd3dfe6be482bded9e48& [10:45:51] thank u sm [10:57:03] hey, I tried a few months ago to make a wiki that was about things that I made with the purpose of keeping track of what I was doing with them, but it was turned down with the reason being "self-promo", which was not my intention. Is there any way I could get my wiki made? [11:20:49] wdym on keeping track what you were doing with them [11:21:48] like I'm trying to keep track of a timeline on what happens in them [11:22:44] i think you could try out alternative sites like Notion — miraheze is more of documenting your topic [11:24:08] but that's kinda what i'm trying to do [11:24:15] i'm not really explaining it right [11:30:50] [1/2] It sounds like your scope could definitely be explained better. But it would depend on what you were making, is it like pieces of art or games your making? [11:30:50] [2/2] If your a game studio or game specific then I can see it fitting into the service MH provides, but Miraheze doesn't presently provide personal spaces for people. [11:31:30] I'll try the alternatives [11:34:46] Just avoid Fandom like the plague [11:34:59] i've learnt my lesson [11:35:03] rip the original new norm wiki [11:42:27] Hello! I added something to my wiki's css yesterday, but it looks like it won't load in, I'm not sure if it's just on my end. It does show up with ?debug=2 [11:53:49] sometimes adding !important helps [12:10:48] Would that not just be cache? [12:13:25] If it shows with debug=2 its cache [12:13:36] Don't add !important, that won't fix it in this case [12:13:54] Yes [12:27:02] Gotcha, it just doesn't take 24h+ usually, clearing cache/purge is not working either [12:41:24] don't suggest adding `!important` unless it's absolutely necessary [13:12:01] Important is always necessary :steveo_kek1: [13:40:12] `!important` can solve any CSS problem, except the problem of too many `!important`s [13:45:43] when they dropping !!important [13:54:22] When they dropping !important² [13:54:49] !important¾ sounds dope [13:55:18] facts brother [14:31:13] !notasimportant [14:40:24] !ehsureiguess [14:41:10] How does the Whitelist Read Regular Expressions ($wgWhitelistReadRegexp) on private wiki work? I wanted to whitelist pages that have the word "Lists" (case sensitive) and I entered `.Lists.` but it doesn't work [14:57:18] !dontgiveashitbouttthisone [14:58:34] !accordingtoallknownlawsofaviation [15:12:19] question: my wiki isnt privated, but it doesnt appear in browser searches [15:12:25] why is this [15:14:00] did u register it under google's search console [15:14:07] [[SEO]] [15:14:12] [15:14:37] no [15:14:42] ill try and do that [15:21:20] where would the SEO settings page be [15:28:07] In your Wiki's additional settings under the SEO tab [15:28:17] where [15:28:30] :steveo_kek1: [15:29:15] On the sidebar under Administrative Tools there's a link called "Change your wiki's additional settings". [15:29:22] . [15:29:49] found it lol [15:29:51] thx [15:30:04] :steveo_smile: [15:30:12] yeahhh dude [15:30:29] :EpicFaceMH::EpicFaceMH::EpicFaceMH: [15:31:00] Don't forget to read up on SEO keywords and description. [15:31:09] For MediaWiki [15:31:26] Just throw a ton of different keywords in there [15:32:15] "wiki, Miraheze, editing, video games, essays, bums, world of warcraft, dirty jobs with Mike Rowe" etc [15:32:19] I do have to mention that Bing refuses to cooperate with me, even after almost a month, but eh, Google works fine as is. [15:32:52] -# Michael Soft is too good for me [15:33:03] "free robux" [15:33:06] where do i do that [15:33:19] :steveo_kek2: [15:33:41] [15:33:43] nvm found it [15:34:13] nvnvm didnt [15:35:39] Are you looking for the SEO settings for your wiki or documentation on SEO in general? [15:35:48] i found SEO [15:35:53] its keywords [15:35:59] where do i insert keywords [15:36:48] insert keywords into the keyword insertion text box [15:37:30] i am noob [15:37:34] i have noob [15:37:49] i dont noow were insertion text box is [15:40:58] Now that I went and looked at my own wiki, I don't see it either lmfao [15:41:14] thx for confirmation [15:41:24] where would it be [15:42:52] WikiSEO keywords go on each page, [afaik](< ). So on your main page you would put something like `{{#seo:|keywords=Apple, Pears, Oranges}}` [15:43:41] directly onto the main page? [15:43:43] ew [15:47:06] According to the documentation, yep :ThinkerMH: I'm not very familiar with this extension but it seems pretty straightforward [15:47:21] 👍 [16:17:00] Can confirm, looking into the Page Information link at the bottom shows SEO keywords and description (if applicable) [16:34:46] I don't understand how obsessed these former banned admins are [16:34:59] Left the community year ago [16:35:04] Comes between months [16:35:20] And vandalises the wiki and leaves for another few months [16:35:37] Can't do anything cuz bureaucrat [16:48:27] Breh? [16:57:03] https://meta.miraheze.org/wiki/Help:How_to_remove_a_bureaucrat_from_my_wiki ? [17:06:03] is there a way to get a list of all pages in a certain category in lua [17:13:10] You'll need to use DPL for that [18:35:03] morning! [18:39:37] Afternoon [18:40:00] apologies if this is stated somewhere already—how long does it usually take for a wiki creation request to be decided upon? I'm asking this on someone else's behalf since I don't know a good estimate myself [18:40:26] I was guessing somewhere around a week from what I vaguely remember [18:41:18] Does anyone know which link to use for the French repositories? [18:41:58] There's tons of backlogs and not enough volunteers to go through requests I presume [18:45:45] aadenboy: varies but 3-5 days probably [18:45:59] Sometimes it's faster at a weekend cause people not at their day jobs [18:46:10] If you know which request, we can give you an estimate [18:47:12] RhinosF1: 777e77wiki, requested by NeulaAtroid05 [18:48:51] What is 777e77 [18:49:01] 777e77 [18:50:14] Everyone knows what 777e77 is [18:50:18] hahaha [18:59:00] hex code that is basically a very slightly dark gray [19:03:36] [1/2] Is it possible to make a portable infobox in that portable infobox maker that can have a collapsible table/box like this in it? [19:03:36] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1482454165690257671/9ab6005e6155b754ffb58a72d2e0a3a2.png?ex=69b70287&is=69b5b107&hm=dcefdf0472beac82e5376a6c118bc2289c7c338e087436f5cdd80985ab1f03c6& [22:18:47] oh I lowk forgot I was in this server [22:18:48] um [22:44:43] now you rember [22:45:35] [1/2] i forgor... 💀 [22:45:35] [2/2] i rember! ✨ [22:47:12] i forgor to take my meds yesterday 💫 [22:47:19] didn't help that my reminder app didn't remind me [22:50:37] [1/3] pls rember that wen u feel scare or frigten [22:50:38] [2/3] never forget ttimes wen u feeled happy [22:50:38] [3/3] wen day is dark alway rember happy day [22:55:05] $!$# the ketchup kids! [23:31:34] Fuck the ketchup? [23:32:41] do not the ketchup [23:54:27] do not the kids [23:54:52] I think that'd be more pertinent than do not the ketchup [23:55:23] to do, or to don't, that is the question [23:55:58] :steveo_smile: [23:56:27] the answer is steve-o, it's always been steve-o