[01:08:41] God dammit [01:08:46] Why is Wikipedia being ruined [01:36:21] [discord] Quick question, is it possible to change the license on the footer of my wiki? I want to have the content on it be CC BY-NC-SA 4.0. [01:37:25] [discord] It should be possible via Special:ManageWiki/settings [01:37:30] [discord] Thanks! [01:45:08] [discord] one of my friends who is verified in the server also got this [01:45:08] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065084391782617159/image.png [01:45:10] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065084392042672220/image.png [01:51:28] [discord] Thanks, I've popped all of this into a google doc for when I revise the SEO section (or create a separate general SEO guide) [01:51:42] [discord] alright got it [01:51:45] [discord] np [01:53:59] [discord] If someone manages to get to it first, even better -- less work for me. 😄 [01:54:29] [discord] kk [01:55:02] [discord] what is the seo guide? i could edit it if you want [01:57:19] [discord] Oh, I'm mulling over converting the WikiSEO page for the new admin guide I'm working on into a generalized SEO guide, or perhaps creating a companion page that covers general SEO and organic traffic growth tips [01:57:51] [discord] But if someone wanted to take a crack at creating their own general SEO guide, I'm not opposed to that either. [01:59:27] [discord] Uh... wow. Apparently I'm the first google result when searching miraheze wikiseo [01:59:37] [discord] damn [01:59:40] [discord] good job ig [02:00:18] [discord] Oh dang, and 6th result when searching WikiSEO help [02:00:25] [discord] thats really good! [02:00:56] [discord] Well. Shoot. I guess I really should keep going w/ these guides if it's able to make that much of a dent in results that quickly. [02:01:12] [discord] yea [02:03:14] Probably helps that you have SEO in your SEO guides. [02:03:27] [discord] hahahahaha, yeah I suppose so. [02:03:55] [discord] yea lmao [02:04:18] [discord] Maybe at some point it can be moved to the meta namespace as an essay like how wikipedia does to make the title look more official in search results [02:04:33] [discord] yea [02:06:16] [discord] I'd like to get to that point if consensus is for it, but I want to keep them in personal namespace for now so I can keep doing polish work on them. [02:06:17] [discord] There's a need for a cohesive set of interlinked newbie admin help pages but I really want avoid releasing anything half-baked. [02:17:52] [discord] alright thats good [02:21:43] [discord] heres my work in progress stuff with all the seo advice i stole from fandom https://meta.miraheze.org/wiki/User:Collei/Improving_a_wiki%27s_SEO [02:21:45] [url] User:Collei/Improving a wiki's SEO - Miraheze Meta | meta.miraheze.org [02:22:56] [discord] it's also missing an important thing [02:23:02] [discord] you have to use WikiSEO [02:23:22] [discord] i know [02:23:23] [discord] without that it's very hard to get actual good SEO, as MW doesn't let you manage meta tags normally [02:23:31] [discord] notaracham has a wikiseo guide [02:23:38] [discord] im going to add it into my draft too [02:23:51] [discord] but my draft is currently just a listing of things i found from fandom [02:23:56] [discord] not a finished guide yet [02:24:07] [discord] there's also other stuff that can help [02:24:08] [discord] like performance [02:24:16] [discord] i put that at the bottom of the page [02:24:17] [discord] accessibility (all images must have an alt tag) [02:24:25] [discord] because again so far this is just what i stole from fandom [02:24:28] [discord] but yes im aware of those [02:25:28] [discord] would be nice if MW could minify images with webp out of the box [02:25:46] [discord] while it's an annoying format when you're downloading stuff, it is much better for performance [02:25:49] [discord] Thanks for the soon-to-be added link! [02:25:58] [discord] multimediaviewer doesnt let you use webp [02:26:00] [discord] np [02:26:14] [discord] and multimediaviewer is the only reason im not using webp right now [02:26:35] [discord] you can configure it in localsettings.php to allow that but managewiki isnt set up for it yet [02:28:27] [discord] oh but before webp, I just want MW to display SVGs as actual SVGs [02:28:44] [discord] i think it does that [02:28:45] [discord] could be worng [02:28:46] [discord] i know there's an extension for that, but it should be default funcionality [02:28:56] [discord] might have something to do with security iirc [02:30:55] [discord] Finally managed to set up my wiki's home page from scratch, took a bit of trial and error [02:31:16] [discord] good job [02:32:36] [discord] Thanks! [02:33:29] [discord] Great stuff! The first week or two of setting up wiki infrastructure is a learning curve, but the community is here to answer your questions as they arise. [02:33:58] [discord] Yeah I was kinda inactive for a while because I got really distracted but I plan to start putting articles and such up for the next few weeks [02:34:38] [discord] have fun [02:34:42] [discord] its really enjoyable to see your wiki grow [02:34:59] [discord] it will take a bit of work but it becomes worth it over time [02:35:24] [discord] hmmm [02:35:36] [discord] is there any way to make Special:Analytics visible to admins only? [02:38:57] [discord] Nothing durable [02:39:58] [discord] alright i see rip [04:29:00] [discord] I’m leaving Fandom and just going to migrate to Miraheze [04:32:00] [discord] good job [04:32:07] [discord] though fandom will probably cause you problems [04:32:17] [discord] they actively ban people who try to leave [04:33:43] [discord] and they will refuse to close your wiki for you [04:33:50] [discord] you'll have to outrank them in search results [04:33:58] [discord] and once you move all the content you can [04:34:10] [discord] maybe try to make a request to be forgotten request [04:34:21] [discord] 😮 [04:34:45] [discord] which would erase most of the information about your fandom account that is possible to delete [04:34:51] [discord] along with mass deleting your messages etc [04:35:13] [discord] fandom is a pain for everyone [04:36:25] [discord] Well, first step would be migrating content to reach parity first. I wouldn't do anything drastic until you've done so. [04:36:26] [discord] (the motivation for erasure is to eliminate as much monetizable content as possible) [04:36:32] [discord] yeah obvs [04:36:44] [discord] once you've migrated to miraheze [04:37:01] [discord] then you have to work on wiki seo a lot [04:37:18] [discord] on your miraheze wiki [04:37:25] [discord] https://meta.miraheze.org/wiki/Special:RequestWikiQueue/29233#mw-section-comments oh yeah this request got re-opened again [04:37:26] [url] Wiki requests queue - Miraheze Meta | meta.miraheze.org [04:37:28] [discord] idk why [04:37:35] [discord] they havent made the changes requested [06:09:23] [discord] I’ve already have that Wiki on Miraheze so I don’t need to request another Wiki @Colleiflower [06:16:44] [discord] that is good [06:18:12] [discord] Fandom just stinks [06:21:06] [discord] @Agent see you updated the miraheze meetings tab for the board [06:21:08] [discord] 22 january [06:21:22] [discord] assuming the board proposal we previously discussed will be brought up? [06:21:50] [discord] oh wait holdup never mind it's not a board meeting [06:22:09] [discord] my bad [06:40:11] Oh, cookie guy is BrandonWM [06:40:15] Didn't know that [06:57:45] [discord] The relay uses usernames not displayed names for discord [07:15:11] [discord] Ahh I was wonder who they meant by cookie guy xD, but that makes sense then [07:50:26] [discord] Is the LinkSuggest extension broke on MH? [07:51:11] [discord] I noticed it doesn't work once after the db141 issue [08:37:46] [discord] Oh, noticed it doesn't work with syntax highlighting [08:38:05] [discord] that's a bit annoying [14:19:11] [discord] Goodnight! [16:42:37] [discord] Is $wgEmbedVideoFetchExternalThumbnails set to False for the embedvideo extension? [16:44:00] [discord] If not, could it be set to false for privacy reasons? [17:03:45] It might be in ManageWiki [17:03:56] If it isn't, it could be changed for your wiki yeah [17:14:42] [discord] Gotcha [17:18:25] [discord] Doing a quick scan through, it's not available through front-end UI for additional settings or EmbedVideo's discrete settings page. I think I know where I can see what it's set to, though. [17:27:55] [discord] OK, so we aren't declaring a default in the LocalSettings that is applied globally and the default setting is TRUE according to the extension's github page [17:28:40] [discord] This is one of those things that can't be set local to individual wikis at the moment, but would be a great thing to propose adding via Phabricator. [17:37:56] [discord] Ok ill do that, thanks [18:03:02] [discord] where is the phabricator btw [18:03:11] [discord] [[phab:]] [18:03:11] https://meta.miraheze.org/wiki/phab: [18:03:12] [discord] [18:03:12] [url] Main Page | phabricator.miraheze.org [18:03:28] [discord] kk [18:20:58] [discord] actually maybe it is already set to False. i assume if it was true, there would be a thumbnail before clicking anything, but theres no thumbnail: https://comprehensibleinputwiki.org/wiki/Ukrainian/Videos [18:20:59] [url] Ukrainian/Videos - Comprehensible Input Wiki | comprehensibleinputwiki.org [18:35:09] [discord] are there any database/spreadsheet extensions installed on MH? I think something like WikiDB is what im looking for. to be able to have a place for all the raw data that can then be accessed and organized in various ways on pages that need the data [18:36:34] [discord] The three we have available that you should be checking out: [18:36:35] [discord] https://professional.wiki/en/articles/managing-data-in-mediawiki [18:36:36] [url] Semantic MediaWiki vs Wikibase vs Cargo - Professional.Wiki | professional.wiki [18:37:15] [discord] oh nice ill read that [18:37:19] [discord] Each have their drawbacks, I think WikiBase is the only one you can install on your own. [18:37:39] [discord] the other two, id need to make a phabricator request? [18:37:48] [discord] Or stewards board, but phab is probably better. [18:37:52] [discord] got it [18:41:33] [discord] wait fuck are we able to ask questions here? discord forum threads kind of i dont like them [18:41:35] [discord] @FuzzyEpic3 Watch your language. [18:41:43] [discord] sorry [18:41:47] [discord] yes that's fine [18:41:48] [discord] Heh, thanks for amending. [18:42:06] [discord] General is for small questions that don't require a thread, Support is for things that you're gonna need more back-and-forth to solve. [18:42:16] [discord] that makes more sense [18:42:56] [discord] i feel like im missing something crucial but using `filter:` does not work for the page or for images and im not sure why. it breaks all css [18:42:57] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065340531946819744/image.png [18:45:08] [discord] So this is less my area of expertise, though I do see we have a record 3 CSS volunteers on simultaneously! [18:47:16] [discord] Hopefully one of them can direct you with more specificity, but general advice: [18:47:17] [discord] [18:47:18] [discord] 1. Use F12 developer console to explore what styling's getting applied to the object you're looking for, see if maybe another declaration is overriding yours. [18:47:20] [discord] [18:47:21] [discord] 2. Inspect the element to see if it's actually associated with the right HTML tag you're expecting [18:47:22] [discord] [18:47:24] [discord] 3. Try each 'filter' criteria independently (blur, then grayscale) to see if it's syntax tripping you up on one of them. It seems like greyscale may expect percentages instead of decimal equivalents. [18:48:54] [discord] 3) all of them do not work [18:51:34] [discord] im not really sure where to look for the first 2 [18:52:21] [discord] would you be able to link your wiki so i could try inspecting the css? [18:52:48] [discord] its a private wiki but im ok with pasting code [18:53:13] [discord] ah ok i was hoping to play around with the browser inspect tool [18:53:38] [discord] yeah if you could paste the css you're using [18:55:04] [discord] well this one is supposed to change the icon and the footer icons [18:55:05] [discord] [18:55:06] [discord] {{#css: [18:55:08] [discord] [18:55:09] [discord] [...] [18:55:10] [discord] [18:55:12] [discord] .mw-wiki-logo { [18:55:13] [discord] filter:sepia(1); [18:55:14] [discord] } [18:55:15] [discord] .mw-footer ul { [18:55:17] [discord] filter:sepia(1) opacity(.5); [18:55:18] [discord] } [18:55:19] [discord] [18:55:21] [discord] [...] [18:55:22] [discord] [18:55:23] [discord] }} [18:59:12] [discord] when i add filter:sepia(1) to .mw-wiki-logo of Meta it seems to work fine [18:59:20] [discord] what happens when you use it? [18:59:29] [discord] it breaks all styling [18:59:59] [discord] it turns out the sanitizer disallows filter i looked into it a little further [19:00:09] [discord] oh i see [19:15:25] [discord] Hi Agent Isai (@Agent), I would like to ask you a technical question, when I read the Wiki now, I noticed that the letters are getting smaller. Is it my problem that the letters are getting smaller, or is this in preparation for MediaWiki 1.39? [19:15:26] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065348709170282516/unknown.jpg [19:16:13] [discord] I haven't noticed that but no for the record it definitely is completely unrelated to 1.39, if it even is a thing [19:17:58] [discord] Also; the developments and comments on the [[phab:T9446]] page will be kept up to date, right? [19:17:58] https://meta.miraheze.org/wiki/phab:T9446 [19:17:58] [discord] [19:17:59] [url] ⚓ T9446 Upgrade to MediaWiki 1.39.1 | phabricator.miraheze.org [19:21:24] [discord] When a site is private - is there a way to make some pages public and to permit public editing? [19:25:11] [discord] Can you send me a link to your wiki? (If not, DM me) [19:25:49] [discord] abbreviations.miraheze.org [19:26:35] [discord] i kind of want to work on the site as private but not very familiar with the private settings [19:27:59] [discord] At https://abbreviations.miraheze.org/wiki/Özel:ManageWiki/core (if you are a bureaucrat on this wiki) you can make your wiki public (i.e. anyone can edit it, including anonymous). [19:28:00] [url] Permission error - Abbreviations | abbreviations.miraheze.org [19:29:21] [discord] i was hoping to make it half and half [19:29:28] [discord] That wasn't the question though. Please do make sure to read questions carefully before responding. [19:29:44] [discord] Normally that isn't really possible but I believe there was a way to whitelist pages [19:30:39] [discord] @imamy ah yes here it is [19:30:40] [discord] https://abbreviations.miraheze.org/wiki/Special:ManageWiki/settings#mw-section-permissions [19:30:41] [url] Permission error - Abbreviations | abbreviations.miraheze.org [19:30:51] [discord] you'd just go here and add them to `Whitelist Read ($wgWhitelistRead)` [19:30:59] [discord] sorry there isn't a more practical/easy way to do it at the moment [19:31:51] [discord] Or if you want to hide it, there will be 4 buttons on that page, you can press the **Private** button to allow users who have the rights to make your wiki private (i.e. Editors, Administrators) to edit it. (Users without permission will only see the Main page.) [19:32:43] [discord] oh sorry. Thank you for warning. [19:32:55] [discord] Anyway, there was information in it. [19:36:09] [discord] Whitelist seems to only allow visibility - I guess it will always come down to whether the site should be made public or private. can't make up my mind. Thank you [19:37:04] [discord] alright sorry for so many questions but does miraheze like protect the sidebars link colors/blue links or does it have a special tag for them thats different [19:37:04] [discord] i cant change the color of them [19:37:06] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065354152680636426/image.png [19:37:07] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065354153020366868/image.png [19:38:16] [discord] Oh I see. So what you want is to allow everyone to edit certain pages but other certain pages to only be edited by you/a select group of people? [19:39:30] [discord] yes if possible. when the site is set to private, is there a way to allow the whitelisted pages to be edited by public [19:40:19] [discord] i never intended the site to be private, but i can't seem to get a move on lol [19:40:55] [discord] how much public pages there will be? [19:41:14] [discord] some wikis consist of several actual wikis [19:41:33] [discord] you could make one public and another private, and link them together [19:42:29] [discord] ah, i was planning many pages. i am just laying out the structure. haven't actually created the pages yet but should be a lot [19:43:12] [discord] it's a slow project. so for now, i would say maybe 20 pages. when it's finished, whenever that may be, could hundreds [19:43:30] [discord] how do i link wikis? [19:44:01] [discord] If it's a miraheze wiki, the default link structure is [[mh:subdomainofwiki:pagename]] [19:44:01] https://mh.wikipedia.org/wiki/subdomainofwiki:pagename [19:44:02] [discord] [19:44:03] [url] Wiki not found | subdomainofwiki.miraheze.org [19:44:16] [discord] You can also request a local interwiki prefix to make that easier. [19:45:17] [discord] do you mean that the private wiki will redirect to the public wiki? [19:46:08] [discord] Hmmm. I read your question as "how do I create a hyperlink on a page that leads to another wiki". It seems like you have a different question... [19:47:43] [discord] i originally intended to create a public wiki -but i don't feel ready to make it public. and legroom was saying that the private wiki could link to a public one. i wanted to get a better idea of how others have done that [19:48:39] [discord] my original question was to see if there was a way to make the visible pages in a private wiki to allow anyone to edit [19:49:29] [discord] i think there are lots of ways to do things. i just wish i knew what they were [19:50:23] [discord] by linking wikis, they mean that on one wiki you could have links like [[wiki2:pagetitle]] that would link to the page on the second wiki. it would still be two completely separate wikis [19:50:23] https://meta.miraheze.org/wiki/wiki2:pagetitle [19:50:24] [discord] [19:50:25] [url] Creating Wiki2:pagetitle - Miraheze Meta | meta.miraheze.org [19:51:27] [discord] what if you change the css in common.css instead? [19:51:56] [discord] i guess that's doable - i guess that will mean i have to request another wiki. [19:51:58] [discord] i want it to be per page rather than for the whole thing [19:52:08] [discord] i mean just to see if it works [19:54:38] [discord] takes a bit to like register [19:55:00] [discord] press shift when you click refresh to refresh the cache [19:55:09] [discord] yeah it still takes a little [19:55:13] [discord] oh [19:55:16] [discord] but uhhh no it does not work when i put it in commons [19:56:05] [discord] can you just put a simple rule like this to see if it works [19:56:06] [discord] a:visited { [19:56:07] [discord] color: #8d2a2a; [19:56:08] [discord] } [19:57:22] [discord] i feel like ive tried that but trying rn [19:59:34] [discord] does not work [19:59:34] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065359817365012641/image.png [20:00:13] [discord] looks like it worked to me. it made the links red [20:00:23] [discord] oh the sidebar [20:00:25] [discord] yeah [20:00:33] [discord] im trying to change the sidebar [20:00:40] [discord] hmm [20:02:20] [discord] weird. i added the rule to my common.css and the sidebar links are changed [20:02:45] [discord] is there something "protecting" it [20:02:48] [discord] can you right click one of the visited links in the sidebar and click inspect to see what css rules are applied [20:03:16] [discord] idk what i should be taking a screenshot of [20:03:17] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065360750937395281/image.png [20:04:18] [discord] do you see a styles section like this [20:04:19] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065361010329911376/Screenshot_from_2023-01-18_15-03-49.png [20:04:45] [discord] uhhhhhhhhhhhhh [20:05:29] [discord] im using chroome [20:05:38] [discord] wait [20:05:38] [discord] yes [20:05:44] [discord] .vector-menu-portal .vector-menu-content li a:visited [20:05:52] [discord] ???????? [20:06:01] [discord] looks like its killing these [20:06:01] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065361442104160436/image.png [20:06:03] [discord] why [20:07:09] [discord] where is that css used? on the page? [20:07:16] [discord] if so, it overrides common.css [20:07:50] [discord] no, this is recent changes [20:09:35] [discord] you're using vector or vector 2022? [20:09:45] [discord] vector [20:10:38] [discord] ..okay well using the top text seemed to work.. [20:11:25] [discord] do you have a mediawiki:vector.css page with those rules? [20:12:06] [discord] oh ok maybe thats what it takes for some reason [20:12:24] [discord] css is so weird [20:13:37] [discord] do you even see the simple red rule you added anywhere in the inspect box? [21:11:22] [discord] The iNext Wiki had officially left the Fandom platform [21:11:45] [discord] that is very good [21:27:15] [discord] its not letting me post the link [21:27:19] [discord] bleh [21:28:14] [discord] okay okayokayokay [21:28:15] [discord] so it looks like something in includes/DefaultSettings.php disables it [21:28:16] [discord] something like [21:28:17] [discord] ```* CSS that is disallowed by the sanitizer, as a regular expression. [21:28:19] [discord] */ [21:28:20] [discord] $wgDisallowedCss = '! expression [21:28:21] [discord] | filter\s*: [21:28:23] [discord] | accelerator\s*: [21:28:24] [discord] | -o-link\s*: [21:28:25] [discord] | -o-link-source\s*: [21:28:26] [discord] | -o-replace\s*: [21:28:28] [discord] | url\s*\( [21:28:29] [discord] | image\s*\( [21:28:30] [discord] | image-set\s*\( [21:28:32] [discord] !ix'; [21:28:33] [discord] [21:28:34] [discord] /**``` in there [21:28:36] [discord] Meta must have it enabled but my wiki doesnt and i dont know how to make that happen [21:29:44] [discord] that is for security [21:29:48] [discord] and probably should stay there [21:29:53] [discord] you can use common.css for slightly more freedmo [21:30:14] [discord] so how would i use common.css to enable the use of filter [21:30:21] [discord] you would use filter: in common.css [21:30:43] [discord] i did that on genshin wiki for background-image: url(...) and it was the good choice [21:31:48] [discord] is it possible to allow use of it on any page [21:31:53] [discord] no [21:32:00] [discord] not from what i know [21:32:01] [discord] sorry [21:32:16] [discord] :kanayacry: [21:42:52] [discord] it seems a little weird to me that filter specifically is disallowed, like what security risk does that pose? /genq [21:43:08] [discord] possibly referencing random images and IP logging [21:43:31] [discord] most sites wont let you reference random images without a proxy in-between [21:43:54] [discord] however idk if filter can reference images or not [21:44:03] [discord] but isn't it just applying a filter to an image thats already there [21:44:10] [discord] with things like url-based css [21:44:16] [discord] You cant use css on all pages [21:44:18] [discord] IP logging would be possible [21:44:21] [discord] that is my best theory [21:44:26] [discord] they are referring to [21:44:28] [discord] {{#css: [21:44:30] [discord] parser hook [21:44:39] [discord] you can with the css extension. however the sanitizer specifically disallows filter [21:44:41] [discord] which is what i want [21:44:52] [discord] so if theres any way to somehow add it back [21:44:53] [discord] does filter: let you reference image urls in some way [21:45:09] [discord] If it’s disallowed, it was banned for a reason [21:45:19] [discord] ah yeah [21:45:20] [discord] i see now [21:45:23] [discord] you can do filter: url [21:46:14] [discord] https://en.wikipedia.org/wiki/Wikipedia:There%27s_a_reason_you_don%27t_know [21:46:15] [wikipedia] Wikipedia:There's a reason you don't know | "Certain things on Wikipedia happen with little or no explanation. These include suppressions, checkuser blocks, many revision deletions, and many actions of the Arbitration Committee. Because most actions are logged publicly on Wikipedia, and their rationales well-documented, some users may get upset that they don't know why these things happen.But things are only obscured for […]" [21:46:26] [discord] reminds me of that [21:47:07] [discord] wwhats this mean? [21:47:13] [discord] with filter: [21:47:17] [discord] you can reference any URL online [21:47:26] [discord] this URL could be malicious and log visitors' IP addresses and user agent [21:47:28] [discord] isnt that something you could block some other way? [21:47:30] [discord] that is why it can only be added in common.css [21:47:37] [discord] not easily [21:47:45] [discord] you would have to create some kind of in-between proxy function that references the [21:47:50] [discord] images on behalf of the user [21:47:53] [discord] then stores a file somewhere with the image [21:48:01] [discord] and sends it back [21:48:03] [discord] which is impractical and causes performance issues [21:49:02] [discord] Maybe theres another way to do what youre trying to do, could you try to say what that is [21:49:12] [discord] i want to use filter [21:49:22] [discord] then use a mediawiki: file [21:49:44] [discord] *on pages that are not every single page [21:49:48] [discord] ye [21:49:53] [discord] then make an id or class [21:49:56] [discord] for your element that you are styling [21:49:59] [discord] then go to common.css [21:50:03] [discord] and add filter: to that one [21:50:16] [discord] that shouldnt be too complicated imo [21:50:36] [discord] If its the logo, im not sure an id can be added on specific pages [21:50:42] [discord] this is not the logo [21:50:48] [discord] this is the css parser hook [21:51:01] [discord] yeah but say i want to make the logo sepia on one page [21:51:08] [discord] sigh ok hold on [21:51:10] [discord] one moment [21:51:19] [discord] i know how to do that [21:51:19] [discord] If the extension blocks it, I’d be amazed if css-sanitiser doesn’t [21:51:21] [discord] juts give me a seond [21:51:25] [discord] it doesnt [21:51:28] [discord] i tested it [21:51:55] [discord] @FuzzyEpic3 the body has a class with the page name [21:51:58] [discord] That seems very strange [21:52:03] [discord] on my wiki for example on the rules page: `page-Genshin_Impact_Wiki_Rules` [21:52:13] [discord] is there a way i could recreate filter [21:52:14] [discord] but without the ability to use a url [21:52:15] [discord] if you wanted to style the logo only on the rules page [21:52:19] [discord] no [21:52:32] [discord] mediawiki practicality issues [21:52:42] [discord] the main concern with url referencing is IP logging [21:52:55] [discord] that could be a concern if *anyone* could reference an image [21:52:59] [discord] okay so what if i want to make an image have a hue-rotated sepia so that its green but onlky on a userbox template [21:53:04] [discord] but if only those with editinterface can [21:53:11] [discord] its *unlikely* to be abused [21:53:17] [discord] you have to make a performance and usability compromise [21:53:24] [discord] ffffffffffffffffffffffffffffffffffff [21:53:30] [discord] this is about userboxes now...? [21:53:38] [discord] no, other templates also [21:53:51] [discord] 1. give the template an id or class [21:53:51] [discord] 2. reference it in common.css [21:53:53] [discord] 3. use filter there [21:54:01] [discord] the issue is that i want the freedom to use filter wherever but like i cant [21:54:16] [discord] i am trying to do something much more important than this and you're currently asking me the same question multiple times which is a waste of my time [21:54:18] [discord] I KNOW [21:54:19] [discord] YOU CANT [21:54:21] [discord] I TOLD YOU THAT ALREADY [21:54:28] [discord] nobody here has control over that [21:54:39] [discord] go to the css parser hook page on mediawiki.org figure out who maintains the extension then ask them to change it [21:54:52] [discord] it was disallowed for security i highly doubt they will change it [21:55:02] [discord] sorry [21:55:12] [discord] sigh its fine i got too worked up [21:55:16] [discord] but gtg now [21:55:42] [discord] i think you can do what you want with collei's advice, using the pagename body class [21:55:59] [discord] Please consider the code of conduct [21:58:51] [discord] add this rule to common.css and change Main Page to whichever page you want it to be used on [21:58:53] [discord] .page-Main_Page .mw-wiki-logo.fallback { [21:58:53] [discord] filter: sepia(1); [21:58:54] [discord] } [22:01:00] [discord] Please do not modify the logo using css [22:01:05] [discord] It will flash [22:01:29] [discord] Mediawiki doesn’t have a good way for different logos on different pages [22:03:02] [discord] what do you mean it will flash? [22:03:09] [discord] i will sorry [22:03:28] [discord] The css won’t apply at the same time as the page content does @florigon [22:03:41] [discord] So it results in a short period where it will show unformatted [22:03:47] [discord] oh i see, maybe they're okay with that [22:03:55] [discord] another wiki i frequent does that and its a non-issue [22:04:11] [discord] my wiki has that issue, i dont know what causes it and i'd like it to not do that [22:04:15] [discord] its annoying [22:04:36] [discord] especially on slow connections where that goes on for a while and you'll end up clicking the wrong button by mistkae [22:04:54] [discord] @Colleiflower it’s simply how the system works [22:05:23] [discord] im not sure what that's in reply to [22:07:00] [discord] This [22:07:06] [discord] ah [22:11:23] [discord] How to add a JS script? [22:12:02] [discord] Unsure about how to access those .js files: dev.miraheze.org/wiki/Enabling_scripts [22:13:48] [discord] go to MediaWiki:Common.js or MediaWiki:(skin name).js [22:14:04] [discord] If use JS on yourself: `User:Example/common.js` [22:14:04] [discord] Entire wiki: `MediaWiki:Common.js` [22:14:31] [discord] that is correct [22:29:33] [discord] just remember that Common.js is still ES5 only [22:29:48] [discord] idk why but yeah [22:30:14] [discord] yes [22:34:02] [discord] here's a fun way to avoid an ugly flash. it fades into the sepia so there wont be a quick change. it'll still start out as the normal logo on slow internets [22:34:11] [discord] @keyframes fade { [22:34:12] [discord] 0% {filter:sepia(0)} [22:34:13] [discord] 100% {filter:sepia(1)} [22:34:15] [discord] } [22:34:16] [discord] [22:34:17] [discord] .page-Main_Page .mw-wiki-logo.fallback { [22:34:18] [discord] animation-name: fade; [22:34:20] [discord] animation-duration: 10s; [22:34:21] [discord] } [22:35:18] [discord] makes sense [22:35:39] [discord] thank u every1 [22:35:45] [discord] yep [22:40:13] [discord] Better than AppleScript [22:40:22] [discord] or VB [22:52:07] [discord] https://cdn.discordapp.com/attachments/407537962553966603/1065403241044652092/image.png [22:52:09] [discord] : ) [22:52:14] [discord] It works! [23:05:20] [discord] I try to fetch a feed (mediawiki subreddit .json) but I have a CORS policy error [23:05:28] [discord] (` violates the document's Content Security Policy `) [23:08:16] [discord] (by the way, here is a place like common.js but to add php code?) [23:08:44] [discord] you can't add PHP on MW, would be quite a security risk to say the least, lol [23:09:14] [discord] Can we add HTML to avoid CORS policy issues? [23:09:28] [discord] it's because here on MH we have a whitelist of domains where you can fetch data to avoid XSS [23:09:40] [discord] OHHH [23:10:04] [discord] if you want to fetch something else you can request it on Phabricator [23:10:20] [discord] I think you can do that with the WikiSEO extension [23:10:47] [discord] see, working with articles on MW you have very little control of the semantics outside of the article itself [23:11:43] [discord] Is it okay/safe/best practice to use Extension:WikiSEO to fetch custom content? [23:12:48] [discord] I'm not sure, though I think fetching you mean a rather than , right? [23:13:31] [discord] if that's the case, there are some extensions that do add some specific to the but it may be specific [23:13:31] [discord] would be better to just fetch that through Common.js [23:13:35] [discord] I mean, the idea of having a few articles of the day on our wiki main page sounded interesting to me [23:14:08] [discord] there are some extensions that can help with that [23:14:08] [discord] in fact it may be even better because they would be server rendered [23:14:10] [discord] So I look to `fetch` r/mediawiki/top.json and put that content into a box of Main_Page [23:14:21] [discord] Oh interesting [23:14:26] [discord] you could also try using Scribunto (Lua) for that [23:15:41] [discord] What are some extensions specifically for fetching you thought of? [23:18:19] [discord] I'd have to search but afaik, usually you have articles on a category (let's say, "Good articles"), and then these articles are placed on the main page (however most wikis just place one per day/week) [23:18:56] [discord] theres [[mw:extension:randomSelection]] if you want to place a bunch of random stuff and display at random (on each page load) [23:18:56] https://www.mediawiki.org/wiki/extension:randomSelection [23:18:57] [discord] [23:18:58] [url] Extension:RandomSelection - MediaWiki | www.mediawiki.org [23:24:24] [discord] I can't find the Scribunto extension [23:24:34] [discord] It's enabled by default on all wikis [23:25:04] [discord] Oh nice, where to use it then? (I'm reading the docs right now ) [23:25:25] [discord] You write the Lua code in the module namespace [23:32:44] [discord] is there a way to get all pages to redirect to a custom domain? currently comprehensibleinput.miraheze.org redirects but comprehensibleinput.miraheze.org/wiki/Main_Page does not [23:36:05] [discord] That's sort of on purpose in case your custom domain ever goes down, you can still access your wiki by manually navigating to it [23:36:30] [discord] If you'd rather not, we can force redirect it to your custom domain but if your domain is ever down, your wiki will be entirely inaccessible [23:37:12] [discord] oh ok, lets keep it how it is then [23:49:45] [discord] your wiki looks rather useful [23:53:10] [discord] thanks, i hope it is [23:59:04] [discord] i had picked up some japanese before using that method [23:59:14] [discord] glad to see that im not the only one who thought that'd be a good idae