[20:53:31] I'd like to authoritatively determine which parameter combinations are valid for action=edit. Roughly where in the MediaWiki source code is the logic for checking action=edit parameters? [21:42:55] Have you read https://www.mediawiki.org/wiki/Manual:Parameters_to_index.php#Edit_and_submit? [21:43:19] Trying to go through the EditPage code will...hurt your eyes and be near impossible to trace [21:44:24] There are some extension parameters like TemplateSandbox which aren't documented there though [21:56:27] I expected as much, thanks for the link [22:13:22] But if you have specific questions we can answer them here too :) [22:22:21] Well, I'm making a Rust API client library with the goal of making illegal parameter combinations unrepresentable using enums [22:22:22] I decided to start with Edit [22:24:01] So I have an enum for "edit kind" (ReplaceText, Prepend, Append, PrependAndAppend, Undo, UndoAfter) and "edit target" (Title, PageId) [22:26:43] But I'm not 100% sure how those interact with the section parameter, or with the "redirect-appendonly" error ("You have attempted to edit using the redirect-following mode, which must be used in conjunction with section=new, prependtext, or appendtext. ") [22:26:48] enterprisey Wait, I should've asked, is this for index.php (humans)? Or api.php? [22:26:52] api.php [22:27:13] Oops, then the autogenerated docs are the best, ignore the earlier link [22:27:54] https://en.wikipedia.org/w/api.php?modules=edit [22:27:59] I could of course try all the combinations myself, but I decided I'd be lazy and ask here for starters :) [22:28:57] https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/master/includes/api/ApiEditPage.php actually shouldn't be *too * hard to follow for logic that's in the API module [22:46:40] Indeed, that's not too bad at all. Thanks