[01:08:52] [1/2] anyone know why it has that weird gap? [01:08:52] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484720417506594857/image.png?ex=69bf4124&is=69bdefa4&hm=6b975282e76444561893d69b80f988459653600c37b9acfca42623995c8378d9& [01:21:40] could you link the page? [01:22:04] [1/5] I imagine you have ``` [01:22:04] [2/5] {{infobox [01:22:04] [3/5] ... [01:22:05] [4/5] }} [01:22:05] [5/5] ==test==```but don't know for sure [01:22:57] [1/2] i just started working on another one but it should be the same [01:22:57] [2/2] https://ronanjeanpaul.miraheze.org/wiki/2_Heaven [01:25:12] [1/7] okay yeah reverse the ordering, i.e. ``` [01:25:12] [2/7] '''2 Heaven''' ... [01:25:12] [3/7] {{Album [01:25:12] [4/7] ... [01:25:13] [5/7] }} [01:25:13] [6/7] [[Category:...``` [01:25:13] [7/7] https://cdn.discordapp.com/attachments/407537962553966603/1484724522962915489/image.png?ex=69bf44f7&is=69bdf377&hm=944b400bcb90ea8eb52793fc7c647aa6c9f0fd6ed219d1b03814cdb579504763& [01:26:24] by having two newlines at the top you're putting in an empty paragraph at the top, then by having your intro two newlines below the template you're putting in another empty paragraph above that [01:26:29] just pasted some lorem ipsum and now its weird [01:26:44] is there a way for the text to hug the infobox? [01:27:08] https://cdn.discordapp.com/attachments/407537962553966603/1484725013746679859/image.png?ex=69bf456c&is=69bdf3ec&hm=a4346464bbe55b7162c4a8d88eec3a3e6944282009b8b89a894d61fce5749f6c& [01:27:15] remove the space at the start of the first lorem ipsum paragraph [01:27:36] still looking weird [01:27:40] in fact you probably don't need the lorem ipsum stuff at all [01:28:02] [1/2] ok nvm my reference has this problem as well [01:28:02] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484725239102312548/image.png?ex=69bf45a1&is=69bdf421&hm=94ff524b68ca8ad45463f37eff7de680ec47068457f16ff303aa3e168b40169b& [01:28:05] is there a hypothetical fix? [01:28:54] idk wtf i did but now it looks good [01:29:03] https://cdn.discordapp.com/attachments/407537962553966603/1484725496049696878/image.png?ex=69bf45df&is=69bdf45f&hm=4411c3b10e5e5527d9741f5bc3484f4f050a1f49f77fd0713e0ea133e915b55b& [01:29:41] huh interesting why does it do that on your wiki [01:30:13] it is weird yeah [01:30:14] anyways [01:30:18] i gotta keep writing [01:30:29] [1/2] and figure out wtf this is [01:30:29] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484725854985650228/image.png?ex=69bf4634&is=69bdf4b4&hm=8319314a080cbe87cc00a2a399c14033a50717714c661bf71d0f6db319edb283& [01:31:57] nvm looks like PI always did this and I never noticed [01:33:17] table of contents, it happens automatically with enough headings. or you can put `TOC` on the page to force it to appear [01:33:30] tysm! [01:33:36] i thought it was something that got coded in [01:33:41] i confused it w the navboxes [01:46:48] just realized that i have to make a quote template [04:48:06] silly question [04:49:56] [1/13] i'm running a python bot that is diffing full old builds of Team Fortress 2 from 2007-2013, and exporting the build diffs + file content diffs to my wiki. i've got a sleep time in between edits and it's currently this: [04:49:56] [2/13] ```py [04:49:56] [3/13] for attempt in range(3): [04:49:57] [4/13] time.sleep(EDIT_DELAY + random.uniform(0.3, 1.0)) [04:49:57] [5/13] r = self.s.post(self.api, data={ [04:49:57] [6/13] "action":"edit","title":title,"text":text, [04:49:58] [7/13] "token":token,"format":"json","assert":"user","bot":1 [04:49:58] [8/13] }).json() [04:49:58] [9/13] if "edit" in r and r["edit"]["result"] == "Success": [04:49:59] [10/13] return [04:49:59] [11/13] time.sleep(RETRY_BASE_DELAY  (2 * attempt)) [04:50:00] [12/13] ``` [04:50:00] [13/13] Should I increase the random.uniform thing a bit? maybe 5.0, 10.0? i don't want to kill the miraheze servers [05:09:20] Hi, what should I know as a new wiki crat? [05:33:26] [1/2] I hope I am not fucking shit up lol [05:33:27] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484786999218143293/21D9DD42-B889-4EE1-86FE-548C5920EF9A.png?ex=69bf7f26&is=69be2da6&hm=8765c03123c27c3d4bd7b7cd6a9f9728642cbcf8bcc1b7c19e8ea8180c6c4373& [05:56:32] wrong file url to use; use the static.wikitide.net one [05:56:39] on the file page copy image address from the image [05:56:53] also i donttt think favicons support gifs [05:57:51] so just icon and logo? [05:57:53] ty [05:59:15] @whostacking [06:00:26] all three values [06:00:36] i'm fried [06:00:51] favicon, icon, logo [06:02:44] and I have to use the static.wikitide.net one right? [06:09:45] ye [06:30:04] alright i'm confused, so do I just upload an ICO file onto the wiki then get the static.wikitide.net page so it applies [06:30:49] how do i even get the static.wikitide.net link [06:35:14] Go to the File: page, click to view the original file [06:35:20] Then copy that url [06:35:30] And yes, ico for favicon [07:36:36] [1/2] do yall know how to add an image to this 🥹 [07:36:37] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484817995007135775/image.png?ex=69bf9c04&is=69be4a84&hm=648d59129cb360f8bfcefc967e15ac5679d36f8197cf4a6ed3faddee5320a6d9& [07:53:55] You got to upload it onto the wiki and also remove the whitespace characters along with this. [08:05:04] alr [08:06:09] 👍🏻 [08:41:52] did a bit of searching, these whitespaces are confusing me [08:46:39] [1/2] Is there a way to assign line numbering to lines of text on a page? [08:46:39] [2/2] Our wiki hosts some longerform source text like lyrics and we want to be able to more precisely cite these line-by-line. While I could just put them all in a table and manually number, I feel like there has to be a way to display this better. And table formatting would make any copy-pasting from the page awkward. [08:47:24] All I can think is doing some kind of css styling. I've done css before but not like that. [09:08:08] I just manully added the line numbers [09:08:16] Definitely doable. You'd need a Lua module that splits text line-by-line, add unselectable line numbers in front, and then format them properly. [09:09:53] [1/3] I wrote something that performs the splitting part as well, which can be used as a reference, but the line number feature you'd have to figure out yourself. [09:09:53] [2/3] https://dev.miraheze.org/wiki/Module:Lyrics [09:09:53] [3/3] Perhaps somewhere on the Internet someone has written something similar on a wiki, but you'll have to look really hard for it. [09:20:45] Thank you! I have keywords for what I'm looking for now haha. Appreciate it. [11:58:00] miraheze servers ain't dying from a 2 second interval, if you were really in danger of causing serious harm you'd get throttled. if you're worried about page size then make the content of your edits more efficient idk [12:02:35] [1/2] hello awesome mediawiki Peeps [12:02:36] [2/2] i wanna use awb to kill some unused infobox param from like 500+ pages [12:02:52] [1/5] its like your standard [12:02:53] [2/5] {{Infobox [12:02:53] [3/5] |param1 = balh [12:02:53] [4/5] |param2 = ig [12:02:53] [5/5] }} [12:03:07] and i wanna kill param2 along with everything in it [12:03:15] (without leaving a random gap in it ofc) [12:03:38] [1/2] it might be harder if the infobox is structured like this [12:03:38] [2/2] {{Infobox|param1 = ok|param2 = haha|param3 = ok}} [12:03:54] some pages have it structured like that idk why (prolly visualeditor moment) [12:08:11] [1/8] what I would do there is use pywikibot, use mwparserfromhell to parse the infobox, then reconstruct the entire thing from the parameters I've chosen. however that would transform `{{Infobox|param1 = ok|param2 = haha|param3 = ok}}` to ``` [12:08:11] [2/8] {{Infobox [12:08:11] [3/8] |param1 = ok [12:08:11] [4/8] |param2 = haha [12:08:12] [5/8] |param3 = ok [12:08:12] [6/8] }}``` [12:08:12] [7/8] if that's what you want then the code's at https://battlecats.miraheze.org/wiki/User:TheWWRNerdGuy/scripts#fixsections.py [12:08:13] [8/8] https://cdn.discordapp.com/attachments/407537962553966603/1484886337583841370/image.png?ex=69bfdbaa&is=69be8a2a&hm=074a8c556fe97d976d3f420fe454519719d6418de243849cb0c230bea3a77bbb& [12:12:47] [1/3] how do I make a table like this for my wiki? is it just the same code or do I need some template or smth? I know the gold silver and bronze are templates btw [12:12:47] [2/3] https://cdn.discordapp.com/attachments/407537962553966603/1484887495870251198/2db58961d39a3fc30ee80a4a250e47d0.png?ex=69bfdcbe&is=69be8b3e&hm=d22b8af36c2afa83f5aae41a71bdfe0cc99f0e86266e7e0518e7cb4e370d7621& [12:12:48] [3/3] https://cdn.discordapp.com/attachments/407537962553966603/1484887496272773210/326af19ad7d8dbd0c06bd1d1bc35ac9b.png?ex=69bfdcbe&is=69be8b3e&hm=2042e7d476d2c3e608560a606cfc6ee8090fe2122eea5833b2d8a030dda9beb1& [13:01:24] You can use the same code, it should appear the same in your wiki as there's nothing extra in there. [13:02:00] If you are looking to do this on multiple pages you could also take a look at making it a template. [14:06:58] !remindme to write a template format cleaner on jswikibot/other [14:08:41] [1/2] honestly this is why you should add`` on your templates, then remember to set`format` on your ``: [14:08:41] [2/2] https://www.mediawiki.org/wiki/Help:TemplateData#Custom_formats [14:11:07] tbf its like that because [14:11:21] lotta people in the fandom wiki didnt know how to use source editor [14:11:33] and most templates never had templatedata [14:11:37] all added recently lol [14:12:27] wait a seccccccccccccccccccc this thing can jkust convert that ugly one line structure to a multi line structure??? [14:27:19] H [14:29:16] Hi hi [15:45:09] tysm, works rn [16:01:16] Phew, thanks for the info [16:14:11] assuming there isn't anything weird like `{{Infobox|param1 = ok|param2 = haha'''|param3''' = ok}}` yeah, mwparserfromhell can't quite do everything correctly but it works on Battle Cats wiki stage info [16:17:42] [1/2] How do I modify this? [16:17:42] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484949131914121377/9C8111D3-5F1A-476B-A512-3EB9882B4BBA.png?ex=69c01626&is=69bec4a6&hm=0471d2c73df12342a2630000b5efed529d36f1bab7d688c804d56318fed08556& [16:18:08] so I can add pages like https://syncblade.miraheze.org/wiki/Discord to there [16:19:05] making a wiki is surprising harder then I thought it would be [16:21:33] [1/2] some extensions is disabled to crats, hella interesting [16:21:34] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484950102652223588/CC0CDBDA-14F2-4372-BD65-5E73C3CBF905.png?ex=69c0170d&is=69bec58d&hm=c874d2c33bf7e9eb884580db55324b646c8ba31d0325085704cfdb980716c613& [16:26:14] Should be under MediaWiki:Sidebar [16:26:22] ty [16:27:11] note that the way you write links there is slightly different [16:27:12] https://www.mediawiki.org/wiki/Manual:Interface/Sidebar [16:27:16] [1/2] How do I edit this page so I don't break things [16:27:17] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484951540912492766/2ADF3DE7-25C2-4042-9266-3BE22E080BD8.png?ex=69c01864&is=69bec6e4&hm=80de9dd514397508bc0b34c29d401fa9f5574680bd1707ab0e07ee163411b903& [16:27:21] noted, tysm [16:28:04] hi, how to add this MediaWiki:Common.css to my wiki? [16:28:24] what do you mean [16:28:33] the page should exist on your wiki already [16:28:44] oh [16:28:46] aight then [16:29:14] [1/2] the template i added from the dev page is like this [16:29:15] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484952034112307451/image.png?ex=69c018da&is=69bec75a&hm=904d5133bf725460d16c1da9ea7593420dd308fb39a0e15a33d4bf7a7d06f9b9& [16:29:21] how to i make it look like an actual infobox? [16:30:40] which template is this [16:31:08] ok wait I found it [16:32:18] ok so [16:32:21] I think [[mw:Manual:Sidebar]]? [16:32:22] [16:33:03] when they said "copy MediaWiki:Common.css to your own wiki.", that actually meant copying the rules that were in the dev wiki's MediaWiki:Common.css. They don't specify which ones though [16:33:10] [16:33:16] and how do i do that [16:33:47] tbf all the rules do start with `.infobox` [16:34:07] https://dev.miraheze.org/wiki/MediaWiki:Common.css [16:34:09] this is where it leads [16:34:18] yeah that's what [[SR/RC]] is for [16:34:19] [16:35:17] yeah but like, whether something like `div.medialist` is used, whether all the infobox rules are used by this template or if some are from another infobox [16:35:18] anyway [16:35:36] so uhh [16:35:39] basically you go to the same page on your wiki [16:35:39] what do i do [16:35:45] same page [16:35:46] and just copy the whole thing over [16:35:47] the template one [16:36:06] the template page or the one the template doesnt work in [16:36:24] yourwiki.miraheze.org/wiki/MediaWiki.Common.css [16:36:39] copy the stuff from this page into here [16:37:16] you may need to wait like 15mins or something for it to take effect [16:37:24] as a css codeblock right [16:38:01] your wiki's version is already a css page so just throw it in [16:38:34] https://cdn.discordapp.com/attachments/407537962553966603/1484954383170142428/image.png?ex=69c01b0a&is=69bec98a&hm=a1c6c5dd7c69400179ea62bd932cd8222e62356ab6fdc9b0fee965e3098618ab& [16:38:40] it appears like this without the codeblock [16:39:13] I have no clue how you got that to happen [16:39:16] [1/2] im sorry about asking every small step, i know nothing about coding [16:39:17] [2/2] got dragged into this by some friends [16:39:17] 😭 [16:39:28] i ctrl-c'd the code on the dev page [16:39:32] ok which page are you pasting it in [16:39:33] ctrl-v'd it there [16:39:42] my wikis version of that page [16:39:45] it didnt exist [16:39:47] so i hit create [16:39:53] then pasted it straight it [16:40:20] ok i changed the text type from paragraph to preformatted [16:40:33] [1/2] now looks like this [16:40:33] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484954883219132668/image.png?ex=69c01b81&is=69beca01&hm=29f5956113c8a05a734f5f7b1fd30ca178230287e75e873859503dba2085aa80& [16:40:45] oh I see [16:41:00] visualeditor issue. I didn't even know you could have visualeditor on this [16:41:30] so do i go with the preformatted or codeblock [16:41:32] I'm not sure whether it would work like this but to be safe, change to Create source instead on the top right [16:41:48] oh [16:41:53] i paste it on the source page [16:41:58] ok that makes sense 💔 [16:42:15] yeah I've never tried working with these page types in VisualEditor [16:43:54] aight so ill wait 15 mins and see if it works then [16:45:15] yeah I'm not sure if not having the CSS is why it displayed like this or if there's some other reason. Sometimes VisualEditor also just shows templates like that instead and I'm not sure what exactly causes it to happen [16:45:30] but you can like, wait and see [16:45:50] if it's a visualeditor preview issue, then maybe also see if it displays properly when the page is saved [16:45:58] (or switch to source editor -> preview page) [16:46:31] I gotta sleep now though so if there's still issues someone else will have to take over [16:48:33] [1/2] the reading page is a mess [16:48:34] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1484956897701400756/image.png?ex=69c01d61&is=69becbe1&hm=f13215bacbeccbb9adf9d0b0fd5cec68e796fe3e22a43a5183dac8aa8fe3a01d& [16:48:42] but the source section is fine [16:48:47] exactly as it is on the dev page [16:49:07] wait hold on [16:49:15] I see the problem [16:49:36] I messed up here it should be a : not a . between MediaWiki and Common [16:50:08] delete this page cause it isn't doing anything [16:50:15] uh I think you can go to Special:ChangeContentModel to fix it [16:50:40] well the real issue is I gave the wrong page name [16:51:17] oh yeah I'm blind [16:52:08] ok uhh [17:08:28] with everything fixed [17:08:30] https://cdn.discordapp.com/attachments/407537962553966603/1484961918081831012/image.png?ex=69c0220e&is=69bed08e&hm=4339a4de01360badb76f4c8ad709298cdbf406315a586b80a813b2e6d8d55f84& [17:08:31] this is what it shows [19:12:38] how do i fix this 🥀 [19:29:24] awesome thank you!! [21:44:48] in a case like that extension, i can see why they restricted it [21:58:47] this looks like some visual editor dark mode issue, generally you can fix these by inspecting element and finding the offending CSS. If it's not private, could you link the wiki? ( #verify to send links ) [22:02:41] Fein [22:07:25] Did the fundraiser end [22:25:57] [1/2] Maybe not as mentioned anymore on wikis, but you can still donate I believe. [22:25:57] [2/2] They only need $764.56 to reach the 25,000 goal [22:26:29] -# Which still is mighty impressive regardless. [22:33:33] in the past day and a half i have done probably over 1500 deletions, in batches of nukes, for my diffing bot. if i let it run without deleting the original pages it makes, when it runs again, it starts randomly de-alphabetizing the diff list [22:37:01] wanna meet my bot? :3 say hi to [Bitch TF2CutContent]() :steveo_kek2: [22:40:59] [1/2] jesus, i dropped....7 nukes in a day [22:40:59] [2/2] https://cdn.discordapp.com/attachments/407537962553966603/1485045588151242832/image.png?ex=69c06ffb&is=69bf1e7b&hm=1cc6dbb91472deb3c916be491420599a687e3fbf48acf274ab44fbed692f0ea5& [23:43:10] how does licensing shit work, like if my wiki is CC BY-NC-SA 4.0 can i import from dev wiki templates or wikipedia templates [23:49:35] Licenses are for what other people are allowed to use your work, CC BY-NC-SA 4.0 is one of the more restrictive digital rights for people to use. Meaning that if a person uses your work they have to credit you, use your work non-commercially, and share-alike (meaning if a person wishes to adapt it for their own usage they must use it with the confines of your terms). [23:50:18] If they violate the license you may give them a copyright notice. [23:51:21] Since wiki templates are free and open, you are allowed to adapt the template for whatever you wish but you cannot claim the template as your own work. [23:59:19] [1/3] https://meta.miraheze.org/wiki/User_talk%3APetraMagna#c-PetraMagna-20260217032600-RandomUser123789-20260217014200 [23:59:19] [2/3] Someone asked me a similar question before and this is my understanding of the situation. [23:59:20] [3/3] TLDR: you can import. Just have a note somewhere that the imported page is licensed differently from the rest of the wiki.