[01:18:10] hi, I'm working on this patch: https://gerrit.wikimedia.org/r/c/mediawiki/core/+/627938 [01:18:35] wondering if anyone can help me understand how to address VulpesVulpes825's comment about wrapping the html with a lang attribute [01:19:01] I don't really know what kind of html LanguageConverter::autoConvert might return, or how to safely wrap it [01:20:52] for a short text string of wikitext it comes back in a

tag [01:21:20] so ideally, that

tag itself would get the lang attribute, but not sure if there's a good way to do that, or if there's always a

tag anyway [01:22:27] I assume the wikitext could be a table or have a

around it or whatever so I dunno if it's even going to be consistent. and I suspect always wrapping with
is going to mess things up sometimes (but not sure) [01:22:50] it's not even clear to me this wrapping is a good idea, as I said in my comment replying [01:33:23] Doesn't sound fun, if you're returned a string [01:35:30] yeah, so if I understand right what's going on, the input text is wikitext and output text is also wikitext, and then that wikitext later ends up parsed into html? [01:36:42] yeah. autoConvert returns the converted wikitext before it gets turned into html [01:36:56] so actually that's what would need to be wrapped [01:38:47] As you've realised, you don't necessarily have to listen to/action every bit of CR you've recieved [01:39:49] ok, well I'm glad you think my response that this would be hard to do correctly seems reasonable [01:42:38] Any ideas how to find older wiki versions that show what php version is required? [01:43:26] https://www.mediawiki.org/wiki/Compatibility#PHP [01:43:42] oh wow nice! [02:38:48] Trying to download version 1.26 to the public directory. What is missing in my command? "wget https://releases.wikimedia.org/mediawiki/1.26 /var/www/orcaaccounting.com/public_html" [02:40:20] you need to download one of the .tar.gz files here https://releases.wikimedia.org/mediawiki/1.26/ [02:41:06] .sig or.gz? Do I download both or one? [02:41:48] not sig unless you want to verify it [02:41:56] naw [02:42:03] I would get https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.4.tar.gz [02:42:35] Nice! ha that's the one I got =O [02:43:22] Now I wonder if I can extract this tarball from my Downloads directory to public_html directory [02:43:29] I don't know context, but 1.26 is super old, consider getting a modern version [02:43:43] usually you want to upload the .tar.gz to the server and extract it there [02:44:24] bawolff, running legacy software that cant upgrade to php7 [02:44:42] don't want to run on another server either. [02:44:42] Ah, well than carry on :) [12:31:58] hihi [12:32:36] I asked about a month ago why my wiki was defaulting to advanced search (with all the namespace filters open). I'm sorry if I missed the answer... I can't see how to configure it [17:12:23] My privats videos skype webcam 400gb links open in Tor Browser gg.gg/m7dgu [20:15:41] Which are the best ways to embed JS to a mediawiki page? Read something about common.js, but that would probably load the script on every page. [20:19:37] harmaahylje: the "common" in common.js refers to "for all users" as opposed to "just loaded for your own user" [20:20:13] so it's about "should this be a global script or a personal user script" more than about pages [20:20:24] https://www.mediawiki.org/wiki/Manual:Interface/JavaScript [20:21:10] well there is _also "all pages vs some pages" on that manual page [20:28:41] mutante: Aha thanks for the explanation [20:29:25] What I am thinkin of doing doesn't involve infering with the MW user interface, just run a small JS app on a wikipage [20:30:02] or well whatever kind of url you can have on MW [20:32:24] it's possible to write a custom extension that replaces some you introduce with whatever HTML/js you want. so the users can insert the special tag in pages where needed but what it gets translated to is hard-coded. [20:32:46] That sounds like a nice option [20:33:46] you can probably copy an example that does something similar just with different tag name and replacement [20:34:27] Do the API's around extensions change often, I mean if I make it an extension, are breaking changes expected to happen in future releases? [20:35:07] that i don't know. i would have given you my example but it's waaaay to old from many years ago. others here will know better though [20:36:54] sure, I have not yet decided if I will create this, but the option you presented seems to make it possible, with hopefully not too much effort going into the extension side [20:40:12] https://www.mediawiki.org/wiki/Category:Tag_extensions [20:40:49] mutante: thank you for helping [20:40:51] random exaple: https://www.mediawiki.org/wiki/Extension:Google_News_Bar [20:41:01] see how that just adds a tag and then has a bunch of $output lines [20:41:27] Wow that is quite simple indeed