[01:45:02] miraheze is running slow it's joever [01:55:56] its miraove [02:01:51] we are so miraback [02:54:17] https://media.discordapp.net/attachments/407537962553966603/1172221696388907171/A8CBB465-9E48-4589-BA5C-A0FEA07CA2D2.gif?ex=655f8787&is=654d1287&hm=bb9854289dee930bbb7b5613d77da5e345830b7fd6aa418e6cb688418900dd55& [02:55:57] mediawiki.org/wiki/Extension:TemplateStyles [02:56:09] One of my editors has asked me to activate this extension [02:57:20] You can do that on your wiki's ManageWiki page [03:01:17] or alternatively you can do that with dark magic [03:12:35] ooga booga [03:13:50] rebumping this topic but is there a way to get around this? [03:17:28] are you using the tabber extension [03:18:01] this one [03:18:22] Thanks [03:18:28] We figured it out [03:19:04] try tabberneue [03:19:27] would that require redoing all of the tabs i've implemented? [03:19:30] and what's the difference [03:19:32] Yes [03:19:35] um [03:19:37] it might work [03:19:40] try it on one [03:19:41] and see [03:22:32] My wiki is broken on mobile - it does not show any changes made since yesterday, including new text, skin changes etc although they appear fine on mobile. I've disabled mobile frontend extension and it's still happening. Cache clearing not working. Ideas to try? [03:23:09] report on the phabricator [03:23:11] [[Phabricator]] [03:23:11] https://meta.miraheze.org/wiki/Phabricator [03:23:12] [03:24:42] tabberneue breaks the link entirely [03:25:10] I'm only on mobile atm and it says my credentials are invalid although they are 😭 I'll try again tomorrow [04:37:36] You'll Miraback [04:38:32] [1/4] Like before [04:38:32] [2/4] I will Mirafight and win the war [04:38:32] [3/4] Miralove, Mirapraise [04:38:33] [4/4] I'll Miralove you till my dying days [04:40:58] I have no idea what you're referencing [05:04:54] [citation needed] [07:04:16] Is there any way to shrink XML files? [09:19:33] [1/2] tabberneue is the more recent one, tabs is really old [09:19:33] [2/2] neue adds like #Tabname-0 to the url when you go to a tab, which can be used as the link to said tab [09:30:02] read the Basics section on the meta Phabricator page [09:33:11] [1/2] you can also use the slideshow mode in a gallery, if you want it to only be one image visible at a time [09:33:12] [2/2] https://www.mediawiki.org/wiki/Help:Images#mode_parameter [09:36:29] for formatting, you can use
tags to make a new line without more empty lines. for general squishness you can increase the `line-height` value in MediaWiki:Common.css [09:41:40] [1/4] something like this [09:41:40] [2/4] `.evelution-article { [09:41:40] [3/4] line-height: 1.6; [09:41:41] [4/4] }` [10:23:39] oh, let me give it a shot again then. thank you for the heads-up [11:01:10] [1/2] ok i can see it kinda worked, but there's a minor visual glitch i think i can live with [11:01:10] [2/2] thanks! [11:15:44] [1/2] ok i just noticed another problem with tabberneue [11:15:44] [2/2] the first bullet point, if right after the name of a tab, will never be treated as a bullet point [11:30:38] can try this, but yeah it's been that way since the way mediawiki update I think [11:33:47] ahh i see, thanks [12:45:51] hi everyone [12:46:07] is there an alternative for fandom forum?? [12:46:45] I am migrating to miraheze from fandom and I need an alternative for fandom forum but on miraheze/mediawiki [12:50:20] people usually replace it with a discord server [12:51:25] okay [13:55:17] [1/7] Thank you so much, that slideshow thing is exactly what I was looking for! I think I'm doing something wrong though, because the images aren't showing up? This is my wikitext: [13:55:17] [2/7] [13:55:17] [3/7] [[File:Millennia-Blangg.jpg|alt=Image ID: A digital drawing of Millennia, torso-up, a blue-haired woman in academy words, smiling. Next to this is a smaller drawing of Millenia that shows her whole body- she is running.|thumb|A fanart of Millennia, made by tumblr user Blangg, and added to this wiki with permission.]] [13:55:17] https://meta.miraheze.org/wiki/File:Millennia-Blangg.jpg [13:55:18] [4/7] [[File:Millenia-swankytown04.jpg|alt=image ID: A drawing of Millenia, a blue-haired woman, by tumblr user SwankyTown04.|thumb|A fanart of Millennia, made by tumblr user Swankytown04, and added to this wiki with permission.]] [13:55:18] https://meta.miraheze.org/wiki/File:Millenia-swankytown04.jpg [13:55:18] [5/7] /gallery [13:55:18] [6/7] And this is what the page looks like: [13:55:19] [7/7] https://decapedia.miraheze.org/w/index.php?title=Millennia&stable=0 [14:00:31] and thank you very much for your help with this as well! It's so much easier to read now! [14:04:36] [1/5] for adding images to galleries, it is without the [[File:]] bit, just the plain name. and you can also remove thumb :) [14:04:36] https://meta.miraheze.org/wiki/File: [14:04:36] [2/5] [14:04:36] [3/5] Millennia-Blangg.jpg|alt=Image ID: A digital drawing of Millennia, torso-up, a blue-haired woman in academy words, smiling. Next to this is a smaller drawing of Millenia that shows her whole body- she is running.|A fanart of Millennia, made by tumblr user Blangg, and added to this wiki with permission. [14:04:37] [4/5] Millenia-swankytown04.jpg|alt=image ID: A drawing of Millenia, a blue-haired woman, by tumblr user SwankyTown04.|A fanart of Millennia, made by tumblr user Swankytown04, and added to this wiki with permission. [14:04:37] [5/5] /gallery [14:38:16] is it possible to access the api of my private wiki with a bot token somehow? I already have a bot :) [15:34:21] If your bot is a member of that wiki it should be able to access the wiki. [15:36:54] ah, okay, thanks so much! [15:38:52] I thought so too, but I get `readapidenied`. I can only assume I'm using the API wrong? I just want to query recent changes [15:40:45] How are you authenticating the request <:ThinkerMH:912930078646730792> [15:40:56] what software are you using? Have never tried to do it tbf but if you've given your bot the right to view the API in the Bot Password, then it should work. [15:41:53] I've tried with Python `requests` with my bot username (@) and it's token from Special:BotPasswords [15:42:37] I think you need to request an auth thing from the wiki frist [15:42:46] hold up let me find some of my old code [15:42:53] ive done auth with requests before [15:43:47] okie, thanks! I'm looking myself too for info on mediawiki - I think I found the relevant part: [[mw:Manual:Creating_a_bot#Logging_in]] [15:43:47] https://www.mediawiki.org/wiki/Manual:Creating_a_bot#Logging_in [15:43:48] [15:44:18] Heres my code if you want [15:44:22] [1/28] ```py [15:44:22] [2/28] # Get login token [15:44:23] [3/28] authCall = S.get( [15:44:23] [4/28] url=site_url, [15:44:23] [5/28] params={"action": "query", "meta": "tokens", "type": "login", "format": "json"}, [15:44:24] [6/28] ) [15:44:24] [7/28] # Login [15:44:24] [8/28] login = S.post( [15:44:25] [9/28] url=site_url, [15:44:25] [10/28] data={ [15:44:25] [11/28] "action": "login", [15:44:26] [12/28] "lgname": username, [15:44:26] [13/28] "lgpassword": password, [15:44:27] [14/28] "lgtoken": authCall.json()["query"]["tokens"]["logintoken"], [15:44:27] [15/28] "format": "json", [15:44:28] [16/28] }, [15:44:28] [17/28] ) [15:44:29] [18/28] print("Token: " + authCall.json()["query"]["tokens"]["logintoken"]) [15:44:29] [19/28] print("Login Status: " + login.json()["login"]["result"]) [15:44:30] [20/28] if "reason" in login.json()["login"]: [15:44:30] [21/28] print(login.json()["login"]["reason"]) [15:44:31] [22/28] print( [15:44:31] [23/28] f"Logged into {siteName} as: " [15:44:32] [24/28] + S.get( [15:44:32] [25/28] url=site_url, [15:44:33] [26/28] params={"action": "query", "meta": "userinfo", "format": "json"}, [15:44:33] [27/28] ).json()["query"]["userinfo"]["name"] [15:44:34] [28/28] )``` [15:44:42] https://github.com/pixDeVl/MediaWikiCharter/blob/main/MediaWikiCharter.py [15:45:16] not the best but better then my advent of code programming [15:45:35] bingo [15:48:54] getting the same issues as before unfortunately, and I'm just as confused after reading mediawiki [15:49:34] Would you mind if I take a look at your code? [15:51:49] I don't really have much, but sure! [15:52:22] i've replaced the password (and the bot username for some reason), but in my actual code they're both correct :) [15:59:58] you need to get a login token from miraheze and use that instead [16:00:27] ah okie, I was just looking at that [16:00:28] an example [16:01:07] make the requests in the same session, it handles storing cookies for you [16:01:30] (S is set to an instance of requests.Session()) [16:02:00] gotcha :) [16:02:09] its a bit goofy [16:06:44] here's my code now, I'm still getting the same error [16:10:23] ignore that, that was dumb code [16:11:40] got it working :D [16:11:49] (well, it successfully logged in!) [16:13:22] all good now, thanks for helping @pixldev <3 [16:13:59] (there is also already pywikibot that does what you're trying to do) [16:14:17] 🍺 [16:14:34] eh depend on what your using it for can be a wee bit over kill imo [16:14:54] I need it for JS, I was just testing in Python. i thought writing something basic myself would be cool too :3 [16:24:42] it is [22:02:19] i regret trying to import things at all now oh lord [22:02:31] ive been driven insane [22:34:04] Anyone hanging about who feels like talking organization? [22:34:20] can you expand on that? [22:34:54] im just not sure what you mean [22:34:56] 🤔 [22:35:32] I'm just starting a wiki. I don't know anything. The advice I keep getting is organize and plan. And I want to make sure I have the scope down. [22:36:51] This [22:38:42] I guess I need advice on "category and file/name structure" I know my goals/desire page layout. [22:43:52] oh [22:45:31] it's kinda hard to give like [22:45:37] overall advice [22:45:49] I'm better at giving advice on specific things [22:45:50] but [22:46:02] even so the main thing I suggest is looking at other wikis [22:46:09] Well, assume I'm planning on just creating pages more or less at random... [22:46:14] don't neccisarily copy what they do outright, but same inspiration [22:46:30] with his they categorize things and such [22:56:56] what css can you use to make every page title bold? using this one but it only makes the page title itself bold and doesn't work when it's a mediawiki page or user page [23:54:03] <.wintertime.> [1/2] Does this work for uploading a font? [23:54:03] <.wintertime.> [2/2] @import url('htt ps://fonts .googleapis.com/css2?family=Paytone+One&display=swap');