[00:16:26] Thanks to Reedy and teward. I'll try it. [00:49:57] hello everyone, I have a question [00:50:51] the main page how to point another page I have setup up and have that as my main page ? [00:51:32] hi [00:52:04] https://www.mediawiki.org/wiki/Manual:Main_Page "The title at which the main page is accessed can be modified by changing MediaWiki:Mainpage" [01:11:40] clear [02:55:15] hey is it possible to make a single page have a lowercase name in the url without messing up the redirect behavior for other pages? [03:05:03] Lunchbox: $wgCapitalLinks and $wgCapitalLinkOverrides [03:05:30] so can only be done per-namespace [03:06:04] i did find that but didn't understand it [03:06:11] what do you mean per namespace? [03:09:08] it'd have to be prefixed? [03:09:47] e.g. [[foo]] and [[Foo]] are two different pages but [[Project:Foo]] and [[Project:foo]] are the same [03:10:47] so the override option would only work on pages under a specific namespace? [03:11:05] like example.com/Test:Some_Page [03:11:15] example.com/Test:some_page [03:11:30] but if I wanted to make example.com/some_page [03:11:48] then every other page in the main namespace would stop redirecting? [03:16:07] yup [03:18:50] what about making a specific url not redirect with no page associated with it? [03:50:34] do you need two different pages, one with captial and one with lowercase but otherwise the same name? [03:50:56] if it's just a display issue (i.e. needs to be lowercase for display reasons), then putting {{DISPLAYTITLE:lowercase_name}} on the page will fix that [03:51:02] nope just a single page with a lowercase name in the url [03:51:17] i think that just changes the title within the page itself [03:51:24] won't change the redirect from lowercase uri to uppercase, but it'll make the header in the page display properly [03:52:06] which should be good enough? [03:52:23] (you can always link the lowercase version externally) [03:52:58] otherwise, what you seek doesn't currently exist as far as I know [03:53:23] it'd be possible with an extension, but I don't think anyone made an extension to override the capital first letter on a per-page basis [03:54:13] i know the lowercase link will still work and redirect to the capitalized page address [03:54:26] it's an odd request for sure just wondering if it was possible [03:54:33] i'll figure out something [03:55:04] it's certainly possible, but you'll need to write an extension to do it [03:56:46] lemme see if I can figure out what hook to use [04:05:15] Lunchbox: so it looks like the best way of going about this would be to make use of the MediaWikiServices hook to replace the '_MediaWikiTitleCodec' service with your own class which extends the built-in MediaWikiTitleCodec but contains the logic to lowercase that one particular title [04:06:36] see includes/MediaWikiServices.php, includes/Title.php, includes/ServiceWiring.php, and includes/title/MediaWikiTitleCodec.php for more details (in the latter, the method you'll want to override is splitTitleString to replace $parts['dbkey'] with the lowercased form for that particular page; there may be other changes needed as well) [04:07:50] looks too easy to break stuff [04:08:05] but thank you i'll check it out [04:16:24] feel free to pop back if you have any questions [04:16:59] (shameless plug: I'm also available to do custom development for an hourly fee, if this is not something you'd be wanting to tackle yourself) [17:21:58] Could someone here help me verify my understanding of watchlists? [17:26:56] https://pastebin.com/iqjf1Luw [17:28:49] hexmode: you probably mean "of Cat and Derek's changes" at the end. [17:30:02] @Yaron, right. But otherwise, that is correct, isn't it? [17:31:13] Seems right, but I'm not really an expert on the watchlist stuff. [17:33:12] Ok, I have you and Cindy. It would be nice to get someone like Reedy to confirm, too, but I think I'm right [17:36:54] I should note that I don't think I've ever gotten email notifications from watchlists - I always just go to Special:Watchlist. So I really don't know much about this whole thing. [18:41:53] hi, anyone has any example using page forms for query? (not from the extension docs) [18:45:53] niso: like https://nimiarkisto.fi/wiki/Toiminnot:Semanttinen_kysely/Haku ? [18:47:08] im looking for the source code of the form and template page to get a reference to work with [19:11:30] niso: it's very simple: https://nimiarkisto.fi/w/index.php?title=Lomake:Haku&action=edit and https://nimiarkisto.fi/w/index.php?title=template:Haku&action=edit [19:12:46] maybe, but the language making it harder to understand the connection between the form & template &(category?) and so on [23:13:25] Why is this query returning XML instead of JSON? https://en.wikipedia.org/w/api.php?action=feedrecentchanges&format=json&namespace=8 [23:16:06] Because it has a custom printer [23:17:36] (is the alternative you want XML wrapped in JSON?) [23:18:19] (or action=query&list=recentchanges ? ) [23:18:54] The latter thing. [23:18:59] Oy, this API. Thank you for your assistance. [23:21:25] specifically, it's returning an RSS feed, not XML :)